ICU-2103 javadoc updates, @stable and @drafts addition
X-SVN-Rev: 10426
This commit is contained in:
parent
9018b06f87
commit
ec11580925
File diff suppressed because it is too large
Load Diff
@ -6,8 +6,8 @@
|
||||
*
|
||||
* $Source:
|
||||
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterCategory.java $
|
||||
* $Date: 2002/09/19 21:18:14 $
|
||||
* $Revision: 1.9 $
|
||||
* $Date: 2002/12/03 00:47:53 $
|
||||
* $Revision: 1.10 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -15,238 +15,269 @@
|
||||
package com.ibm.icu.lang;
|
||||
|
||||
/**
|
||||
* Enumerated Unicode category types from the UnicodeData.txt file.
|
||||
* Used as return results from <a href=UCharacter.html>UCharacter</a>
|
||||
* Equivalent to icu's UCharCategory.
|
||||
* Refer to <a href=http://www.unicode.org/Public/UNIDATA/UnicodeData.html>
|
||||
* Unicode Consortium</a> for more information about UnicodeData.txt.
|
||||
* <p>
|
||||
* This class is not subclassable
|
||||
* </p>
|
||||
* @author Syn Wee Quek
|
||||
* @since oct0300
|
||||
*/
|
||||
* Enumerated Unicode category types from the UnicodeData.txt file.
|
||||
* Used as return results from <a href=UCharacter.html>UCharacter</a>
|
||||
* Equivalent to icu's UCharCategory.
|
||||
* Refer to <a href=http://www.unicode.org/Public/UNIDATA/UnicodeData.html>
|
||||
* Unicode Consortium</a> for more information about UnicodeData.txt.
|
||||
* <p>
|
||||
* This class is not subclassable
|
||||
* </p>
|
||||
* @author Syn Wee Quek
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
|
||||
public final class UCharacterCategory
|
||||
{
|
||||
// public variable -----------------------------------------------------
|
||||
|
||||
/**
|
||||
* Unassigned character type
|
||||
*/
|
||||
public static final int UNASSIGNED = 0;
|
||||
/**
|
||||
* Character type Cn
|
||||
* Not Assigned (no characters in [UnicodeData.txt] have this property)
|
||||
* @draft 2.1
|
||||
*/
|
||||
public static final int GENERAL_OTHER_TYPES = 0;
|
||||
/**
|
||||
* Character type Lu
|
||||
*/
|
||||
public static final int UPPERCASE_LETTER = 1;
|
||||
/**
|
||||
* Character type Ll
|
||||
*/
|
||||
public static final int LOWERCASE_LETTER = 2;
|
||||
/**
|
||||
* Character type Lt
|
||||
*/
|
||||
public static final int TITLECASE_LETTER = 3;
|
||||
/**
|
||||
* Character type Lm
|
||||
*/
|
||||
public static final int MODIFIER_LETTER = 4;
|
||||
/**
|
||||
* Character type Lo
|
||||
*/
|
||||
public static final int OTHER_LETTER = 5;
|
||||
/**
|
||||
* Character type Mn
|
||||
*/
|
||||
public static final int NON_SPACING_MARK = 6;
|
||||
/**
|
||||
* Character type Me
|
||||
*/
|
||||
public static final int ENCLOSING_MARK = 7;
|
||||
/**
|
||||
* Character type Mc
|
||||
*/
|
||||
public static final int COMBINING_SPACING_MARK = 8;
|
||||
/**
|
||||
* Character type Nd
|
||||
*/
|
||||
public static final int DECIMAL_DIGIT_NUMBER = 9;
|
||||
/**
|
||||
* Character type Nl
|
||||
*/
|
||||
public static final int LETTER_NUMBER = 10;
|
||||
|
||||
// start of 11------------
|
||||
|
||||
/**
|
||||
* Character type No
|
||||
*/
|
||||
public static final int OTHER_NUMBER = 11;
|
||||
/**
|
||||
* Character type Zs
|
||||
*/
|
||||
public static final int SPACE_SEPARATOR = 12;
|
||||
/**
|
||||
* Character type Zl
|
||||
*/
|
||||
public static final int LINE_SEPARATOR = 13;
|
||||
/**
|
||||
* Character type Zp
|
||||
*/
|
||||
public static final int PARAGRAPH_SEPARATOR = 14;
|
||||
/**
|
||||
* Character type Cc
|
||||
*/
|
||||
public static final int CONTROL = 15;
|
||||
/**
|
||||
* Character type Cf
|
||||
*/
|
||||
public static final int FORMAT = 16;
|
||||
/**
|
||||
* Character type Co
|
||||
*/
|
||||
public static final int PRIVATE_USE = 17;
|
||||
/**
|
||||
* Character type Cs
|
||||
*/
|
||||
public static final int SURROGATE = 18;
|
||||
/**
|
||||
* Character type Pd
|
||||
*/
|
||||
public static final int DASH_PUNCTUATION = 19;
|
||||
/**
|
||||
* Character type Ps
|
||||
*/
|
||||
public static final int START_PUNCTUATION = 20;
|
||||
|
||||
// start of 21 ------------
|
||||
|
||||
/**
|
||||
* Character type Pe
|
||||
*/
|
||||
public static final int END_PUNCTUATION = 21;
|
||||
/**
|
||||
* Character type Pc
|
||||
*/
|
||||
public static final int CONNECTOR_PUNCTUATION = 22;
|
||||
/**
|
||||
* Character type Po
|
||||
*/
|
||||
public static final int OTHER_PUNCTUATION = 23;
|
||||
/**
|
||||
* Character type Sm
|
||||
*/
|
||||
public static final int MATH_SYMBOL = 24;
|
||||
/**
|
||||
* Character type Sc
|
||||
*/
|
||||
public static final int CURRENCY_SYMBOL = 25;
|
||||
/**
|
||||
* Character type Sk
|
||||
*/
|
||||
public static final int MODIFIER_SYMBOL = 26;
|
||||
/**
|
||||
* Character type So
|
||||
*/
|
||||
public static final int OTHER_SYMBOL = 27;
|
||||
/**
|
||||
* Character type Pi
|
||||
*/
|
||||
public static final int INITIAL_PUNCTUATION = 28;
|
||||
/**
|
||||
* Character type Pf
|
||||
*/
|
||||
public static final int FINAL_PUNCTUATION = 29;
|
||||
|
||||
// start of 31 ------------
|
||||
|
||||
/**
|
||||
* Character type count
|
||||
*/
|
||||
public static final int CHAR_CATEGORY_COUNT = 30;
|
||||
|
||||
/**
|
||||
* Gets the name of the argument category
|
||||
* @param category to retrieve name
|
||||
* @return category name
|
||||
*/
|
||||
public static String toString(int category)
|
||||
{
|
||||
switch (category)
|
||||
{
|
||||
case UPPERCASE_LETTER :
|
||||
return "Letter, Uppercase";
|
||||
case LOWERCASE_LETTER :
|
||||
return "Letter, Lowercase";
|
||||
case TITLECASE_LETTER :
|
||||
return "Letter, Titlecase";
|
||||
case MODIFIER_LETTER :
|
||||
return "Letter, Modifier";
|
||||
case OTHER_LETTER :
|
||||
return "Letter, Other";
|
||||
case NON_SPACING_MARK :
|
||||
return "Mark, Non-Spacing";
|
||||
case ENCLOSING_MARK :
|
||||
return "Mark, Enclosing";
|
||||
case COMBINING_SPACING_MARK :
|
||||
return "Mark, Spacing Combining";
|
||||
case DECIMAL_DIGIT_NUMBER :
|
||||
return "Number, Decimal Digit";
|
||||
case LETTER_NUMBER :
|
||||
return "Number, Letter";
|
||||
case OTHER_NUMBER :
|
||||
return "Number, Other";
|
||||
case SPACE_SEPARATOR :
|
||||
return "Separator, Space";
|
||||
case LINE_SEPARATOR :
|
||||
return "Separator, Line";
|
||||
case PARAGRAPH_SEPARATOR :
|
||||
return "Separator, Paragraph";
|
||||
case CONTROL :
|
||||
return "Other, Control";
|
||||
case FORMAT :
|
||||
return "Other, Format";
|
||||
case PRIVATE_USE :
|
||||
return "Other, Private Use";
|
||||
case SURROGATE :
|
||||
return "Other, Surrogate";
|
||||
case DASH_PUNCTUATION :
|
||||
return "Punctuation, Dash";
|
||||
case START_PUNCTUATION :
|
||||
return "Punctuation, Open";
|
||||
case END_PUNCTUATION :
|
||||
return "Punctuation, Close";
|
||||
case CONNECTOR_PUNCTUATION :
|
||||
return "Punctuation, Connector";
|
||||
case OTHER_PUNCTUATION :
|
||||
return "Punctuation, Other";
|
||||
case MATH_SYMBOL :
|
||||
return "Symbol, Math";
|
||||
case CURRENCY_SYMBOL :
|
||||
return "Symbol, Currency";
|
||||
case MODIFIER_SYMBOL :
|
||||
return "Symbol, Modifier";
|
||||
case OTHER_SYMBOL :
|
||||
return "Symbol, Other";
|
||||
case INITIAL_PUNCTUATION :
|
||||
return "Punctuation, Initial quote";
|
||||
case FINAL_PUNCTUATION :
|
||||
return "Punctuation, Final quote";
|
||||
}
|
||||
return "Unassigned";
|
||||
}
|
||||
|
||||
// private constructor -----------------------------------------------
|
||||
// public variable -----------------------------------------------------
|
||||
|
||||
/**
|
||||
* Private constructor to prevent initialisation
|
||||
*/
|
||||
* Unassigned character type
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int UNASSIGNED = 0;
|
||||
/**
|
||||
* Character type Cn
|
||||
* Not Assigned (no characters in [UnicodeData.txt] have this property)
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int GENERAL_OTHER_TYPES = 0;
|
||||
/**
|
||||
* Character type Lu
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int UPPERCASE_LETTER = 1;
|
||||
/**
|
||||
* Character type Ll
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int LOWERCASE_LETTER = 2;
|
||||
/**
|
||||
* Character type Lt
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int TITLECASE_LETTER = 3;
|
||||
/**
|
||||
* Character type Lm
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int MODIFIER_LETTER = 4;
|
||||
/**
|
||||
* Character type Lo
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int OTHER_LETTER = 5;
|
||||
/**
|
||||
* Character type Mn
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int NON_SPACING_MARK = 6;
|
||||
/**
|
||||
* Character type Me
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int ENCLOSING_MARK = 7;
|
||||
/**
|
||||
* Character type Mc
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int COMBINING_SPACING_MARK = 8;
|
||||
/**
|
||||
* Character type Nd
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int DECIMAL_DIGIT_NUMBER = 9;
|
||||
/**
|
||||
* Character type Nl
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int LETTER_NUMBER = 10;
|
||||
|
||||
// start of 11------------
|
||||
|
||||
/**
|
||||
* Character type No
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int OTHER_NUMBER = 11;
|
||||
/**
|
||||
* Character type Zs
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int SPACE_SEPARATOR = 12;
|
||||
/**
|
||||
* Character type Zl
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int LINE_SEPARATOR = 13;
|
||||
/**
|
||||
* Character type Zp
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int PARAGRAPH_SEPARATOR = 14;
|
||||
/**
|
||||
* Character type Cc
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int CONTROL = 15;
|
||||
/**
|
||||
* Character type Cf
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int FORMAT = 16;
|
||||
/**
|
||||
* Character type Co
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int PRIVATE_USE = 17;
|
||||
/**
|
||||
* Character type Cs
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int SURROGATE = 18;
|
||||
/**
|
||||
* Character type Pd
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int DASH_PUNCTUATION = 19;
|
||||
/**
|
||||
* Character type Ps
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int START_PUNCTUATION = 20;
|
||||
|
||||
// start of 21 ------------
|
||||
|
||||
/**
|
||||
* Character type Pe
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int END_PUNCTUATION = 21;
|
||||
/**
|
||||
* Character type Pc
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int CONNECTOR_PUNCTUATION = 22;
|
||||
/**
|
||||
* Character type Po
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int OTHER_PUNCTUATION = 23;
|
||||
/**
|
||||
* Character type Sm
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int MATH_SYMBOL = 24;
|
||||
/**
|
||||
* Character type Sc
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int CURRENCY_SYMBOL = 25;
|
||||
/**
|
||||
* Character type Sk
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int MODIFIER_SYMBOL = 26;
|
||||
/**
|
||||
* Character type So
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int OTHER_SYMBOL = 27;
|
||||
/**
|
||||
* Character type Pi
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int INITIAL_PUNCTUATION = 28;
|
||||
/**
|
||||
* Character type Pf
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int FINAL_PUNCTUATION = 29;
|
||||
|
||||
// start of 31 ------------
|
||||
|
||||
/**
|
||||
* Character type count
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int CHAR_CATEGORY_COUNT = 30;
|
||||
|
||||
/**
|
||||
* Gets the name of the argument category
|
||||
* @param category to retrieve name
|
||||
* @return category name
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static String toString(int category)
|
||||
{
|
||||
switch (category) {
|
||||
case UPPERCASE_LETTER :
|
||||
return "Letter, Uppercase";
|
||||
case LOWERCASE_LETTER :
|
||||
return "Letter, Lowercase";
|
||||
case TITLECASE_LETTER :
|
||||
return "Letter, Titlecase";
|
||||
case MODIFIER_LETTER :
|
||||
return "Letter, Modifier";
|
||||
case OTHER_LETTER :
|
||||
return "Letter, Other";
|
||||
case NON_SPACING_MARK :
|
||||
return "Mark, Non-Spacing";
|
||||
case ENCLOSING_MARK :
|
||||
return "Mark, Enclosing";
|
||||
case COMBINING_SPACING_MARK :
|
||||
return "Mark, Spacing Combining";
|
||||
case DECIMAL_DIGIT_NUMBER :
|
||||
return "Number, Decimal Digit";
|
||||
case LETTER_NUMBER :
|
||||
return "Number, Letter";
|
||||
case OTHER_NUMBER :
|
||||
return "Number, Other";
|
||||
case SPACE_SEPARATOR :
|
||||
return "Separator, Space";
|
||||
case LINE_SEPARATOR :
|
||||
return "Separator, Line";
|
||||
case PARAGRAPH_SEPARATOR :
|
||||
return "Separator, Paragraph";
|
||||
case CONTROL :
|
||||
return "Other, Control";
|
||||
case FORMAT :
|
||||
return "Other, Format";
|
||||
case PRIVATE_USE :
|
||||
return "Other, Private Use";
|
||||
case SURROGATE :
|
||||
return "Other, Surrogate";
|
||||
case DASH_PUNCTUATION :
|
||||
return "Punctuation, Dash";
|
||||
case START_PUNCTUATION :
|
||||
return "Punctuation, Open";
|
||||
case END_PUNCTUATION :
|
||||
return "Punctuation, Close";
|
||||
case CONNECTOR_PUNCTUATION :
|
||||
return "Punctuation, Connector";
|
||||
case OTHER_PUNCTUATION :
|
||||
return "Punctuation, Other";
|
||||
case MATH_SYMBOL :
|
||||
return "Symbol, Math";
|
||||
case CURRENCY_SYMBOL :
|
||||
return "Symbol, Currency";
|
||||
case MODIFIER_SYMBOL :
|
||||
return "Symbol, Modifier";
|
||||
case OTHER_SYMBOL :
|
||||
return "Symbol, Other";
|
||||
case INITIAL_PUNCTUATION :
|
||||
return "Punctuation, Initial quote";
|
||||
case FINAL_PUNCTUATION :
|
||||
return "Punctuation, Final quote";
|
||||
}
|
||||
return "Unassigned";
|
||||
}
|
||||
|
||||
// private constructor -----------------------------------------------
|
||||
|
||||
/**
|
||||
* Private constructor to prevent initialisation
|
||||
*/
|
||||
private UCharacterCategory()
|
||||
{
|
||||
}
|
||||
|
@ -6,8 +6,8 @@
|
||||
*
|
||||
* $Source:
|
||||
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterDirection.java $
|
||||
* $Date: 2002/09/11 00:12:39 $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2002/12/03 00:47:50 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -15,160 +15,181 @@
|
||||
package com.ibm.icu.lang;
|
||||
|
||||
/**
|
||||
* Enumerated Unicode character linguistic direction constants.
|
||||
* Used as return results from <a href=UCharacter.html>UCharacter</a>
|
||||
* <p>
|
||||
* This class is not subclassable
|
||||
* </p>
|
||||
* @author Syn Wee Quek
|
||||
* @since oct0300
|
||||
*/
|
||||
* Enumerated Unicode character linguistic direction constants.
|
||||
* Used as return results from <a href=UCharacter.html>UCharacter</a>
|
||||
* <p>
|
||||
* This class is not subclassable
|
||||
* </p>
|
||||
* @author Syn Wee Quek
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
|
||||
public final class UCharacterDirection
|
||||
{
|
||||
// private constructor =========================================
|
||||
// private constructor =========================================
|
||||
|
||||
/**
|
||||
* Private constructor to prevent initialisation
|
||||
*/
|
||||
private UCharacterDirection()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* Private constructor to prevent initialisation
|
||||
*/
|
||||
private UCharacterDirection()
|
||||
{
|
||||
}
|
||||
|
||||
// public variable =============================================
|
||||
// public variable =============================================
|
||||
|
||||
/**
|
||||
* Directional type L
|
||||
*/
|
||||
public static final int LEFT_TO_RIGHT = 0;
|
||||
/**
|
||||
* Directional type R
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT = 1;
|
||||
/**
|
||||
* Directional type EN
|
||||
*/
|
||||
public static final int EUROPEAN_NUMBER = 2;
|
||||
/**
|
||||
* Directional type ES
|
||||
*/
|
||||
public static final int EUROPEAN_NUMBER_SEPARATOR = 3;
|
||||
/**
|
||||
* Directional type ET
|
||||
*/
|
||||
public static final int EUROPEAN_NUMBER_TERMINATOR = 4;
|
||||
/**
|
||||
* Directional type AN
|
||||
*/
|
||||
public static final int ARABIC_NUMBER = 5;
|
||||
/**
|
||||
* Directional type CS
|
||||
*/
|
||||
public static final int COMMON_NUMBER_SEPARATOR = 6;
|
||||
/**
|
||||
* Directional type B
|
||||
*/
|
||||
public static final int BLOCK_SEPARATOR = 7;
|
||||
/**
|
||||
* Directional type S
|
||||
*/
|
||||
public static final int SEGMENT_SEPARATOR = 8;
|
||||
/**
|
||||
* Directional type WS
|
||||
*/
|
||||
public static final int WHITE_SPACE_NEUTRAL = 9;
|
||||
/**
|
||||
* Directional type L
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int LEFT_TO_RIGHT = 0;
|
||||
/**
|
||||
* Directional type R
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT = 1;
|
||||
/**
|
||||
* Directional type EN
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int EUROPEAN_NUMBER = 2;
|
||||
/**
|
||||
* Directional type ES
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int EUROPEAN_NUMBER_SEPARATOR = 3;
|
||||
/**
|
||||
* Directional type ET
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int EUROPEAN_NUMBER_TERMINATOR = 4;
|
||||
/**
|
||||
* Directional type AN
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int ARABIC_NUMBER = 5;
|
||||
/**
|
||||
* Directional type CS
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int COMMON_NUMBER_SEPARATOR = 6;
|
||||
/**
|
||||
* Directional type B
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int BLOCK_SEPARATOR = 7;
|
||||
/**
|
||||
* Directional type S
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int SEGMENT_SEPARATOR = 8;
|
||||
/**
|
||||
* Directional type WS
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int WHITE_SPACE_NEUTRAL = 9;
|
||||
|
||||
// start of 11 ---------------
|
||||
// start of 11 ---------------
|
||||
|
||||
/**
|
||||
* Directional type ON
|
||||
*/
|
||||
public static final int OTHER_NEUTRAL = 10;
|
||||
/**
|
||||
* Directional type LRE
|
||||
*/
|
||||
public static final int LEFT_TO_RIGHT_EMBEDDING = 11;
|
||||
/**
|
||||
* Directional type LRO
|
||||
*/
|
||||
public static final int LEFT_TO_RIGHT_OVERRIDE = 12;
|
||||
/**
|
||||
* Directional type AL
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT_ARABIC = 13;
|
||||
/**
|
||||
* Directional type RLE
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT_EMBEDDING = 14;
|
||||
/**
|
||||
* Directional type RLO
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT_OVERRIDE = 15;
|
||||
/**
|
||||
* Directional type PDF
|
||||
*/
|
||||
public static final int POP_DIRECTIONAL_FORMAT = 16;
|
||||
/**
|
||||
* Directional type NSM
|
||||
*/
|
||||
public static final int DIR_NON_SPACING_MARK = 17;
|
||||
/**
|
||||
* Directional type BN
|
||||
*/
|
||||
public static final int BOUNDARY_NEUTRAL = 18;
|
||||
/**
|
||||
* Number of directional type
|
||||
*/
|
||||
/**
|
||||
* Directional type ON
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int OTHER_NEUTRAL = 10;
|
||||
/**
|
||||
* Directional type LRE
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int LEFT_TO_RIGHT_EMBEDDING = 11;
|
||||
/**
|
||||
* Directional type LRO
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int LEFT_TO_RIGHT_OVERRIDE = 12;
|
||||
/**
|
||||
* Directional type AL
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT_ARABIC = 13;
|
||||
/**
|
||||
* Directional type RLE
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT_EMBEDDING = 14;
|
||||
/**
|
||||
* Directional type RLO
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int RIGHT_TO_LEFT_OVERRIDE = 15;
|
||||
/**
|
||||
* Directional type PDF
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int POP_DIRECTIONAL_FORMAT = 16;
|
||||
/**
|
||||
* Directional type NSM
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int DIR_NON_SPACING_MARK = 17;
|
||||
/**
|
||||
* Directional type BN
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int BOUNDARY_NEUTRAL = 18;
|
||||
/**
|
||||
* Number of directional type
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static final int CHAR_DIRECTION_COUNT = 19;
|
||||
|
||||
/**
|
||||
* Gets the name of the argument direction
|
||||
* @param dir direction type to retrieve name
|
||||
* @return directional name
|
||||
*/
|
||||
* Gets the name of the argument direction
|
||||
* @param dir direction type to retrieve name
|
||||
* @return directional name
|
||||
* @stable ICU 2.1
|
||||
*/
|
||||
public static String toString(int dir)
|
||||
{
|
||||
switch(dir)
|
||||
{
|
||||
case LEFT_TO_RIGHT :
|
||||
return "Left-to-Right";
|
||||
case RIGHT_TO_LEFT :
|
||||
return "Right-to-Left";
|
||||
case EUROPEAN_NUMBER :
|
||||
return "European Number";
|
||||
case EUROPEAN_NUMBER_SEPARATOR :
|
||||
return "European Number Separator";
|
||||
case EUROPEAN_NUMBER_TERMINATOR :
|
||||
return "European Number Terminator";
|
||||
case ARABIC_NUMBER :
|
||||
return "Arabic Number";
|
||||
case COMMON_NUMBER_SEPARATOR :
|
||||
return "Common Number Separator";
|
||||
case BLOCK_SEPARATOR :
|
||||
return "Paragraph Separator";
|
||||
case SEGMENT_SEPARATOR :
|
||||
return "Segment Separator";
|
||||
case WHITE_SPACE_NEUTRAL :
|
||||
return "Whitespace";
|
||||
case OTHER_NEUTRAL :
|
||||
return "Other Neutrals";
|
||||
case LEFT_TO_RIGHT_EMBEDDING :
|
||||
return "Left-to-Right Embedding";
|
||||
case LEFT_TO_RIGHT_OVERRIDE :
|
||||
return "Left-to-Right Override";
|
||||
case RIGHT_TO_LEFT_ARABIC :
|
||||
return "Right-to-Left Arabic";
|
||||
case RIGHT_TO_LEFT_EMBEDDING :
|
||||
return "Right-to-Left Embedding";
|
||||
case RIGHT_TO_LEFT_OVERRIDE :
|
||||
return "Right-to-Left Override";
|
||||
case POP_DIRECTIONAL_FORMAT :
|
||||
return "Pop Directional Format";
|
||||
case DIR_NON_SPACING_MARK :
|
||||
return "Non-Spacing Mark";
|
||||
case BOUNDARY_NEUTRAL :
|
||||
return "Boundary Neutral";
|
||||
}
|
||||
return "Unassigned";
|
||||
switch(dir)
|
||||
{
|
||||
case LEFT_TO_RIGHT :
|
||||
return "Left-to-Right";
|
||||
case RIGHT_TO_LEFT :
|
||||
return "Right-to-Left";
|
||||
case EUROPEAN_NUMBER :
|
||||
return "European Number";
|
||||
case EUROPEAN_NUMBER_SEPARATOR :
|
||||
return "European Number Separator";
|
||||
case EUROPEAN_NUMBER_TERMINATOR :
|
||||
return "European Number Terminator";
|
||||
case ARABIC_NUMBER :
|
||||
return "Arabic Number";
|
||||
case COMMON_NUMBER_SEPARATOR :
|
||||
return "Common Number Separator";
|
||||
case BLOCK_SEPARATOR :
|
||||
return "Paragraph Separator";
|
||||
case SEGMENT_SEPARATOR :
|
||||
return "Segment Separator";
|
||||
case WHITE_SPACE_NEUTRAL :
|
||||
return "Whitespace";
|
||||
case OTHER_NEUTRAL :
|
||||
return "Other Neutrals";
|
||||
case LEFT_TO_RIGHT_EMBEDDING :
|
||||
return "Left-to-Right Embedding";
|
||||
case LEFT_TO_RIGHT_OVERRIDE :
|
||||
return "Left-to-Right Override";
|
||||
case RIGHT_TO_LEFT_ARABIC :
|
||||
return "Right-to-Left Arabic";
|
||||
case RIGHT_TO_LEFT_EMBEDDING :
|
||||
return "Right-to-Left Embedding";
|
||||
case RIGHT_TO_LEFT_OVERRIDE :
|
||||
return "Right-to-Left Override";
|
||||
case POP_DIRECTIONAL_FORMAT :
|
||||
return "Pop Directional Format";
|
||||
case DIR_NON_SPACING_MARK :
|
||||
return "Non-Spacing Mark";
|
||||
case BOUNDARY_NEUTRAL :
|
||||
return "Boundary Neutral";
|
||||
}
|
||||
return "Unassigned";
|
||||
}
|
||||
}
|
||||
|
@ -6,8 +6,8 @@
|
||||
*
|
||||
* $Source:
|
||||
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterCategory.java $
|
||||
* $Date: 2002/11/06 19:48:58 $
|
||||
* $Revision: 1.5 $
|
||||
* $Date: 2002/12/03 00:47:53 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
@ -30,7 +30,7 @@ package com.ibm.icu.lang;
|
||||
* 3.2, then properties marked with "new" are not or not fully
|
||||
* available. Check UCharacter.getUnicodeVersion() to be sure.</p>
|
||||
* @author Syn Wee Quek
|
||||
* @since March 8 2002
|
||||
* @draft ICU 2.1
|
||||
* @see com.ibm.icu.lang.UCharacter
|
||||
*/
|
||||
public interface UProperty
|
||||
@ -42,20 +42,24 @@ public interface UProperty
|
||||
* <p>Property for UCharacter.isUAlphabetic(), different from the property
|
||||
* in UCharacter.isalpha().</p>
|
||||
* <p>Lu + Ll + Lt + Lm + Lo + Nl + Other_Alphabetic.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int ALPHABETIC = 0;
|
||||
/**
|
||||
* First constant for binary Unicode properties.
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int BINARY_START = ALPHABETIC;
|
||||
/**
|
||||
* Binary property ASCII_Hex_Digit (0-9 A-F a-f).
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int ASCII_HEX_DIGIT = 1;
|
||||
/**
|
||||
* <p>Binary property Bidi_Control.</p>
|
||||
* <p>Format controls which have specific functions in the Bidi Algorithm.
|
||||
* </p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int BIDI_CONTROL = 2;
|
||||
/**
|
||||
@ -63,11 +67,13 @@ public interface UProperty
|
||||
* <p>Characters that may change display in RTL text.</p>
|
||||
* <p>Property for UCharacter.isMirrored().</p>
|
||||
* <p>See Bidi Algorithm; UTR 9.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int BIDI_MIRRORED = 3;
|
||||
/**
|
||||
* <p>Binary property Dash.</p>
|
||||
* <p>Variations of dashes.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int DASH = 4;
|
||||
/**
|
||||
@ -77,97 +83,114 @@ public interface UProperty
|
||||
* </p>
|
||||
* <p>Codepoints (2060..206F, FFF0..FFFB, E0000..E0FFF) +
|
||||
* Other_Default_Ignorable_Code_Point + (Cf + Cc + Cs - White_Space)</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int DEFAULT_IGNORABLE_CODE_POINT = 5;
|
||||
/**
|
||||
* <p>Binary property Deprecated (new).</p>
|
||||
* <p>The usage of deprecated characters is strongly discouraged.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int DEPRECATED = 6;
|
||||
/**
|
||||
* <p>Binary property Diacritic.</p>
|
||||
* <p>Characters that linguistically modify the meaning of another
|
||||
* character to which they apply.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int DIACRITIC = 7;
|
||||
/**
|
||||
* <p>Binary property Extender.</p>
|
||||
* <p>Extend the value or shape of a preceding alphabetic character, e.g.
|
||||
* length and iteration marks.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int EXTENDER = 8;
|
||||
/**
|
||||
* <p>Binary property Full_Composition_Exclusion.</p>
|
||||
* <p>CompositionExclusions.txt + Singleton Decompositions +
|
||||
* Non-Starter Decompositions.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int FULL_COMPOSITION_EXCLUSION = 9;
|
||||
/**
|
||||
* <p>Binary property Grapheme_Base (new).</p>
|
||||
* <p>For programmatic determination of grapheme cluster boundaries.
|
||||
* [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int GRAPHEME_BASE = 10;
|
||||
/**
|
||||
* <p>Binary property Grapheme_Extend (new).</p>
|
||||
* <p>For programmatic determination of grapheme cluster boundaries.</p>
|
||||
* <p>Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int GRAPHEME_EXTEND = 11;
|
||||
/**
|
||||
* <p>Binary property Grapheme_Link (new).</p>
|
||||
* <p>For programmatic determination of grapheme cluster boundaries.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int GRAPHEME_LINK = 12;
|
||||
/**
|
||||
* <p>Binary property Hex_Digit.</p>
|
||||
* <p>Characters commonly used for hexadecimal numbers.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int HEX_DIGIT = 13;
|
||||
/**
|
||||
* <p>Binary property Hyphen.</p>
|
||||
* <p>Dashes used to mark connections between pieces of words, plus the
|
||||
* Katakana middle dot.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int HYPHEN = 14;
|
||||
/**
|
||||
* <p>Binary property ID_Continue.</p>
|
||||
* <p>Characters that can continue an identifier.</p>
|
||||
* <p>ID_Start+Mn+Mc+Nd+Pc</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int ID_CONTINUE = 15;
|
||||
/**
|
||||
* <p>Binary property ID_Start.</p>
|
||||
* <p>Characters that can start an identifier.</p>
|
||||
* <p>Lu+Ll+Lt+Lm+Lo+Nl</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int ID_START = 16;
|
||||
/**
|
||||
* <p>Binary property Ideographic.</p>
|
||||
* <p>CJKV ideographs.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int IDEOGRAPHIC = 17;
|
||||
/**
|
||||
* <p>Binary property IDS_Binary_Operator (new).</p>
|
||||
* <p>For programmatic determination of Ideographic Description Sequences.
|
||||
* </p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int IDS_BINARY_OPERATOR = 18;
|
||||
/**
|
||||
* <p>Binary property IDS_Trinary_Operator (new).</p>
|
||||
* <p?For programmatic determination of Ideographic Description
|
||||
* Sequences.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int IDS_TRINARY_OPERATOR = 19;
|
||||
/**
|
||||
* <p>Binary property Join_Control.</p>
|
||||
* <p>Format controls for cursive joining and ligation.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int JOIN_CONTROL = 20;
|
||||
/**
|
||||
* <p>Binary property Logical_Order_Exception (new).</p>
|
||||
* <p>Characters that do not use logical order and require special
|
||||
* handling in most processing.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int LOGICAL_ORDER_EXCEPTION = 21;
|
||||
/**
|
||||
@ -175,44 +198,52 @@ public interface UProperty
|
||||
* <p>Same as UCharacter.isULowercase(), different from
|
||||
* UCharacter.islower().</p>
|
||||
* <p>Ll+Other_Lowercase</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int LOWERCASE = 22;
|
||||
/** <p>Binary property Math.</p>
|
||||
* <p>Sm+Other_Math</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int MATH = 23;
|
||||
/**
|
||||
* <p>Binary property Noncharacter_Code_Point.</p>
|
||||
* <p>Code points that are explicitly defined as illegal for the encoding
|
||||
* of characters.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int NONCHARACTER_CODE_POINT = 24;
|
||||
/**
|
||||
* <p>Binary property Quotation_Mark.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int QUOTATION_MARK = 25;
|
||||
/**
|
||||
* <p>Binary property Radical (new).</p>
|
||||
* <p>For programmatic determination of Ideographic Description
|
||||
* Sequences.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int RADICAL = 26;
|
||||
/**
|
||||
* <p>Binary property Soft_Dotted (new).</p>
|
||||
* <p>Characters with a "soft dot", like i or j.</p>
|
||||
* <p>An accent placed on these characters causes the dot to disappear.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int SOFT_DOTTED = 27;
|
||||
/**
|
||||
* <p>Binary property Terminal_Punctuation.</p>
|
||||
* <p>Punctuation characters that generally mark the end of textual
|
||||
* units.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int TERMINAL_PUNCTUATION = 28;
|
||||
/**
|
||||
* <p>Binary property Unified_Ideograph (new).</p>
|
||||
* <p>For programmatic determination of Ideographic Description
|
||||
* Sequences.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int UNIFIED_IDEOGRAPH = 29;
|
||||
/**
|
||||
@ -220,6 +251,7 @@ public interface UProperty
|
||||
* <p>Same as UCharacter.isUUppercase(), different from
|
||||
* UCharacter.isUpperCase().</p>
|
||||
* <p>Lu+Other_Uppercase</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int UPPERCASE = 30;
|
||||
/**
|
||||
@ -227,22 +259,26 @@ public interface UProperty
|
||||
* <p>Same as UCharacter.isUWhiteSpace(), different from
|
||||
* UCharacter.isSpace() and UCharacter.isWhitespace().</p>
|
||||
* Space characters+TAB+CR+LF-ZWSP-ZWNBSP</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int WHITE_SPACE = 31;
|
||||
/**
|
||||
* <p>Binary property XID_Continue.</p>
|
||||
* <p>ID_Continue modified to allow closure under normalization forms
|
||||
* NFKC and NFKD.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int XID_CONTINUE = 32;
|
||||
/**
|
||||
* <p>Binary property XID_Start.</p>
|
||||
* <p>ID_Start modified to allow closure under normalization forms NFKC
|
||||
* and NFKD.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int XID_START = 33;
|
||||
/**
|
||||
* <p>One more than the last constant for binary Unicode properties.</p>
|
||||
* @draft ICU 2.1
|
||||
*/
|
||||
public static final int BINARY_LIMIT = 34;
|
||||
/**
|
||||
@ -442,7 +478,7 @@ public interface UProperty
|
||||
*
|
||||
* @see UCharacter#getPropertyName
|
||||
* @see UCharacter#getPropertyValueName
|
||||
* @since ICU 2.4
|
||||
* @draft ICU 2.4
|
||||
*/
|
||||
public interface NameChoice {
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user