Modified constant definitions.

X-SVN-Rev: 3802
This commit is contained in:
Syn Wee Quek 2001-02-27 17:33:46 +00:00
parent 2c24ff13a5
commit a31b8e3994
3 changed files with 58 additions and 69 deletions

View File

@ -6,8 +6,8 @@
* *
* $Source: * $Source:
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterCategory.java $ * /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterCategory.java $
* $Date: 2001/02/26 23:49:20 $ * $Date: 2001/02/27 17:33:46 $
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
******************************************************************************* *******************************************************************************
*/ */
@ -44,136 +44,136 @@ public class UCharacterCategory
/** /**
* Character type Lu * Character type Lu
*/ */
public static final int UPPERCASE_LETTER = UNASSIGNED + 1; public static final int UPPERCASE_LETTER = 1;
/** /**
* Character type Ll * Character type Ll
*/ */
public static final int LOWERCASE_LETTER = UPPERCASE_LETTER + 1; public static final int LOWERCASE_LETTER = 2;
/** /**
* Character type Lt * Character type Lt
*/ */
public static final int TITLECASE_LETTER = LOWERCASE_LETTER + 1; public static final int TITLECASE_LETTER = 3;
/** /**
* Character type Lm * Character type Lm
*/ */
public static final int MODIFIER_LETTER = TITLECASE_LETTER + 1; public static final int MODIFIER_LETTER = 4;
/** /**
* Character type Lo * Character type Lo
*/ */
public static final int OTHER_LETTER = MODIFIER_LETTER + 1; public static final int OTHER_LETTER = 5;
/** /**
* Character type Lu * Character type Lu
*/ */
public static final int NON_SPACING_MARK = OTHER_LETTER + 1; public static final int NON_SPACING_MARK = 6;
/** /**
* Character type Me * Character type Me
*/ */
public static final int ENCLOSING_MARK = NON_SPACING_MARK + 1; public static final int ENCLOSING_MARK = 7;
/** /**
* Character type Mc * Character type Mc
*/ */
public static final int COMBINING_SPACING_MARK = ENCLOSING_MARK + 1; public static final int COMBINING_SPACING_MARK = 8;
/** /**
* Character type Nd * Character type Nd
*/ */
public static final int DECIMAL_DIGIT_NUMBER = COMBINING_SPACING_MARK + 1; public static final int DECIMAL_DIGIT_NUMBER = 9;
/** /**
* Character type Nl * Character type Nl
*/ */
public static final int LETTER_NUMBER = DECIMAL_DIGIT_NUMBER + 1; public static final int LETTER_NUMBER = 10;
// start of 11------------ // start of 11------------
/** /**
* Character type No * Character type No
*/ */
public static final int OTHER_NUMBER = LETTER_NUMBER + 1; public static final int OTHER_NUMBER = 11;
/** /**
* Character type Zs * Character type Zs
*/ */
public static final int SPACE_SEPARATOR = OTHER_NUMBER + 1; public static final int SPACE_SEPARATOR = 12;
/** /**
* Character type Zl * Character type Zl
*/ */
public static final int LINE_SEPARATOR = SPACE_SEPARATOR + 1; public static final int LINE_SEPARATOR = 13;
/** /**
* Character type Zp * Character type Zp
*/ */
public static final int PARAGRAPH_SEPARATOR = LINE_SEPARATOR + 1; public static final int PARAGRAPH_SEPARATOR = 14;
/** /**
* Character type Cc * Character type Cc
*/ */
public static final int CONTROL = PARAGRAPH_SEPARATOR + 1; public static final int CONTROL = 15;
/** /**
* Character type Cf * Character type Cf
*/ */
public static final int FORMAT = CONTROL + 1; public static final int FORMAT = 16;
/** /**
* Character type Co * Character type Co
*/ */
public static final int PRIVATE_USE = FORMAT + 1; public static final int PRIVATE_USE = 17;
/** /**
* Character type Cs * Character type Cs
*/ */
public static final int SURROGATE = PRIVATE_USE + 1; public static final int SURROGATE = 18;
/** /**
* Character type Pd * Character type Pd
*/ */
public static final int DASH_PUNCTUATION = SURROGATE + 1; public static final int DASH_PUNCTUATION = 19;
/** /**
* Character type Ps * Character type Ps
*/ */
public static final int START_PUNCTUATION = DASH_PUNCTUATION + 1; public static final int START_PUNCTUATION = 20;
// start of 21 ------------ // start of 21 ------------
/** /**
* Character type Pe * Character type Pe
*/ */
public static final int END_PUNCTUATION = START_PUNCTUATION + 1; public static final int END_PUNCTUATION = 21;
/** /**
* Character type Pc * Character type Pc
*/ */
public static final int CONNECTOR_PUNCTUATION = END_PUNCTUATION + 1; public static final int CONNECTOR_PUNCTUATION = 22;
/** /**
* Character type Po * Character type Po
*/ */
public static final int OTHER_PUNCTUATION = CONNECTOR_PUNCTUATION + 1; public static final int OTHER_PUNCTUATION = 23;
/** /**
* Character type Sm * Character type Sm
*/ */
public static final int MATH_SYMBOL = OTHER_PUNCTUATION + 1; public static final int MATH_SYMBOL = 24;
/** /**
* Character type Sc * Character type Sc
*/ */
public static final int CURRENCY_SYMBOL = MATH_SYMBOL + 1; public static final int CURRENCY_SYMBOL = 25;
/** /**
* Character type Sk * Character type Sk
*/ */
public static final int MODIFIER_SYMBOL = CURRENCY_SYMBOL + 1; public static final int MODIFIER_SYMBOL = 26;
/** /**
* Character type So * Character type So
*/ */
public static final int OTHER_SYMBOL = MODIFIER_SYMBOL + 1; public static final int OTHER_SYMBOL = 27;
/** /**
* Character type Pi * Character type Pi
*/ */
public static final int INITIAL_PUNCTUATION = OTHER_SYMBOL + 1; public static final int INITIAL_PUNCTUATION = 28;
/** /**
* Character type Pf * Character type Pf
*/ */
public static final int FINAL_PUNCTUATION = INITIAL_PUNCTUATION + 1; public static final int FINAL_PUNCTUATION = 29;
/** /**
* Character type Cn * Character type Cn
*/ */
public static final int GENERAL_OTHER_TYPES = FINAL_PUNCTUATION + 1; public static final int GENERAL_OTHER_TYPES = 30;
// start of 31 ------------ // start of 31 ------------
/** /**
* Character type count * Character type count
*/ */
public static final int CHAR_CATEGORY_COUNT = GENERAL_OTHER_TYPES + 1; public static final int CHAR_CATEGORY_COUNT = 31;
/** /**
* Gets the name of the argument category * Gets the name of the argument category

View File

@ -6,8 +6,8 @@
* *
* $Source: * $Source:
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterDirection.java $ * /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterDirection.java $
* $Date: 2001/02/26 23:49:20 $ * $Date: 2001/02/27 17:33:46 $
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
******************************************************************************* *******************************************************************************
*/ */
@ -41,93 +41,82 @@ public final class UCharacterDirection
/** /**
* Directional type R * Directional type R
*/ */
public static final int RIGHT_TO_LEFT = LEFT_TO_RIGHT + 1; public static final int RIGHT_TO_LEFT = 1;
/** /**
* Directional type EN * Directional type EN
*/ */
public static final int EUROPEAN_NUMBER = RIGHT_TO_LEFT + 1; public static final int EUROPEAN_NUMBER = 2;
/** /**
* Directional type ES * Directional type ES
*/ */
public static final int EUROPEAN_NUMBER_SEPARATOR = EUROPEAN_NUMBER + 1; public static final int EUROPEAN_NUMBER_SEPARATOR = 3;
/** /**
* Directional type ET * Directional type ET
*/ */
public static final int EUROPEAN_NUMBER_TERMINATOR = public static final int EUROPEAN_NUMBER_TERMINATOR = 4;
EUROPEAN_NUMBER_SEPARATOR + 1;
/** /**
* Directional type AN * Directional type AN
*/ */
public static final int ARABIC_NUMBER = public static final int ARABIC_NUMBER = 5;
EUROPEAN_NUMBER_TERMINATOR + 1;
/** /**
* Directional type CS * Directional type CS
*/ */
public static final int COMMON_NUMBER_SEPARATOR = ARABIC_NUMBER + 1; public static final int COMMON_NUMBER_SEPARATOR = 6;
/** /**
* Directional type B * Directional type B
*/ */
public static final int BLOCK_SEPARATOR = public static final int BLOCK_SEPARATOR = 7;
COMMON_NUMBER_SEPARATOR + 1;
/** /**
* Directional type S * Directional type S
*/ */
public static final int SEGMENT_SEPARATOR = BLOCK_SEPARATOR + 1; public static final int SEGMENT_SEPARATOR = 8;
/** /**
* Directional type WS * Directional type WS
*/ */
public static final int WHITE_SPACE_NEUTRAL = SEGMENT_SEPARATOR + 1; public static final int WHITE_SPACE_NEUTRAL = 9;
// start of 11 --------------- // start of 11 ---------------
/** /**
* Directional type ON * Directional type ON
*/ */
public static final int OTHER_NEUTRAL = public static final int OTHER_NEUTRAL = 10;
WHITE_SPACE_NEUTRAL + 1;
/** /**
* Directional type LRE * Directional type LRE
*/ */
public static final int LEFT_TO_RIGHT_EMBEDDING = OTHER_NEUTRAL + 1; public static final int LEFT_TO_RIGHT_EMBEDDING = 11;
/** /**
* Directional type LRO * Directional type LRO
*/ */
public static final int LEFT_TO_RIGHT_OVERRIDE = public static final int LEFT_TO_RIGHT_OVERRIDE = 12;
LEFT_TO_RIGHT_EMBEDDING + 1;
/** /**
* Directional type AL * Directional type AL
*/ */
public static final int RIGHT_TO_LEFT_ARABIC = public static final int RIGHT_TO_LEFT_ARABIC = 13;
LEFT_TO_RIGHT_OVERRIDE + 1;
/** /**
* Directional type RLE * Directional type RLE
*/ */
public static final int RIGHT_TO_LEFT_EMBEDDING = public static final int RIGHT_TO_LEFT_EMBEDDING = 14;
RIGHT_TO_LEFT_ARABIC + 1;
/** /**
* Directional type RLO * Directional type RLO
*/ */
public static final int RIGHT_TO_LEFT_OVERRIDE = public static final int RIGHT_TO_LEFT_OVERRIDE = 15;
RIGHT_TO_LEFT_EMBEDDING + 1;
/** /**
* Directional type PDF * Directional type PDF
*/ */
public static final int POP_DIRECTIONAL_FORMAT = public static final int POP_DIRECTIONAL_FORMAT = 16;
RIGHT_TO_LEFT_OVERRIDE + 1;
/** /**
* Directional type NSM * Directional type NSM
*/ */
public static final int DIR_NON_SPACING_MARK = public static final int DIR_NON_SPACING_MARK = 17;
POP_DIRECTIONAL_FORMAT + 1;
/** /**
* Directional type BN * Directional type BN
*/ */
public static final int BOUNDARY_NEUTRAL = public static final int BOUNDARY_NEUTRAL = 18;
DIR_NON_SPACING_MARK + 1;
/** /**
* Number of directional type * Number of directional type
*/ */
public static final int CHAR_DIRECTION_COUNT = BOUNDARY_NEUTRAL + 1; public static final int CHAR_DIRECTION_COUNT = 19;
/** /**
* Gets the name of the argument direction * Gets the name of the argument direction

View File

@ -6,8 +6,8 @@
* *
* $Source: * $Source:
* /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterNameChoiceEnum.java $ * /usr/cvs/icu4j/icu4j/src/com/ibm/icu/text/UCharacterNameChoiceEnum.java $
* $Date: 2001/02/26 23:49:20 $ * $Date: 2001/02/27 17:33:46 $
* $Revision: 1.1 $ * $Revision: 1.2 $
* *
******************************************************************************* *******************************************************************************
*/ */
@ -29,6 +29,6 @@ interface UCharacterNameChoice
// public variables ============================================= // public variables =============================================
static final int U_UNICODE_CHAR_NAME = 0; static final int U_UNICODE_CHAR_NAME = 0;
static final int U_UNICODE_10_CHAR_NAME = U_UNICODE_CHAR_NAME + 1; static final int U_UNICODE_10_CHAR_NAME = 1;
static final int U_CHAR_NAME_CHOICE_COUNT = U_UNICODE_10_CHAR_NAME + 1; static final int U_CHAR_NAME_CHOICE_COUNT = 2;
} }