1 7 8 package com.ibm.icu.lang; 9 10 14 public class UCharacterEnums { 15 16 17 private UCharacterEnums() {} 19 20 27 public static interface ECharacterCategory { 28 32 public static final byte UNASSIGNED = 0; 33 34 39 public static final byte GENERAL_OTHER_TYPES = 0; 40 41 45 public static final byte UPPERCASE_LETTER = 1; 46 47 51 public static final byte LOWERCASE_LETTER = 2; 52 53 57 58 public static final byte TITLECASE_LETTER = 3; 59 60 64 public static final byte MODIFIER_LETTER = 4; 65 66 70 public static final byte OTHER_LETTER = 5; 71 72 76 public static final byte NON_SPACING_MARK = 6; 77 78 82 public static final byte ENCLOSING_MARK = 7; 83 84 88 public static final byte COMBINING_SPACING_MARK = 8; 89 90 94 public static final byte DECIMAL_DIGIT_NUMBER = 9; 95 96 100 public static final byte LETTER_NUMBER = 10; 101 102 106 public static final byte OTHER_NUMBER = 11; 107 108 112 public static final byte SPACE_SEPARATOR = 12; 113 114 118 public static final byte LINE_SEPARATOR = 13; 119 120 124 public static final byte PARAGRAPH_SEPARATOR = 14; 125 126 130 public static final byte CONTROL = 15; 131 132 136 public static final byte FORMAT = 16; 137 138 142 public static final byte PRIVATE_USE = 17; 143 144 148 public static final byte SURROGATE = 18; 149 150 154 public static final byte DASH_PUNCTUATION = 19; 155 156 160 public static final byte START_PUNCTUATION = 20; 161 162 166 public static final byte END_PUNCTUATION = 21; 167 168 172 public static final byte CONNECTOR_PUNCTUATION = 22; 173 174 178 public static final byte OTHER_PUNCTUATION = 23; 179 180 184 public static final byte MATH_SYMBOL = 24; 185 186 190 public static final byte CURRENCY_SYMBOL = 25; 191 192 196 public static final byte MODIFIER_SYMBOL = 26; 197 198 202 public static final byte OTHER_SYMBOL = 27; 203 204 209 public static final byte INITIAL_PUNCTUATION = 28; 210 211 217 public static final byte INITIAL_QUOTE_PUNCTUATION = 28; 218 219 224 public static final byte FINAL_PUNCTUATION = 29; 225 226 232 public static final byte FINAL_QUOTE_PUNCTUATION = 29; 233 234 238 public static final byte CHAR_CATEGORY_COUNT = 30; 239 } 240 241 249 public static interface ECharacterDirection { 250 254 public static final int LEFT_TO_RIGHT = 0; 255 256 260 public static final byte DIRECTIONALITY_LEFT_TO_RIGHT = (byte)LEFT_TO_RIGHT; 261 262 266 public static final int RIGHT_TO_LEFT = 1; 267 268 272 public static final byte DIRECTIONALITY_RIGHT_TO_LEFT = (byte)RIGHT_TO_LEFT; 273 274 278 public static final int EUROPEAN_NUMBER = 2; 279 280 284 public static final byte DIRECTIONALITY_EUROPEAN_NUMBER = (byte)EUROPEAN_NUMBER; 285 286 290 public static final int EUROPEAN_NUMBER_SEPARATOR = 3; 291 292 296 public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR = (byte)EUROPEAN_NUMBER_SEPARATOR; 297 298 302 public static final int EUROPEAN_NUMBER_TERMINATOR = 4; 303 304 308 public static final byte DIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR = (byte)EUROPEAN_NUMBER_TERMINATOR; 309 310 314 public static final int ARABIC_NUMBER = 5; 315 316 320 public static final byte DIRECTIONALITY_ARABIC_NUMBER = (byte)ARABIC_NUMBER; 321 322 326 public static final int COMMON_NUMBER_SEPARATOR = 6; 327 328 332 public static final byte DIRECTIONALITY_COMMON_NUMBER_SEPARATOR = (byte)COMMON_NUMBER_SEPARATOR; 333 334 338 public static final int BLOCK_SEPARATOR = 7; 339 340 344 public static final byte DIRECTIONALITY_PARAGRAPH_SEPARATOR = (byte)BLOCK_SEPARATOR; 345 346 350 public static final int SEGMENT_SEPARATOR = 8; 351 352 356 public static final byte DIRECTIONALITY_SEGMENT_SEPARATOR = (byte)SEGMENT_SEPARATOR; 357 358 362 public static final int WHITE_SPACE_NEUTRAL = 9; 363 364 368 public static final byte DIRECTIONALITY_WHITESPACE = (byte)WHITE_SPACE_NEUTRAL; 369 370 374 public static final int OTHER_NEUTRAL = 10; 375 376 380 public static final byte DIRECTIONALITY_OTHER_NEUTRALS = (byte)OTHER_NEUTRAL; 381 382 386 public static final int LEFT_TO_RIGHT_EMBEDDING = 11; 387 388 392 public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING = (byte)LEFT_TO_RIGHT_EMBEDDING; 393 394 398 public static final int LEFT_TO_RIGHT_OVERRIDE = 12; 399 400 404 public static final byte DIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE = (byte)LEFT_TO_RIGHT_OVERRIDE; 405 406 410 public static final int RIGHT_TO_LEFT_ARABIC = 13; 411 412 416 public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_ARABIC = (byte)RIGHT_TO_LEFT_ARABIC; 417 418 422 public static final int RIGHT_TO_LEFT_EMBEDDING = 14; 423 424 428 public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING = (byte)RIGHT_TO_LEFT_EMBEDDING; 429 430 434 public static final int RIGHT_TO_LEFT_OVERRIDE = 15; 435 436 440 public static final byte DIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE = (byte)RIGHT_TO_LEFT_OVERRIDE; 441 442 446 public static final int POP_DIRECTIONAL_FORMAT = 16; 447 448 452 public static final byte DIRECTIONALITY_POP_DIRECTIONAL_FORMAT = (byte)POP_DIRECTIONAL_FORMAT; 453 454 458 public static final int DIR_NON_SPACING_MARK = 17; 459 460 464 public static final byte DIRECTIONALITY_NONSPACING_MARK = (byte)DIR_NON_SPACING_MARK; 465 466 470 public static final int BOUNDARY_NEUTRAL = 18; 471 472 476 public static final byte DIRECTIONALITY_BOUNDARY_NEUTRAL = (byte)BOUNDARY_NEUTRAL; 477 478 482 public static final int CHAR_DIRECTION_COUNT = 19; 483 484 489 public static final byte DIRECTIONALITY_UNDEFINED = -1; 490 } 491 } 492 | Popular Tags |