1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 3 /* 4 ********************************************************************** 5 * Copyright (C) 1997-2016, International Business Machines 6 * Corporation and others. All Rights Reserved. 7 ********************************************************************** 8 * 9 * File UCHAR.H 10 * 11 * Modification History: 12 * 13 * Date Name Description 14 * 04/02/97 aliu Creation. 15 * 03/29/99 helena Updated for C APIs. 16 * 4/15/99 Madhu Updated for C Implementation and Javadoc 17 * 5/20/99 Madhu Added the function u_getVersion() 18 * 8/19/1999 srl Upgraded scripts to Unicode 3.0 19 * 8/27/1999 schererm UCharDirection constants: U_... 20 * 11/11/1999 weiv added u_isalnum(), cleaned comments 21 * 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion(). 22 ****************************************************************************** 23 */ 24 25 #ifndef UCHAR_H 26 #define UCHAR_H 27 28 #include "unicode/utypes.h" 29 #include "unicode/stringoptions.h" 30 #include "unicode/ucpmap.h" 31 32 #if !defined(USET_DEFINED) && !defined(U_IN_DOXYGEN) 33 34 #define USET_DEFINED 35 36 /** 37 * USet is the C API type corresponding to C++ class UnicodeSet. 38 * It is forward-declared here to avoid including unicode/uset.h file if related 39 * APIs are not used. 40 * 41 * @see ucnv_getUnicodeSet 42 * @stable ICU 2.4 43 */ 44 typedef struct USet USet; 45 46 #endif 47 48 49 U_CDECL_BEGIN 50 51 /*==========================================================================*/ 52 /* Unicode version number */ 53 /*==========================================================================*/ 54 /** 55 * Unicode version number, default for the current ICU version. 56 * The actual Unicode Character Database (UCD) data is stored in uprops.dat 57 * and may be generated from UCD files from a different Unicode version. 58 * Call u_getUnicodeVersion to get the actual Unicode version of the data. 59 * 60 * @see u_getUnicodeVersion 61 * @stable ICU 2.0 62 */ 63 #define U_UNICODE_VERSION "13.0" 64 65 /** 66 * \file 67 * \brief C API: Unicode Properties 68 * 69 * This C API provides low-level access to the Unicode Character Database. 70 * In addition to raw property values, some convenience functions calculate 71 * derived properties, for example for Java-style programming. 72 * 73 * Unicode assigns each code point (not just assigned character) values for 74 * many properties. 75 * Most of them are simple boolean flags, or constants from a small enumerated list. 76 * For some properties, values are strings or other relatively more complex types. 77 * 78 * For more information see 79 * "About the Unicode Character Database" (http://www.unicode.org/ucd/) 80 * and the ICU User Guide chapter on Properties (http://icu-project.org/userguide/properties.html). 81 * 82 * Many properties are accessible via generic functions that take a UProperty selector. 83 * - u_hasBinaryProperty() returns a binary value (true/false) per property and code point. 84 * - u_getIntPropertyValue() returns an integer value per property and code point. 85 * For each supported enumerated or catalog property, there is 86 * an enum type for all of the property's values, and 87 * u_getIntPropertyValue() returns the numeric values of those constants. 88 * - u_getBinaryPropertySet() returns a set for each ICU-supported binary property with 89 * all code points for which the property is true. 90 * - u_getIntPropertyMap() returns a map for each 91 * ICU-supported enumerated/catalog/int-valued property which 92 * maps all Unicode code points to their values for that property. 93 * 94 * Many functions are designed to match java.lang.Character functions. 95 * See the individual function documentation, 96 * and see the JDK 1.4 java.lang.Character documentation 97 * at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html 98 * 99 * There are also functions that provide easy migration from C/POSIX functions 100 * like isblank(). Their use is generally discouraged because the C/POSIX 101 * standards do not define their semantics beyond the ASCII range, which means 102 * that different implementations exhibit very different behavior. 103 * Instead, Unicode properties should be used directly. 104 * 105 * There are also only a few, broad C/POSIX character classes, and they tend 106 * to be used for conflicting purposes. For example, the "isalpha()" class 107 * is sometimes used to determine word boundaries, while a more sophisticated 108 * approach would at least distinguish initial letters from continuation 109 * characters (the latter including combining marks). 110 * (In ICU, BreakIterator is the most sophisticated API for word boundaries.) 111 * Another example: There is no "istitle()" class for titlecase characters. 112 * 113 * ICU 3.4 and later provides API access for all twelve C/POSIX character classes. 114 * ICU implements them according to the Standard Recommendations in 115 * Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions 116 * (http://www.unicode.org/reports/tr18/#Compatibility_Properties). 117 * 118 * API access for C/POSIX character classes is as follows: 119 * - alpha: u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC) 120 * - lower: u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE) 121 * - upper: u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE) 122 * - punct: u_ispunct(c) 123 * - digit: u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER 124 * - xdigit: u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT) 125 * - alnum: u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM) 126 * - space: u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE) 127 * - blank: u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK) 128 * - cntrl: u_charType(c)==U_CONTROL_CHAR 129 * - graph: u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH) 130 * - print: u_hasBinaryProperty(c, UCHAR_POSIX_PRINT) 131 * 132 * Note: Some of the u_isxyz() functions in uchar.h predate, and do not match, 133 * the Standard Recommendations in UTS #18. Instead, they match Java 134 * functions according to their API documentation. 135 * 136 * \htmlonly 137 * The C/POSIX character classes are also available in UnicodeSet patterns, 138 * using patterns like [:graph:] or \p{graph}. 139 * \endhtmlonly 140 * 141 * Note: There are several ICU whitespace functions. 142 * Comparison: 143 * - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property; 144 * most of general categories "Z" (separators) + most whitespace ISO controls 145 * (including no-break spaces, but excluding IS1..IS4) 146 * - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces 147 * - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces) 148 * - u_isspace: Z + whitespace ISO controls (including no-break spaces) 149 * - u_isblank: "horizontal spaces" = TAB + Zs 150 */ 151 152 /** 153 * Constants. 154 */ 155 156 /** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */ 157 #define UCHAR_MIN_VALUE 0 158 159 /** 160 * The highest Unicode code point value (scalar value) according to 161 * The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up). 162 * For a single character, UChar32 is a simple type that can hold any code point value. 163 * 164 * @see UChar32 165 * @stable ICU 2.0 166 */ 167 #define UCHAR_MAX_VALUE 0x10ffff 168 169 /** 170 * Get a single-bit bit set (a flag) from a bit number 0..31. 171 * @stable ICU 2.1 172 */ 173 #define U_MASK(x) ((uint32_t)1<<(x)) 174 175 /** 176 * Selection constants for Unicode properties. 177 * These constants are used in functions like u_hasBinaryProperty to select 178 * one of the Unicode properties. 179 * 180 * The properties APIs are intended to reflect Unicode properties as defined 181 * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). 182 * 183 * For details about the properties see 184 * UAX #44: Unicode Character Database (http://www.unicode.org/reports/tr44/). 185 * 186 * Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2, 187 * then properties marked with "new in Unicode 3.2" are not or not fully available. 188 * Check u_getUnicodeVersion to be sure. 189 * 190 * @see u_hasBinaryProperty 191 * @see u_getIntPropertyValue 192 * @see u_getUnicodeVersion 193 * @stable ICU 2.1 194 */ 195 typedef enum UProperty { 196 /* 197 * Note: UProperty constants are parsed by preparseucd.py. 198 * It matches lines like 199 * UCHAR_<Unicode property name>=<integer>, 200 */ 201 202 /* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that 203 debuggers display UCHAR_ALPHABETIC as the symbolic name for 0, 204 rather than UCHAR_BINARY_START. Likewise for other *_START 205 identifiers. */ 206 207 /** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha. 208 Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */ 209 UCHAR_ALPHABETIC=0, 210 /** First constant for binary Unicode properties. @stable ICU 2.1 */ 211 UCHAR_BINARY_START=UCHAR_ALPHABETIC, 212 /** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */ 213 UCHAR_ASCII_HEX_DIGIT=1, 214 /** Binary property Bidi_Control. 215 Format controls which have specific functions 216 in the Bidi Algorithm. @stable ICU 2.1 */ 217 UCHAR_BIDI_CONTROL=2, 218 /** Binary property Bidi_Mirrored. 219 Characters that may change display in RTL text. 220 Same as u_isMirrored. 221 See Bidi Algorithm, UTR 9. @stable ICU 2.1 */ 222 UCHAR_BIDI_MIRRORED=3, 223 /** Binary property Dash. Variations of dashes. @stable ICU 2.1 */ 224 UCHAR_DASH=4, 225 /** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2). 226 Ignorable in most processing. 227 <2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */ 228 UCHAR_DEFAULT_IGNORABLE_CODE_POINT=5, 229 /** Binary property Deprecated (new in Unicode 3.2). 230 The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */ 231 UCHAR_DEPRECATED=6, 232 /** Binary property Diacritic. Characters that linguistically modify 233 the meaning of another character to which they apply. @stable ICU 2.1 */ 234 UCHAR_DIACRITIC=7, 235 /** Binary property Extender. 236 Extend the value or shape of a preceding alphabetic character, 237 e.g., length and iteration marks. @stable ICU 2.1 */ 238 UCHAR_EXTENDER=8, 239 /** Binary property Full_Composition_Exclusion. 240 CompositionExclusions.txt+Singleton Decompositions+ 241 Non-Starter Decompositions. @stable ICU 2.1 */ 242 UCHAR_FULL_COMPOSITION_EXCLUSION=9, 243 /** Binary property Grapheme_Base (new in Unicode 3.2). 244 For programmatic determination of grapheme cluster boundaries. 245 [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */ 246 UCHAR_GRAPHEME_BASE=10, 247 /** Binary property Grapheme_Extend (new in Unicode 3.2). 248 For programmatic determination of grapheme cluster boundaries. 249 Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */ 250 UCHAR_GRAPHEME_EXTEND=11, 251 /** Binary property Grapheme_Link (new in Unicode 3.2). 252 For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */ 253 UCHAR_GRAPHEME_LINK=12, 254 /** Binary property Hex_Digit. 255 Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */ 256 UCHAR_HEX_DIGIT=13, 257 /** Binary property Hyphen. Dashes used to mark connections 258 between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */ 259 UCHAR_HYPHEN=14, 260 /** Binary property ID_Continue. 261 Characters that can continue an identifier. 262 DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out." 263 ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */ 264 UCHAR_ID_CONTINUE=15, 265 /** Binary property ID_Start. 266 Characters that can start an identifier. 267 Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */ 268 UCHAR_ID_START=16, 269 /** Binary property Ideographic. 270 CJKV ideographs. @stable ICU 2.1 */ 271 UCHAR_IDEOGRAPHIC=17, 272 /** Binary property IDS_Binary_Operator (new in Unicode 3.2). 273 For programmatic determination of 274 Ideographic Description Sequences. @stable ICU 2.1 */ 275 UCHAR_IDS_BINARY_OPERATOR=18, 276 /** Binary property IDS_Trinary_Operator (new in Unicode 3.2). 277 For programmatic determination of 278 Ideographic Description Sequences. @stable ICU 2.1 */ 279 UCHAR_IDS_TRINARY_OPERATOR=19, 280 /** Binary property Join_Control. 281 Format controls for cursive joining and ligation. @stable ICU 2.1 */ 282 UCHAR_JOIN_CONTROL=20, 283 /** Binary property Logical_Order_Exception (new in Unicode 3.2). 284 Characters that do not use logical order and 285 require special handling in most processing. @stable ICU 2.1 */ 286 UCHAR_LOGICAL_ORDER_EXCEPTION=21, 287 /** Binary property Lowercase. Same as u_isULowercase, different from u_islower. 288 Ll+Other_Lowercase @stable ICU 2.1 */ 289 UCHAR_LOWERCASE=22, 290 /** Binary property Math. Sm+Other_Math @stable ICU 2.1 */ 291 UCHAR_MATH=23, 292 /** Binary property Noncharacter_Code_Point. 293 Code points that are explicitly defined as illegal 294 for the encoding of characters. @stable ICU 2.1 */ 295 UCHAR_NONCHARACTER_CODE_POINT=24, 296 /** Binary property Quotation_Mark. @stable ICU 2.1 */ 297 UCHAR_QUOTATION_MARK=25, 298 /** Binary property Radical (new in Unicode 3.2). 299 For programmatic determination of 300 Ideographic Description Sequences. @stable ICU 2.1 */ 301 UCHAR_RADICAL=26, 302 /** Binary property Soft_Dotted (new in Unicode 3.2). 303 Characters with a "soft dot", like i or j. 304 An accent placed on these characters causes 305 the dot to disappear. @stable ICU 2.1 */ 306 UCHAR_SOFT_DOTTED=27, 307 /** Binary property Terminal_Punctuation. 308 Punctuation characters that generally mark 309 the end of textual units. @stable ICU 2.1 */ 310 UCHAR_TERMINAL_PUNCTUATION=28, 311 /** Binary property Unified_Ideograph (new in Unicode 3.2). 312 For programmatic determination of 313 Ideographic Description Sequences. @stable ICU 2.1 */ 314 UCHAR_UNIFIED_IDEOGRAPH=29, 315 /** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper. 316 Lu+Other_Uppercase @stable ICU 2.1 */ 317 UCHAR_UPPERCASE=30, 318 /** Binary property White_Space. 319 Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace. 320 Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */ 321 UCHAR_WHITE_SPACE=31, 322 /** Binary property XID_Continue. 323 ID_Continue modified to allow closure under 324 normalization forms NFKC and NFKD. @stable ICU 2.1 */ 325 UCHAR_XID_CONTINUE=32, 326 /** Binary property XID_Start. ID_Start modified to allow 327 closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */ 328 UCHAR_XID_START=33, 329 /** Binary property Case_Sensitive. Either the source of a case 330 mapping or _in_ the target of a case mapping. Not the same as 331 the general category Cased_Letter. @stable ICU 2.6 */ 332 UCHAR_CASE_SENSITIVE=34, 333 /** Binary property STerm (new in Unicode 4.0.1). 334 Sentence Terminal. Used in UAX #29: Text Boundaries 335 (http://www.unicode.org/reports/tr29/) 336 @stable ICU 3.0 */ 337 UCHAR_S_TERM=35, 338 /** Binary property Variation_Selector (new in Unicode 4.0.1). 339 Indicates all those characters that qualify as Variation Selectors. 340 For details on the behavior of these characters, 341 see StandardizedVariants.html and 15.6 Variation Selectors. 342 @stable ICU 3.0 */ 343 UCHAR_VARIATION_SELECTOR=36, 344 /** Binary property NFD_Inert. 345 ICU-specific property for characters that are inert under NFD, 346 i.e., they do not interact with adjacent characters. 347 See the documentation for the Normalizer2 class and the 348 Normalizer2::isInert() method. 349 @stable ICU 3.0 */ 350 UCHAR_NFD_INERT=37, 351 /** Binary property NFKD_Inert. 352 ICU-specific property for characters that are inert under NFKD, 353 i.e., they do not interact with adjacent characters. 354 See the documentation for the Normalizer2 class and the 355 Normalizer2::isInert() method. 356 @stable ICU 3.0 */ 357 UCHAR_NFKD_INERT=38, 358 /** Binary property NFC_Inert. 359 ICU-specific property for characters that are inert under NFC, 360 i.e., they do not interact with adjacent characters. 361 See the documentation for the Normalizer2 class and the 362 Normalizer2::isInert() method. 363 @stable ICU 3.0 */ 364 UCHAR_NFC_INERT=39, 365 /** Binary property NFKC_Inert. 366 ICU-specific property for characters that are inert under NFKC, 367 i.e., they do not interact with adjacent characters. 368 See the documentation for the Normalizer2 class and the 369 Normalizer2::isInert() method. 370 @stable ICU 3.0 */ 371 UCHAR_NFKC_INERT=40, 372 /** Binary Property Segment_Starter. 373 ICU-specific property for characters that are starters in terms of 374 Unicode normalization and combining character sequences. 375 They have ccc=0 and do not occur in non-initial position of the 376 canonical decomposition of any character 377 (like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)). 378 ICU uses this property for segmenting a string for generating a set of 379 canonically equivalent strings, e.g. for canonical closure while 380 processing collation tailoring rules. 381 @stable ICU 3.0 */ 382 UCHAR_SEGMENT_STARTER=41, 383 /** Binary property Pattern_Syntax (new in Unicode 4.1). 384 See UAX #31 Identifier and Pattern Syntax 385 (http://www.unicode.org/reports/tr31/) 386 @stable ICU 3.4 */ 387 UCHAR_PATTERN_SYNTAX=42, 388 /** Binary property Pattern_White_Space (new in Unicode 4.1). 389 See UAX #31 Identifier and Pattern Syntax 390 (http://www.unicode.org/reports/tr31/) 391 @stable ICU 3.4 */ 392 UCHAR_PATTERN_WHITE_SPACE=43, 393 /** Binary property alnum (a C/POSIX character class). 394 Implemented according to the UTS #18 Annex C Standard Recommendation. 395 See the uchar.h file documentation. 396 @stable ICU 3.4 */ 397 UCHAR_POSIX_ALNUM=44, 398 /** Binary property blank (a C/POSIX character class). 399 Implemented according to the UTS #18 Annex C Standard Recommendation. 400 See the uchar.h file documentation. 401 @stable ICU 3.4 */ 402 UCHAR_POSIX_BLANK=45, 403 /** Binary property graph (a C/POSIX character class). 404 Implemented according to the UTS #18 Annex C Standard Recommendation. 405 See the uchar.h file documentation. 406 @stable ICU 3.4 */ 407 UCHAR_POSIX_GRAPH=46, 408 /** Binary property print (a C/POSIX character class). 409 Implemented according to the UTS #18 Annex C Standard Recommendation. 410 See the uchar.h file documentation. 411 @stable ICU 3.4 */ 412 UCHAR_POSIX_PRINT=47, 413 /** Binary property xdigit (a C/POSIX character class). 414 Implemented according to the UTS #18 Annex C Standard Recommendation. 415 See the uchar.h file documentation. 416 @stable ICU 3.4 */ 417 UCHAR_POSIX_XDIGIT=48, 418 /** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */ 419 UCHAR_CASED=49, 420 /** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */ 421 UCHAR_CASE_IGNORABLE=50, 422 /** Binary property Changes_When_Lowercased. @stable ICU 4.4 */ 423 UCHAR_CHANGES_WHEN_LOWERCASED=51, 424 /** Binary property Changes_When_Uppercased. @stable ICU 4.4 */ 425 UCHAR_CHANGES_WHEN_UPPERCASED=52, 426 /** Binary property Changes_When_Titlecased. @stable ICU 4.4 */ 427 UCHAR_CHANGES_WHEN_TITLECASED=53, 428 /** Binary property Changes_When_Casefolded. @stable ICU 4.4 */ 429 UCHAR_CHANGES_WHEN_CASEFOLDED=54, 430 /** Binary property Changes_When_Casemapped. @stable ICU 4.4 */ 431 UCHAR_CHANGES_WHEN_CASEMAPPED=55, 432 /** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */ 433 UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED=56, 434 /** 435 * Binary property Emoji. 436 * See http://www.unicode.org/reports/tr51/#Emoji_Properties 437 * 438 * @stable ICU 57 439 */ 440 UCHAR_EMOJI=57, 441 /** 442 * Binary property Emoji_Presentation. 443 * See http://www.unicode.org/reports/tr51/#Emoji_Properties 444 * 445 * @stable ICU 57 446 */ 447 UCHAR_EMOJI_PRESENTATION=58, 448 /** 449 * Binary property Emoji_Modifier. 450 * See http://www.unicode.org/reports/tr51/#Emoji_Properties 451 * 452 * @stable ICU 57 453 */ 454 UCHAR_EMOJI_MODIFIER=59, 455 /** 456 * Binary property Emoji_Modifier_Base. 457 * See http://www.unicode.org/reports/tr51/#Emoji_Properties 458 * 459 * @stable ICU 57 460 */ 461 UCHAR_EMOJI_MODIFIER_BASE=60, 462 /** 463 * Binary property Emoji_Component. 464 * See http://www.unicode.org/reports/tr51/#Emoji_Properties 465 * 466 * @stable ICU 60 467 */ 468 UCHAR_EMOJI_COMPONENT=61, 469 /** 470 * Binary property Regional_Indicator. 471 * @stable ICU 60 472 */ 473 UCHAR_REGIONAL_INDICATOR=62, 474 /** 475 * Binary property Prepended_Concatenation_Mark. 476 * @stable ICU 60 477 */ 478 UCHAR_PREPENDED_CONCATENATION_MARK=63, 479 /** 480 * Binary property Extended_Pictographic. 481 * See http://www.unicode.org/reports/tr51/#Emoji_Properties 482 * 483 * @stable ICU 62 484 */ 485 UCHAR_EXTENDED_PICTOGRAPHIC=64, 486 #ifndef U_HIDE_DEPRECATED_API 487 /** 488 * One more than the last constant for binary Unicode properties. 489 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 490 */ 491 UCHAR_BINARY_LIMIT, 492 #endif // U_HIDE_DEPRECATED_API 493 494 /** Enumerated property Bidi_Class. 495 Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */ 496 UCHAR_BIDI_CLASS=0x1000, 497 /** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */ 498 UCHAR_INT_START=UCHAR_BIDI_CLASS, 499 /** Enumerated property Block. 500 Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */ 501 UCHAR_BLOCK=0x1001, 502 /** Enumerated property Canonical_Combining_Class. 503 Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */ 504 UCHAR_CANONICAL_COMBINING_CLASS=0x1002, 505 /** Enumerated property Decomposition_Type. 506 Returns UDecompositionType values. @stable ICU 2.2 */ 507 UCHAR_DECOMPOSITION_TYPE=0x1003, 508 /** Enumerated property East_Asian_Width. 509 See http://www.unicode.org/reports/tr11/ 510 Returns UEastAsianWidth values. @stable ICU 2.2 */ 511 UCHAR_EAST_ASIAN_WIDTH=0x1004, 512 /** Enumerated property General_Category. 513 Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */ 514 UCHAR_GENERAL_CATEGORY=0x1005, 515 /** Enumerated property Joining_Group. 516 Returns UJoiningGroup values. @stable ICU 2.2 */ 517 UCHAR_JOINING_GROUP=0x1006, 518 /** Enumerated property Joining_Type. 519 Returns UJoiningType values. @stable ICU 2.2 */ 520 UCHAR_JOINING_TYPE=0x1007, 521 /** Enumerated property Line_Break. 522 Returns ULineBreak values. @stable ICU 2.2 */ 523 UCHAR_LINE_BREAK=0x1008, 524 /** Enumerated property Numeric_Type. 525 Returns UNumericType values. @stable ICU 2.2 */ 526 UCHAR_NUMERIC_TYPE=0x1009, 527 /** Enumerated property Script. 528 Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */ 529 UCHAR_SCRIPT=0x100A, 530 /** Enumerated property Hangul_Syllable_Type, new in Unicode 4. 531 Returns UHangulSyllableType values. @stable ICU 2.6 */ 532 UCHAR_HANGUL_SYLLABLE_TYPE=0x100B, 533 /** Enumerated property NFD_Quick_Check. 534 Returns UNormalizationCheckResult values. @stable ICU 3.0 */ 535 UCHAR_NFD_QUICK_CHECK=0x100C, 536 /** Enumerated property NFKD_Quick_Check. 537 Returns UNormalizationCheckResult values. @stable ICU 3.0 */ 538 UCHAR_NFKD_QUICK_CHECK=0x100D, 539 /** Enumerated property NFC_Quick_Check. 540 Returns UNormalizationCheckResult values. @stable ICU 3.0 */ 541 UCHAR_NFC_QUICK_CHECK=0x100E, 542 /** Enumerated property NFKC_Quick_Check. 543 Returns UNormalizationCheckResult values. @stable ICU 3.0 */ 544 UCHAR_NFKC_QUICK_CHECK=0x100F, 545 /** Enumerated property Lead_Canonical_Combining_Class. 546 ICU-specific property for the ccc of the first code point 547 of the decomposition, or lccc(c)=ccc(NFD(c)[0]). 548 Useful for checking for canonically ordered text; 549 see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD . 550 Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */ 551 UCHAR_LEAD_CANONICAL_COMBINING_CLASS=0x1010, 552 /** Enumerated property Trail_Canonical_Combining_Class. 553 ICU-specific property for the ccc of the last code point 554 of the decomposition, or tccc(c)=ccc(NFD(c)[last]). 555 Useful for checking for canonically ordered text; 556 see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD . 557 Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */ 558 UCHAR_TRAIL_CANONICAL_COMBINING_CLASS=0x1011, 559 /** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1). 560 Used in UAX #29: Text Boundaries 561 (http://www.unicode.org/reports/tr29/) 562 Returns UGraphemeClusterBreak values. @stable ICU 3.4 */ 563 UCHAR_GRAPHEME_CLUSTER_BREAK=0x1012, 564 /** Enumerated property Sentence_Break (new in Unicode 4.1). 565 Used in UAX #29: Text Boundaries 566 (http://www.unicode.org/reports/tr29/) 567 Returns USentenceBreak values. @stable ICU 3.4 */ 568 UCHAR_SENTENCE_BREAK=0x1013, 569 /** Enumerated property Word_Break (new in Unicode 4.1). 570 Used in UAX #29: Text Boundaries 571 (http://www.unicode.org/reports/tr29/) 572 Returns UWordBreakValues values. @stable ICU 3.4 */ 573 UCHAR_WORD_BREAK=0x1014, 574 /** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3). 575 Used in UAX #9: Unicode Bidirectional Algorithm 576 (http://www.unicode.org/reports/tr9/) 577 Returns UBidiPairedBracketType values. @stable ICU 52 */ 578 UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015, 579 /** 580 * Enumerated property Indic_Positional_Category. 581 * New in Unicode 6.0 as provisional property Indic_Matra_Category; 582 * renamed and changed to informative in Unicode 8.0. 583 * See http://www.unicode.org/reports/tr44/#IndicPositionalCategory.txt 584 * @stable ICU 63 585 */ 586 UCHAR_INDIC_POSITIONAL_CATEGORY=0x1016, 587 /** 588 * Enumerated property Indic_Syllabic_Category. 589 * New in Unicode 6.0 as provisional; informative since Unicode 8.0. 590 * See http://www.unicode.org/reports/tr44/#IndicSyllabicCategory.txt 591 * @stable ICU 63 592 */ 593 UCHAR_INDIC_SYLLABIC_CATEGORY=0x1017, 594 /** 595 * Enumerated property Vertical_Orientation. 596 * Used for UAX #50 Unicode Vertical Text Layout (https://www.unicode.org/reports/tr50/). 597 * New as a UCD property in Unicode 10.0. 598 * @stable ICU 63 599 */ 600 UCHAR_VERTICAL_ORIENTATION=0x1018, 601 #ifndef U_HIDE_DEPRECATED_API 602 /** 603 * One more than the last constant for enumerated/integer Unicode properties. 604 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 605 */ 606 UCHAR_INT_LIMIT=0x1019, 607 #endif // U_HIDE_DEPRECATED_API 608 609 /** Bitmask property General_Category_Mask. 610 This is the General_Category property returned as a bit mask. 611 When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)), 612 returns bit masks for UCharCategory values where exactly one bit is set. 613 When used with u_getPropertyValueName() and u_getPropertyValueEnum(), 614 a multi-bit mask is used for sets of categories like "Letters". 615 Mask values should be cast to uint32_t. 616 @stable ICU 2.4 */ 617 UCHAR_GENERAL_CATEGORY_MASK=0x2000, 618 /** First constant for bit-mask Unicode properties. @stable ICU 2.4 */ 619 UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK, 620 #ifndef U_HIDE_DEPRECATED_API 621 /** 622 * One more than the last constant for bit-mask Unicode properties. 623 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 624 */ 625 UCHAR_MASK_LIMIT=0x2001, 626 #endif // U_HIDE_DEPRECATED_API 627 628 /** Double property Numeric_Value. 629 Corresponds to u_getNumericValue. @stable ICU 2.4 */ 630 UCHAR_NUMERIC_VALUE=0x3000, 631 /** First constant for double Unicode properties. @stable ICU 2.4 */ 632 UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE, 633 #ifndef U_HIDE_DEPRECATED_API 634 /** 635 * One more than the last constant for double Unicode properties. 636 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 637 */ 638 UCHAR_DOUBLE_LIMIT=0x3001, 639 #endif // U_HIDE_DEPRECATED_API 640 641 /** String property Age. 642 Corresponds to u_charAge. @stable ICU 2.4 */ 643 UCHAR_AGE=0x4000, 644 /** First constant for string Unicode properties. @stable ICU 2.4 */ 645 UCHAR_STRING_START=UCHAR_AGE, 646 /** String property Bidi_Mirroring_Glyph. 647 Corresponds to u_charMirror. @stable ICU 2.4 */ 648 UCHAR_BIDI_MIRRORING_GLYPH=0x4001, 649 /** String property Case_Folding. 650 Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */ 651 UCHAR_CASE_FOLDING=0x4002, 652 #ifndef U_HIDE_DEPRECATED_API 653 /** Deprecated string property ISO_Comment. 654 Corresponds to u_getISOComment. @deprecated ICU 49 */ 655 UCHAR_ISO_COMMENT=0x4003, 656 #endif /* U_HIDE_DEPRECATED_API */ 657 /** String property Lowercase_Mapping. 658 Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */ 659 UCHAR_LOWERCASE_MAPPING=0x4004, 660 /** String property Name. 661 Corresponds to u_charName. @stable ICU 2.4 */ 662 UCHAR_NAME=0x4005, 663 /** String property Simple_Case_Folding. 664 Corresponds to u_foldCase. @stable ICU 2.4 */ 665 UCHAR_SIMPLE_CASE_FOLDING=0x4006, 666 /** String property Simple_Lowercase_Mapping. 667 Corresponds to u_tolower. @stable ICU 2.4 */ 668 UCHAR_SIMPLE_LOWERCASE_MAPPING=0x4007, 669 /** String property Simple_Titlecase_Mapping. 670 Corresponds to u_totitle. @stable ICU 2.4 */ 671 UCHAR_SIMPLE_TITLECASE_MAPPING=0x4008, 672 /** String property Simple_Uppercase_Mapping. 673 Corresponds to u_toupper. @stable ICU 2.4 */ 674 UCHAR_SIMPLE_UPPERCASE_MAPPING=0x4009, 675 /** String property Titlecase_Mapping. 676 Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */ 677 UCHAR_TITLECASE_MAPPING=0x400A, 678 #ifndef U_HIDE_DEPRECATED_API 679 /** String property Unicode_1_Name. 680 This property is of little practical value. 681 Beginning with ICU 49, ICU APIs return an empty string for this property. 682 Corresponds to u_charName(U_UNICODE_10_CHAR_NAME). @deprecated ICU 49 */ 683 UCHAR_UNICODE_1_NAME=0x400B, 684 #endif /* U_HIDE_DEPRECATED_API */ 685 /** String property Uppercase_Mapping. 686 Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */ 687 UCHAR_UPPERCASE_MAPPING=0x400C, 688 /** String property Bidi_Paired_Bracket (new in Unicode 6.3). 689 Corresponds to u_getBidiPairedBracket. @stable ICU 52 */ 690 UCHAR_BIDI_PAIRED_BRACKET=0x400D, 691 #ifndef U_HIDE_DEPRECATED_API 692 /** 693 * One more than the last constant for string Unicode properties. 694 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 695 */ 696 UCHAR_STRING_LIMIT=0x400E, 697 #endif // U_HIDE_DEPRECATED_API 698 699 /** Miscellaneous property Script_Extensions (new in Unicode 6.0). 700 Some characters are commonly used in multiple scripts. 701 For more information, see UAX #24: http://www.unicode.org/reports/tr24/. 702 Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h. 703 @stable ICU 4.6 */ 704 UCHAR_SCRIPT_EXTENSIONS=0x7000, 705 /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */ 706 UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS, 707 #ifndef U_HIDE_DEPRECATED_API 708 /** 709 * One more than the last constant for Unicode properties with unusual value types. 710 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 711 */ 712 UCHAR_OTHER_PROPERTY_LIMIT=0x7001, 713 #endif // U_HIDE_DEPRECATED_API 714 715 /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */ 716 UCHAR_INVALID_CODE = -1 717 } UProperty; 718 719 /** 720 * Data for enumerated Unicode general category types. 721 * See http://www.unicode.org/Public/UNIDATA/UnicodeData.html . 722 * @stable ICU 2.0 723 */ 724 typedef enum UCharCategory 725 { 726 /* 727 * Note: UCharCategory constants and their API comments are parsed by preparseucd.py. 728 * It matches pairs of lines like 729 * / ** <Unicode 2-letter General_Category value> comment... * / 730 * U_<[A-Z_]+> = <integer>, 731 */ 732 733 /** Non-category for unassigned and non-character code points. @stable ICU 2.0 */ 734 U_UNASSIGNED = 0, 735 /** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */ 736 U_GENERAL_OTHER_TYPES = 0, 737 /** Lu @stable ICU 2.0 */ 738 U_UPPERCASE_LETTER = 1, 739 /** Ll @stable ICU 2.0 */ 740 U_LOWERCASE_LETTER = 2, 741 /** Lt @stable ICU 2.0 */ 742 U_TITLECASE_LETTER = 3, 743 /** Lm @stable ICU 2.0 */ 744 U_MODIFIER_LETTER = 4, 745 /** Lo @stable ICU 2.0 */ 746 U_OTHER_LETTER = 5, 747 /** Mn @stable ICU 2.0 */ 748 U_NON_SPACING_MARK = 6, 749 /** Me @stable ICU 2.0 */ 750 U_ENCLOSING_MARK = 7, 751 /** Mc @stable ICU 2.0 */ 752 U_COMBINING_SPACING_MARK = 8, 753 /** Nd @stable ICU 2.0 */ 754 U_DECIMAL_DIGIT_NUMBER = 9, 755 /** Nl @stable ICU 2.0 */ 756 U_LETTER_NUMBER = 10, 757 /** No @stable ICU 2.0 */ 758 U_OTHER_NUMBER = 11, 759 /** Zs @stable ICU 2.0 */ 760 U_SPACE_SEPARATOR = 12, 761 /** Zl @stable ICU 2.0 */ 762 U_LINE_SEPARATOR = 13, 763 /** Zp @stable ICU 2.0 */ 764 U_PARAGRAPH_SEPARATOR = 14, 765 /** Cc @stable ICU 2.0 */ 766 U_CONTROL_CHAR = 15, 767 /** Cf @stable ICU 2.0 */ 768 U_FORMAT_CHAR = 16, 769 /** Co @stable ICU 2.0 */ 770 U_PRIVATE_USE_CHAR = 17, 771 /** Cs @stable ICU 2.0 */ 772 U_SURROGATE = 18, 773 /** Pd @stable ICU 2.0 */ 774 U_DASH_PUNCTUATION = 19, 775 /** Ps @stable ICU 2.0 */ 776 U_START_PUNCTUATION = 20, 777 /** Pe @stable ICU 2.0 */ 778 U_END_PUNCTUATION = 21, 779 /** Pc @stable ICU 2.0 */ 780 U_CONNECTOR_PUNCTUATION = 22, 781 /** Po @stable ICU 2.0 */ 782 U_OTHER_PUNCTUATION = 23, 783 /** Sm @stable ICU 2.0 */ 784 U_MATH_SYMBOL = 24, 785 /** Sc @stable ICU 2.0 */ 786 U_CURRENCY_SYMBOL = 25, 787 /** Sk @stable ICU 2.0 */ 788 U_MODIFIER_SYMBOL = 26, 789 /** So @stable ICU 2.0 */ 790 U_OTHER_SYMBOL = 27, 791 /** Pi @stable ICU 2.0 */ 792 U_INITIAL_PUNCTUATION = 28, 793 /** Pf @stable ICU 2.0 */ 794 U_FINAL_PUNCTUATION = 29, 795 /** 796 * One higher than the last enum UCharCategory constant. 797 * This numeric value is stable (will not change), see 798 * http://www.unicode.org/policies/stability_policy.html#Property_Value 799 * 800 * @stable ICU 2.0 801 */ 802 U_CHAR_CATEGORY_COUNT 803 } UCharCategory; 804 805 /** 806 * U_GC_XX_MASK constants are bit flags corresponding to Unicode 807 * general category values. 808 * For each category, the nth bit is set if the numeric value of the 809 * corresponding UCharCategory constant is n. 810 * 811 * There are also some U_GC_Y_MASK constants for groups of general categories 812 * like L for all letter categories. 813 * 814 * @see u_charType 815 * @see U_GET_GC_MASK 816 * @see UCharCategory 817 * @stable ICU 2.1 818 */ 819 #define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES) 820 821 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 822 #define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER) 823 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 824 #define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER) 825 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 826 #define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER) 827 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 828 #define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER) 829 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 830 #define U_GC_LO_MASK U_MASK(U_OTHER_LETTER) 831 832 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 833 #define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK) 834 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 835 #define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK) 836 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 837 #define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK) 838 839 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 840 #define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER) 841 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 842 #define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER) 843 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 844 #define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER) 845 846 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 847 #define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR) 848 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 849 #define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR) 850 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 851 #define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR) 852 853 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 854 #define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR) 855 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 856 #define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR) 857 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 858 #define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR) 859 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 860 #define U_GC_CS_MASK U_MASK(U_SURROGATE) 861 862 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 863 #define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION) 864 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 865 #define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION) 866 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 867 #define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION) 868 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 869 #define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION) 870 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 871 #define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION) 872 873 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 874 #define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL) 875 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 876 #define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL) 877 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 878 #define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL) 879 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 880 #define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL) 881 882 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 883 #define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION) 884 /** Mask constant for a UCharCategory. @stable ICU 2.1 */ 885 #define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION) 886 887 888 /** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */ 889 #define U_GC_L_MASK \ 890 (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK) 891 892 /** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */ 893 #define U_GC_LC_MASK \ 894 (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK) 895 896 /** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */ 897 #define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK) 898 899 /** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */ 900 #define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK) 901 902 /** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */ 903 #define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK) 904 905 /** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */ 906 #define U_GC_C_MASK \ 907 (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK) 908 909 /** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */ 910 #define U_GC_P_MASK \ 911 (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \ 912 U_GC_PI_MASK|U_GC_PF_MASK) 913 914 /** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */ 915 #define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK) 916 917 /** 918 * This specifies the language directional property of a character set. 919 * @stable ICU 2.0 920 */ 921 typedef enum UCharDirection { 922 /* 923 * Note: UCharDirection constants and their API comments are parsed by preparseucd.py. 924 * It matches pairs of lines like 925 * / ** <Unicode 1..3-letter Bidi_Class value> comment... * / 926 * U_<[A-Z_]+> = <integer>, 927 */ 928 929 /** L @stable ICU 2.0 */ 930 U_LEFT_TO_RIGHT = 0, 931 /** R @stable ICU 2.0 */ 932 U_RIGHT_TO_LEFT = 1, 933 /** EN @stable ICU 2.0 */ 934 U_EUROPEAN_NUMBER = 2, 935 /** ES @stable ICU 2.0 */ 936 U_EUROPEAN_NUMBER_SEPARATOR = 3, 937 /** ET @stable ICU 2.0 */ 938 U_EUROPEAN_NUMBER_TERMINATOR = 4, 939 /** AN @stable ICU 2.0 */ 940 U_ARABIC_NUMBER = 5, 941 /** CS @stable ICU 2.0 */ 942 U_COMMON_NUMBER_SEPARATOR = 6, 943 /** B @stable ICU 2.0 */ 944 U_BLOCK_SEPARATOR = 7, 945 /** S @stable ICU 2.0 */ 946 U_SEGMENT_SEPARATOR = 8, 947 /** WS @stable ICU 2.0 */ 948 U_WHITE_SPACE_NEUTRAL = 9, 949 /** ON @stable ICU 2.0 */ 950 U_OTHER_NEUTRAL = 10, 951 /** LRE @stable ICU 2.0 */ 952 U_LEFT_TO_RIGHT_EMBEDDING = 11, 953 /** LRO @stable ICU 2.0 */ 954 U_LEFT_TO_RIGHT_OVERRIDE = 12, 955 /** AL @stable ICU 2.0 */ 956 U_RIGHT_TO_LEFT_ARABIC = 13, 957 /** RLE @stable ICU 2.0 */ 958 U_RIGHT_TO_LEFT_EMBEDDING = 14, 959 /** RLO @stable ICU 2.0 */ 960 U_RIGHT_TO_LEFT_OVERRIDE = 15, 961 /** PDF @stable ICU 2.0 */ 962 U_POP_DIRECTIONAL_FORMAT = 16, 963 /** NSM @stable ICU 2.0 */ 964 U_DIR_NON_SPACING_MARK = 17, 965 /** BN @stable ICU 2.0 */ 966 U_BOUNDARY_NEUTRAL = 18, 967 /** FSI @stable ICU 52 */ 968 U_FIRST_STRONG_ISOLATE = 19, 969 /** LRI @stable ICU 52 */ 970 U_LEFT_TO_RIGHT_ISOLATE = 20, 971 /** RLI @stable ICU 52 */ 972 U_RIGHT_TO_LEFT_ISOLATE = 21, 973 /** PDI @stable ICU 52 */ 974 U_POP_DIRECTIONAL_ISOLATE = 22, 975 #ifndef U_HIDE_DEPRECATED_API 976 /** 977 * One more than the highest UCharDirection value. 978 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS). 979 * 980 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 981 */ 982 U_CHAR_DIRECTION_COUNT 983 #endif // U_HIDE_DEPRECATED_API 984 } UCharDirection; 985 986 /** 987 * Bidi Paired Bracket Type constants. 988 * 989 * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE 990 * @stable ICU 52 991 */ 992 typedef enum UBidiPairedBracketType { 993 /* 994 * Note: UBidiPairedBracketType constants are parsed by preparseucd.py. 995 * It matches lines like 996 * U_BPT_<Unicode Bidi_Paired_Bracket_Type value name> 997 */ 998 999 /** Not a paired bracket. @stable ICU 52 */ 1000 U_BPT_NONE, 1001 /** Open paired bracket. @stable ICU 52 */ 1002 U_BPT_OPEN, 1003 /** Close paired bracket. @stable ICU 52 */ 1004 U_BPT_CLOSE, 1005 #ifndef U_HIDE_DEPRECATED_API 1006 /** 1007 * One more than the highest normal UBidiPairedBracketType value. 1008 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_PAIRED_BRACKET_TYPE). 1009 * 1010 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1011 */ 1012 U_BPT_COUNT /* 3 */ 1013 #endif // U_HIDE_DEPRECATED_API 1014 } UBidiPairedBracketType; 1015 1016 /** 1017 * Constants for Unicode blocks, see the Unicode Data file Blocks.txt 1018 * @stable ICU 2.0 1019 */ 1020 enum UBlockCode { 1021 /* 1022 * Note: UBlockCode constants are parsed by preparseucd.py. 1023 * It matches lines like 1024 * UBLOCK_<Unicode Block value name> = <integer>, 1025 */ 1026 1027 /** New No_Block value in Unicode 4. @stable ICU 2.6 */ 1028 UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */ 1029 1030 /** @stable ICU 2.0 */ 1031 UBLOCK_BASIC_LATIN = 1, /*[0000]*/ 1032 1033 /** @stable ICU 2.0 */ 1034 UBLOCK_LATIN_1_SUPPLEMENT=2, /*[0080]*/ 1035 1036 /** @stable ICU 2.0 */ 1037 UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/ 1038 1039 /** @stable ICU 2.0 */ 1040 UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/ 1041 1042 /** @stable ICU 2.0 */ 1043 UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/ 1044 1045 /** @stable ICU 2.0 */ 1046 UBLOCK_SPACING_MODIFIER_LETTERS =6, /*[02B0]*/ 1047 1048 /** @stable ICU 2.0 */ 1049 UBLOCK_COMBINING_DIACRITICAL_MARKS =7, /*[0300]*/ 1050 1051 /** 1052 * Unicode 3.2 renames this block to "Greek and Coptic". 1053 * @stable ICU 2.0 1054 */ 1055 UBLOCK_GREEK =8, /*[0370]*/ 1056 1057 /** @stable ICU 2.0 */ 1058 UBLOCK_CYRILLIC =9, /*[0400]*/ 1059 1060 /** @stable ICU 2.0 */ 1061 UBLOCK_ARMENIAN =10, /*[0530]*/ 1062 1063 /** @stable ICU 2.0 */ 1064 UBLOCK_HEBREW =11, /*[0590]*/ 1065 1066 /** @stable ICU 2.0 */ 1067 UBLOCK_ARABIC =12, /*[0600]*/ 1068 1069 /** @stable ICU 2.0 */ 1070 UBLOCK_SYRIAC =13, /*[0700]*/ 1071 1072 /** @stable ICU 2.0 */ 1073 UBLOCK_THAANA =14, /*[0780]*/ 1074 1075 /** @stable ICU 2.0 */ 1076 UBLOCK_DEVANAGARI =15, /*[0900]*/ 1077 1078 /** @stable ICU 2.0 */ 1079 UBLOCK_BENGALI =16, /*[0980]*/ 1080 1081 /** @stable ICU 2.0 */ 1082 UBLOCK_GURMUKHI =17, /*[0A00]*/ 1083 1084 /** @stable ICU 2.0 */ 1085 UBLOCK_GUJARATI =18, /*[0A80]*/ 1086 1087 /** @stable ICU 2.0 */ 1088 UBLOCK_ORIYA =19, /*[0B00]*/ 1089 1090 /** @stable ICU 2.0 */ 1091 UBLOCK_TAMIL =20, /*[0B80]*/ 1092 1093 /** @stable ICU 2.0 */ 1094 UBLOCK_TELUGU =21, /*[0C00]*/ 1095 1096 /** @stable ICU 2.0 */ 1097 UBLOCK_KANNADA =22, /*[0C80]*/ 1098 1099 /** @stable ICU 2.0 */ 1100 UBLOCK_MALAYALAM =23, /*[0D00]*/ 1101 1102 /** @stable ICU 2.0 */ 1103 UBLOCK_SINHALA =24, /*[0D80]*/ 1104 1105 /** @stable ICU 2.0 */ 1106 UBLOCK_THAI =25, /*[0E00]*/ 1107 1108 /** @stable ICU 2.0 */ 1109 UBLOCK_LAO =26, /*[0E80]*/ 1110 1111 /** @stable ICU 2.0 */ 1112 UBLOCK_TIBETAN =27, /*[0F00]*/ 1113 1114 /** @stable ICU 2.0 */ 1115 UBLOCK_MYANMAR =28, /*[1000]*/ 1116 1117 /** @stable ICU 2.0 */ 1118 UBLOCK_GEORGIAN =29, /*[10A0]*/ 1119 1120 /** @stable ICU 2.0 */ 1121 UBLOCK_HANGUL_JAMO =30, /*[1100]*/ 1122 1123 /** @stable ICU 2.0 */ 1124 UBLOCK_ETHIOPIC =31, /*[1200]*/ 1125 1126 /** @stable ICU 2.0 */ 1127 UBLOCK_CHEROKEE =32, /*[13A0]*/ 1128 1129 /** @stable ICU 2.0 */ 1130 UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =33, /*[1400]*/ 1131 1132 /** @stable ICU 2.0 */ 1133 UBLOCK_OGHAM =34, /*[1680]*/ 1134 1135 /** @stable ICU 2.0 */ 1136 UBLOCK_RUNIC =35, /*[16A0]*/ 1137 1138 /** @stable ICU 2.0 */ 1139 UBLOCK_KHMER =36, /*[1780]*/ 1140 1141 /** @stable ICU 2.0 */ 1142 UBLOCK_MONGOLIAN =37, /*[1800]*/ 1143 1144 /** @stable ICU 2.0 */ 1145 UBLOCK_LATIN_EXTENDED_ADDITIONAL =38, /*[1E00]*/ 1146 1147 /** @stable ICU 2.0 */ 1148 UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/ 1149 1150 /** @stable ICU 2.0 */ 1151 UBLOCK_GENERAL_PUNCTUATION =40, /*[2000]*/ 1152 1153 /** @stable ICU 2.0 */ 1154 UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS =41, /*[2070]*/ 1155 1156 /** @stable ICU 2.0 */ 1157 UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/ 1158 1159 /** 1160 * Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols". 1161 * @stable ICU 2.0 1162 */ 1163 UBLOCK_COMBINING_MARKS_FOR_SYMBOLS =43, /*[20D0]*/ 1164 1165 /** @stable ICU 2.0 */ 1166 UBLOCK_LETTERLIKE_SYMBOLS =44, /*[2100]*/ 1167 1168 /** @stable ICU 2.0 */ 1169 UBLOCK_NUMBER_FORMS =45, /*[2150]*/ 1170 1171 /** @stable ICU 2.0 */ 1172 UBLOCK_ARROWS =46, /*[2190]*/ 1173 1174 /** @stable ICU 2.0 */ 1175 UBLOCK_MATHEMATICAL_OPERATORS =47, /*[2200]*/ 1176 1177 /** @stable ICU 2.0 */ 1178 UBLOCK_MISCELLANEOUS_TECHNICAL =48, /*[2300]*/ 1179 1180 /** @stable ICU 2.0 */ 1181 UBLOCK_CONTROL_PICTURES =49, /*[2400]*/ 1182 1183 /** @stable ICU 2.0 */ 1184 UBLOCK_OPTICAL_CHARACTER_RECOGNITION =50, /*[2440]*/ 1185 1186 /** @stable ICU 2.0 */ 1187 UBLOCK_ENCLOSED_ALPHANUMERICS =51, /*[2460]*/ 1188 1189 /** @stable ICU 2.0 */ 1190 UBLOCK_BOX_DRAWING =52, /*[2500]*/ 1191 1192 /** @stable ICU 2.0 */ 1193 UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/ 1194 1195 /** @stable ICU 2.0 */ 1196 UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/ 1197 1198 /** @stable ICU 2.0 */ 1199 UBLOCK_MISCELLANEOUS_SYMBOLS =55, /*[2600]*/ 1200 1201 /** @stable ICU 2.0 */ 1202 UBLOCK_DINGBATS =56, /*[2700]*/ 1203 1204 /** @stable ICU 2.0 */ 1205 UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/ 1206 1207 /** @stable ICU 2.0 */ 1208 UBLOCK_CJK_RADICALS_SUPPLEMENT =58, /*[2E80]*/ 1209 1210 /** @stable ICU 2.0 */ 1211 UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/ 1212 1213 /** @stable ICU 2.0 */ 1214 UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS =60, /*[2FF0]*/ 1215 1216 /** @stable ICU 2.0 */ 1217 UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION =61, /*[3000]*/ 1218 1219 /** @stable ICU 2.0 */ 1220 UBLOCK_HIRAGANA =62, /*[3040]*/ 1221 1222 /** @stable ICU 2.0 */ 1223 UBLOCK_KATAKANA =63, /*[30A0]*/ 1224 1225 /** @stable ICU 2.0 */ 1226 UBLOCK_BOPOMOFO =64, /*[3100]*/ 1227 1228 /** @stable ICU 2.0 */ 1229 UBLOCK_HANGUL_COMPATIBILITY_JAMO =65, /*[3130]*/ 1230 1231 /** @stable ICU 2.0 */ 1232 UBLOCK_KANBUN =66, /*[3190]*/ 1233 1234 /** @stable ICU 2.0 */ 1235 UBLOCK_BOPOMOFO_EXTENDED =67, /*[31A0]*/ 1236 1237 /** @stable ICU 2.0 */ 1238 UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS =68, /*[3200]*/ 1239 1240 /** @stable ICU 2.0 */ 1241 UBLOCK_CJK_COMPATIBILITY =69, /*[3300]*/ 1242 1243 /** @stable ICU 2.0 */ 1244 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =70, /*[3400]*/ 1245 1246 /** @stable ICU 2.0 */ 1247 UBLOCK_CJK_UNIFIED_IDEOGRAPHS =71, /*[4E00]*/ 1248 1249 /** @stable ICU 2.0 */ 1250 UBLOCK_YI_SYLLABLES =72, /*[A000]*/ 1251 1252 /** @stable ICU 2.0 */ 1253 UBLOCK_YI_RADICALS =73, /*[A490]*/ 1254 1255 /** @stable ICU 2.0 */ 1256 UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/ 1257 1258 /** @stable ICU 2.0 */ 1259 UBLOCK_HIGH_SURROGATES =75, /*[D800]*/ 1260 1261 /** @stable ICU 2.0 */ 1262 UBLOCK_HIGH_PRIVATE_USE_SURROGATES =76, /*[DB80]*/ 1263 1264 /** @stable ICU 2.0 */ 1265 UBLOCK_LOW_SURROGATES =77, /*[DC00]*/ 1266 1267 /** 1268 * Same as UBLOCK_PRIVATE_USE. 1269 * Until Unicode 3.1.1, the corresponding block name was "Private Use", 1270 * and multiple code point ranges had this block. 1271 * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and 1272 * adds separate blocks for the supplementary PUAs. 1273 * 1274 * @stable ICU 2.0 1275 */ 1276 UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/ 1277 /** 1278 * Same as UBLOCK_PRIVATE_USE_AREA. 1279 * Until Unicode 3.1.1, the corresponding block name was "Private Use", 1280 * and multiple code point ranges had this block. 1281 * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and 1282 * adds separate blocks for the supplementary PUAs. 1283 * 1284 * @stable ICU 2.0 1285 */ 1286 UBLOCK_PRIVATE_USE = UBLOCK_PRIVATE_USE_AREA, 1287 1288 /** @stable ICU 2.0 */ 1289 UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS =79, /*[F900]*/ 1290 1291 /** @stable ICU 2.0 */ 1292 UBLOCK_ALPHABETIC_PRESENTATION_FORMS =80, /*[FB00]*/ 1293 1294 /** @stable ICU 2.0 */ 1295 UBLOCK_ARABIC_PRESENTATION_FORMS_A =81, /*[FB50]*/ 1296 1297 /** @stable ICU 2.0 */ 1298 UBLOCK_COMBINING_HALF_MARKS =82, /*[FE20]*/ 1299 1300 /** @stable ICU 2.0 */ 1301 UBLOCK_CJK_COMPATIBILITY_FORMS =83, /*[FE30]*/ 1302 1303 /** @stable ICU 2.0 */ 1304 UBLOCK_SMALL_FORM_VARIANTS =84, /*[FE50]*/ 1305 1306 /** @stable ICU 2.0 */ 1307 UBLOCK_ARABIC_PRESENTATION_FORMS_B =85, /*[FE70]*/ 1308 1309 /** @stable ICU 2.0 */ 1310 UBLOCK_SPECIALS =86, /*[FFF0]*/ 1311 1312 /** @stable ICU 2.0 */ 1313 UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS =87, /*[FF00]*/ 1314 1315 /* New blocks in Unicode 3.1 */ 1316 1317 /** @stable ICU 2.0 */ 1318 UBLOCK_OLD_ITALIC = 88, /*[10300]*/ 1319 /** @stable ICU 2.0 */ 1320 UBLOCK_GOTHIC = 89, /*[10330]*/ 1321 /** @stable ICU 2.0 */ 1322 UBLOCK_DESERET = 90, /*[10400]*/ 1323 /** @stable ICU 2.0 */ 1324 UBLOCK_BYZANTINE_MUSICAL_SYMBOLS = 91, /*[1D000]*/ 1325 /** @stable ICU 2.0 */ 1326 UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/ 1327 /** @stable ICU 2.0 */ 1328 UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93, /*[1D400]*/ 1329 /** @stable ICU 2.0 */ 1330 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94, /*[20000]*/ 1331 /** @stable ICU 2.0 */ 1332 UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95, /*[2F800]*/ 1333 /** @stable ICU 2.0 */ 1334 UBLOCK_TAGS = 96, /*[E0000]*/ 1335 1336 /* New blocks in Unicode 3.2 */ 1337 1338 /** @stable ICU 3.0 */ 1339 UBLOCK_CYRILLIC_SUPPLEMENT = 97, /*[0500]*/ 1340 /** 1341 * Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement". 1342 * @stable ICU 2.2 1343 */ 1344 UBLOCK_CYRILLIC_SUPPLEMENTARY = UBLOCK_CYRILLIC_SUPPLEMENT, 1345 /** @stable ICU 2.2 */ 1346 UBLOCK_TAGALOG = 98, /*[1700]*/ 1347 /** @stable ICU 2.2 */ 1348 UBLOCK_HANUNOO = 99, /*[1720]*/ 1349 /** @stable ICU 2.2 */ 1350 UBLOCK_BUHID = 100, /*[1740]*/ 1351 /** @stable ICU 2.2 */ 1352 UBLOCK_TAGBANWA = 101, /*[1760]*/ 1353 /** @stable ICU 2.2 */ 1354 UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102, /*[27C0]*/ 1355 /** @stable ICU 2.2 */ 1356 UBLOCK_SUPPLEMENTAL_ARROWS_A = 103, /*[27F0]*/ 1357 /** @stable ICU 2.2 */ 1358 UBLOCK_SUPPLEMENTAL_ARROWS_B = 104, /*[2900]*/ 1359 /** @stable ICU 2.2 */ 1360 UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105, /*[2980]*/ 1361 /** @stable ICU 2.2 */ 1362 UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106, /*[2A00]*/ 1363 /** @stable ICU 2.2 */ 1364 UBLOCK_KATAKANA_PHONETIC_EXTENSIONS = 107, /*[31F0]*/ 1365 /** @stable ICU 2.2 */ 1366 UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/ 1367 /** @stable ICU 2.2 */ 1368 UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109, /*[F0000]*/ 1369 /** @stable ICU 2.2 */ 1370 UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110, /*[100000]*/ 1371 1372 /* New blocks in Unicode 4 */ 1373 1374 /** @stable ICU 2.6 */ 1375 UBLOCK_LIMBU = 111, /*[1900]*/ 1376 /** @stable ICU 2.6 */ 1377 UBLOCK_TAI_LE = 112, /*[1950]*/ 1378 /** @stable ICU 2.6 */ 1379 UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/ 1380 /** @stable ICU 2.6 */ 1381 UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/ 1382 /** @stable ICU 2.6 */ 1383 UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115, /*[2B00]*/ 1384 /** @stable ICU 2.6 */ 1385 UBLOCK_YIJING_HEXAGRAM_SYMBOLS = 116, /*[4DC0]*/ 1386 /** @stable ICU 2.6 */ 1387 UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/ 1388 /** @stable ICU 2.6 */ 1389 UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/ 1390 /** @stable ICU 2.6 */ 1391 UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/ 1392 /** @stable ICU 2.6 */ 1393 UBLOCK_UGARITIC = 120, /*[10380]*/ 1394 /** @stable ICU 2.6 */ 1395 UBLOCK_SHAVIAN = 121, /*[10450]*/ 1396 /** @stable ICU 2.6 */ 1397 UBLOCK_OSMANYA = 122, /*[10480]*/ 1398 /** @stable ICU 2.6 */ 1399 UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/ 1400 /** @stable ICU 2.6 */ 1401 UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/ 1402 /** @stable ICU 2.6 */ 1403 UBLOCK_VARIATION_SELECTORS_SUPPLEMENT = 125, /*[E0100]*/ 1404 1405 /* New blocks in Unicode 4.1 */ 1406 1407 /** @stable ICU 3.4 */ 1408 UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION = 126, /*[1D200]*/ 1409 /** @stable ICU 3.4 */ 1410 UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/ 1411 /** @stable ICU 3.4 */ 1412 UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/ 1413 /** @stable ICU 3.4 */ 1414 UBLOCK_BUGINESE = 129, /*[1A00]*/ 1415 /** @stable ICU 3.4 */ 1416 UBLOCK_CJK_STROKES = 130, /*[31C0]*/ 1417 /** @stable ICU 3.4 */ 1418 UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131, /*[1DC0]*/ 1419 /** @stable ICU 3.4 */ 1420 UBLOCK_COPTIC = 132, /*[2C80]*/ 1421 /** @stable ICU 3.4 */ 1422 UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/ 1423 /** @stable ICU 3.4 */ 1424 UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/ 1425 /** @stable ICU 3.4 */ 1426 UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/ 1427 /** @stable ICU 3.4 */ 1428 UBLOCK_GLAGOLITIC = 136, /*[2C00]*/ 1429 /** @stable ICU 3.4 */ 1430 UBLOCK_KHAROSHTHI = 137, /*[10A00]*/ 1431 /** @stable ICU 3.4 */ 1432 UBLOCK_MODIFIER_TONE_LETTERS = 138, /*[A700]*/ 1433 /** @stable ICU 3.4 */ 1434 UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/ 1435 /** @stable ICU 3.4 */ 1436 UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/ 1437 /** @stable ICU 3.4 */ 1438 UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT = 141, /*[1D80]*/ 1439 /** @stable ICU 3.4 */ 1440 UBLOCK_SUPPLEMENTAL_PUNCTUATION = 142, /*[2E00]*/ 1441 /** @stable ICU 3.4 */ 1442 UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/ 1443 /** @stable ICU 3.4 */ 1444 UBLOCK_TIFINAGH = 144, /*[2D30]*/ 1445 /** @stable ICU 3.4 */ 1446 UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/ 1447 1448 /* New blocks in Unicode 5.0 */ 1449 1450 /** @stable ICU 3.6 */ 1451 UBLOCK_NKO = 146, /*[07C0]*/ 1452 /** @stable ICU 3.6 */ 1453 UBLOCK_BALINESE = 147, /*[1B00]*/ 1454 /** @stable ICU 3.6 */ 1455 UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/ 1456 /** @stable ICU 3.6 */ 1457 UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/ 1458 /** @stable ICU 3.6 */ 1459 UBLOCK_PHAGS_PA = 150, /*[A840]*/ 1460 /** @stable ICU 3.6 */ 1461 UBLOCK_PHOENICIAN = 151, /*[10900]*/ 1462 /** @stable ICU 3.6 */ 1463 UBLOCK_CUNEIFORM = 152, /*[12000]*/ 1464 /** @stable ICU 3.6 */ 1465 UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153, /*[12400]*/ 1466 /** @stable ICU 3.6 */ 1467 UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/ 1468 1469 /* New blocks in Unicode 5.1 */ 1470 1471 /** @stable ICU 4.0 */ 1472 UBLOCK_SUNDANESE = 155, /*[1B80]*/ 1473 /** @stable ICU 4.0 */ 1474 UBLOCK_LEPCHA = 156, /*[1C00]*/ 1475 /** @stable ICU 4.0 */ 1476 UBLOCK_OL_CHIKI = 157, /*[1C50]*/ 1477 /** @stable ICU 4.0 */ 1478 UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/ 1479 /** @stable ICU 4.0 */ 1480 UBLOCK_VAI = 159, /*[A500]*/ 1481 /** @stable ICU 4.0 */ 1482 UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/ 1483 /** @stable ICU 4.0 */ 1484 UBLOCK_SAURASHTRA = 161, /*[A880]*/ 1485 /** @stable ICU 4.0 */ 1486 UBLOCK_KAYAH_LI = 162, /*[A900]*/ 1487 /** @stable ICU 4.0 */ 1488 UBLOCK_REJANG = 163, /*[A930]*/ 1489 /** @stable ICU 4.0 */ 1490 UBLOCK_CHAM = 164, /*[AA00]*/ 1491 /** @stable ICU 4.0 */ 1492 UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/ 1493 /** @stable ICU 4.0 */ 1494 UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/ 1495 /** @stable ICU 4.0 */ 1496 UBLOCK_LYCIAN = 167, /*[10280]*/ 1497 /** @stable ICU 4.0 */ 1498 UBLOCK_CARIAN = 168, /*[102A0]*/ 1499 /** @stable ICU 4.0 */ 1500 UBLOCK_LYDIAN = 169, /*[10920]*/ 1501 /** @stable ICU 4.0 */ 1502 UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/ 1503 /** @stable ICU 4.0 */ 1504 UBLOCK_DOMINO_TILES = 171, /*[1F030]*/ 1505 1506 /* New blocks in Unicode 5.2 */ 1507 1508 /** @stable ICU 4.4 */ 1509 UBLOCK_SAMARITAN = 172, /*[0800]*/ 1510 /** @stable ICU 4.4 */ 1511 UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/ 1512 /** @stable ICU 4.4 */ 1513 UBLOCK_TAI_THAM = 174, /*[1A20]*/ 1514 /** @stable ICU 4.4 */ 1515 UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/ 1516 /** @stable ICU 4.4 */ 1517 UBLOCK_LISU = 176, /*[A4D0]*/ 1518 /** @stable ICU 4.4 */ 1519 UBLOCK_BAMUM = 177, /*[A6A0]*/ 1520 /** @stable ICU 4.4 */ 1521 UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/ 1522 /** @stable ICU 4.4 */ 1523 UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/ 1524 /** @stable ICU 4.4 */ 1525 UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/ 1526 /** @stable ICU 4.4 */ 1527 UBLOCK_JAVANESE = 181, /*[A980]*/ 1528 /** @stable ICU 4.4 */ 1529 UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/ 1530 /** @stable ICU 4.4 */ 1531 UBLOCK_TAI_VIET = 183, /*[AA80]*/ 1532 /** @stable ICU 4.4 */ 1533 UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/ 1534 /** @stable ICU 4.4 */ 1535 UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/ 1536 /** @stable ICU 4.4 */ 1537 UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/ 1538 /** @stable ICU 4.4 */ 1539 UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/ 1540 /** @stable ICU 4.4 */ 1541 UBLOCK_AVESTAN = 188, /*[10B00]*/ 1542 /** @stable ICU 4.4 */ 1543 UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/ 1544 /** @stable ICU 4.4 */ 1545 UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/ 1546 /** @stable ICU 4.4 */ 1547 UBLOCK_OLD_TURKIC = 191, /*[10C00]*/ 1548 /** @stable ICU 4.4 */ 1549 UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/ 1550 /** @stable ICU 4.4 */ 1551 UBLOCK_KAITHI = 193, /*[11080]*/ 1552 /** @stable ICU 4.4 */ 1553 UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/ 1554 /** @stable ICU 4.4 */ 1555 UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/ 1556 /** @stable ICU 4.4 */ 1557 UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/ 1558 /** @stable ICU 4.4 */ 1559 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/ 1560 1561 /* New blocks in Unicode 6.0 */ 1562 1563 /** @stable ICU 4.6 */ 1564 UBLOCK_MANDAIC = 198, /*[0840]*/ 1565 /** @stable ICU 4.6 */ 1566 UBLOCK_BATAK = 199, /*[1BC0]*/ 1567 /** @stable ICU 4.6 */ 1568 UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/ 1569 /** @stable ICU 4.6 */ 1570 UBLOCK_BRAHMI = 201, /*[11000]*/ 1571 /** @stable ICU 4.6 */ 1572 UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/ 1573 /** @stable ICU 4.6 */ 1574 UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/ 1575 /** @stable ICU 4.6 */ 1576 UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/ 1577 /** @stable ICU 4.6 */ 1578 UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205, /*[1F300]*/ 1579 /** @stable ICU 4.6 */ 1580 UBLOCK_EMOTICONS = 206, /*[1F600]*/ 1581 /** @stable ICU 4.6 */ 1582 UBLOCK_TRANSPORT_AND_MAP_SYMBOLS = 207, /*[1F680]*/ 1583 /** @stable ICU 4.6 */ 1584 UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/ 1585 /** @stable ICU 4.6 */ 1586 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209, /*[2B740]*/ 1587 1588 /* New blocks in Unicode 6.1 */ 1589 1590 /** @stable ICU 49 */ 1591 UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/ 1592 /** @stable ICU 49 */ 1593 UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211, /*[1EE00]*/ 1594 /** @stable ICU 49 */ 1595 UBLOCK_CHAKMA = 212, /*[11100]*/ 1596 /** @stable ICU 49 */ 1597 UBLOCK_MEETEI_MAYEK_EXTENSIONS = 213, /*[AAE0]*/ 1598 /** @stable ICU 49 */ 1599 UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/ 1600 /** @stable ICU 49 */ 1601 UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/ 1602 /** @stable ICU 49 */ 1603 UBLOCK_MIAO = 216, /*[16F00]*/ 1604 /** @stable ICU 49 */ 1605 UBLOCK_SHARADA = 217, /*[11180]*/ 1606 /** @stable ICU 49 */ 1607 UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/ 1608 /** @stable ICU 49 */ 1609 UBLOCK_SUNDANESE_SUPPLEMENT = 219, /*[1CC0]*/ 1610 /** @stable ICU 49 */ 1611 UBLOCK_TAKRI = 220, /*[11680]*/ 1612 1613 /* New blocks in Unicode 7.0 */ 1614 1615 /** @stable ICU 54 */ 1616 UBLOCK_BASSA_VAH = 221, /*[16AD0]*/ 1617 /** @stable ICU 54 */ 1618 UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/ 1619 /** @stable ICU 54 */ 1620 UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/ 1621 /** @stable ICU 54 */ 1622 UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/ 1623 /** @stable ICU 54 */ 1624 UBLOCK_DUPLOYAN = 225, /*[1BC00]*/ 1625 /** @stable ICU 54 */ 1626 UBLOCK_ELBASAN = 226, /*[10500]*/ 1627 /** @stable ICU 54 */ 1628 UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/ 1629 /** @stable ICU 54 */ 1630 UBLOCK_GRANTHA = 228, /*[11300]*/ 1631 /** @stable ICU 54 */ 1632 UBLOCK_KHOJKI = 229, /*[11200]*/ 1633 /** @stable ICU 54 */ 1634 UBLOCK_KHUDAWADI = 230, /*[112B0]*/ 1635 /** @stable ICU 54 */ 1636 UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/ 1637 /** @stable ICU 54 */ 1638 UBLOCK_LINEAR_A = 232, /*[10600]*/ 1639 /** @stable ICU 54 */ 1640 UBLOCK_MAHAJANI = 233, /*[11150]*/ 1641 /** @stable ICU 54 */ 1642 UBLOCK_MANICHAEAN = 234, /*[10AC0]*/ 1643 /** @stable ICU 54 */ 1644 UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/ 1645 /** @stable ICU 54 */ 1646 UBLOCK_MODI = 236, /*[11600]*/ 1647 /** @stable ICU 54 */ 1648 UBLOCK_MRO = 237, /*[16A40]*/ 1649 /** @stable ICU 54 */ 1650 UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/ 1651 /** @stable ICU 54 */ 1652 UBLOCK_NABATAEAN = 239, /*[10880]*/ 1653 /** @stable ICU 54 */ 1654 UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/ 1655 /** @stable ICU 54 */ 1656 UBLOCK_OLD_PERMIC = 241, /*[10350]*/ 1657 /** @stable ICU 54 */ 1658 UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/ 1659 /** @stable ICU 54 */ 1660 UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/ 1661 /** @stable ICU 54 */ 1662 UBLOCK_PALMYRENE = 244, /*[10860]*/ 1663 /** @stable ICU 54 */ 1664 UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/ 1665 /** @stable ICU 54 */ 1666 UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/ 1667 /** @stable ICU 54 */ 1668 UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/ 1669 /** @stable ICU 54 */ 1670 UBLOCK_SIDDHAM = 248, /*[11580]*/ 1671 /** @stable ICU 54 */ 1672 UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/ 1673 /** @stable ICU 54 */ 1674 UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/ 1675 /** @stable ICU 54 */ 1676 UBLOCK_TIRHUTA = 251, /*[11480]*/ 1677 /** @stable ICU 54 */ 1678 UBLOCK_WARANG_CITI = 252, /*[118A0]*/ 1679 1680 /* New blocks in Unicode 8.0 */ 1681 1682 /** @stable ICU 56 */ 1683 UBLOCK_AHOM = 253, /*[11700]*/ 1684 /** @stable ICU 56 */ 1685 UBLOCK_ANATOLIAN_HIEROGLYPHS = 254, /*[14400]*/ 1686 /** @stable ICU 56 */ 1687 UBLOCK_CHEROKEE_SUPPLEMENT = 255, /*[AB70]*/ 1688 /** @stable ICU 56 */ 1689 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E = 256, /*[2B820]*/ 1690 /** @stable ICU 56 */ 1691 UBLOCK_EARLY_DYNASTIC_CUNEIFORM = 257, /*[12480]*/ 1692 /** @stable ICU 56 */ 1693 UBLOCK_HATRAN = 258, /*[108E0]*/ 1694 /** @stable ICU 56 */ 1695 UBLOCK_MULTANI = 259, /*[11280]*/ 1696 /** @stable ICU 56 */ 1697 UBLOCK_OLD_HUNGARIAN = 260, /*[10C80]*/ 1698 /** @stable ICU 56 */ 1699 UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS = 261, /*[1F900]*/ 1700 /** @stable ICU 56 */ 1701 UBLOCK_SUTTON_SIGNWRITING = 262, /*[1D800]*/ 1702 1703 /* New blocks in Unicode 9.0 */ 1704 1705 /** @stable ICU 58 */ 1706 UBLOCK_ADLAM = 263, /*[1E900]*/ 1707 /** @stable ICU 58 */ 1708 UBLOCK_BHAIKSUKI = 264, /*[11C00]*/ 1709 /** @stable ICU 58 */ 1710 UBLOCK_CYRILLIC_EXTENDED_C = 265, /*[1C80]*/ 1711 /** @stable ICU 58 */ 1712 UBLOCK_GLAGOLITIC_SUPPLEMENT = 266, /*[1E000]*/ 1713 /** @stable ICU 58 */ 1714 UBLOCK_IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION = 267, /*[16FE0]*/ 1715 /** @stable ICU 58 */ 1716 UBLOCK_MARCHEN = 268, /*[11C70]*/ 1717 /** @stable ICU 58 */ 1718 UBLOCK_MONGOLIAN_SUPPLEMENT = 269, /*[11660]*/ 1719 /** @stable ICU 58 */ 1720 UBLOCK_NEWA = 270, /*[11400]*/ 1721 /** @stable ICU 58 */ 1722 UBLOCK_OSAGE = 271, /*[104B0]*/ 1723 /** @stable ICU 58 */ 1724 UBLOCK_TANGUT = 272, /*[17000]*/ 1725 /** @stable ICU 58 */ 1726 UBLOCK_TANGUT_COMPONENTS = 273, /*[18800]*/ 1727 1728 // New blocks in Unicode 10.0 1729 1730 /** @stable ICU 60 */ 1731 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F = 274, /*[2CEB0]*/ 1732 /** @stable ICU 60 */ 1733 UBLOCK_KANA_EXTENDED_A = 275, /*[1B100]*/ 1734 /** @stable ICU 60 */ 1735 UBLOCK_MASARAM_GONDI = 276, /*[11D00]*/ 1736 /** @stable ICU 60 */ 1737 UBLOCK_NUSHU = 277, /*[1B170]*/ 1738 /** @stable ICU 60 */ 1739 UBLOCK_SOYOMBO = 278, /*[11A50]*/ 1740 /** @stable ICU 60 */ 1741 UBLOCK_SYRIAC_SUPPLEMENT = 279, /*[0860]*/ 1742 /** @stable ICU 60 */ 1743 UBLOCK_ZANABAZAR_SQUARE = 280, /*[11A00]*/ 1744 1745 // New blocks in Unicode 11.0 1746 1747 /** @stable ICU 62 */ 1748 UBLOCK_CHESS_SYMBOLS = 281, /*[1FA00]*/ 1749 /** @stable ICU 62 */ 1750 UBLOCK_DOGRA = 282, /*[11800]*/ 1751 /** @stable ICU 62 */ 1752 UBLOCK_GEORGIAN_EXTENDED = 283, /*[1C90]*/ 1753 /** @stable ICU 62 */ 1754 UBLOCK_GUNJALA_GONDI = 284, /*[11D60]*/ 1755 /** @stable ICU 62 */ 1756 UBLOCK_HANIFI_ROHINGYA = 285, /*[10D00]*/ 1757 /** @stable ICU 62 */ 1758 UBLOCK_INDIC_SIYAQ_NUMBERS = 286, /*[1EC70]*/ 1759 /** @stable ICU 62 */ 1760 UBLOCK_MAKASAR = 287, /*[11EE0]*/ 1761 /** @stable ICU 62 */ 1762 UBLOCK_MAYAN_NUMERALS = 288, /*[1D2E0]*/ 1763 /** @stable ICU 62 */ 1764 UBLOCK_MEDEFAIDRIN = 289, /*[16E40]*/ 1765 /** @stable ICU 62 */ 1766 UBLOCK_OLD_SOGDIAN = 290, /*[10F00]*/ 1767 /** @stable ICU 62 */ 1768 UBLOCK_SOGDIAN = 291, /*[10F30]*/ 1769 1770 // New blocks in Unicode 12.0 1771 1772 /** @stable ICU 64 */ 1773 UBLOCK_EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS = 292, /*[13430]*/ 1774 /** @stable ICU 64 */ 1775 UBLOCK_ELYMAIC = 293, /*[10FE0]*/ 1776 /** @stable ICU 64 */ 1777 UBLOCK_NANDINAGARI = 294, /*[119A0]*/ 1778 /** @stable ICU 64 */ 1779 UBLOCK_NYIAKENG_PUACHUE_HMONG = 295, /*[1E100]*/ 1780 /** @stable ICU 64 */ 1781 UBLOCK_OTTOMAN_SIYAQ_NUMBERS = 296, /*[1ED00]*/ 1782 /** @stable ICU 64 */ 1783 UBLOCK_SMALL_KANA_EXTENSION = 297, /*[1B130]*/ 1784 /** @stable ICU 64 */ 1785 UBLOCK_SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A = 298, /*[1FA70]*/ 1786 /** @stable ICU 64 */ 1787 UBLOCK_TAMIL_SUPPLEMENT = 299, /*[11FC0]*/ 1788 /** @stable ICU 64 */ 1789 UBLOCK_WANCHO = 300, /*[1E2C0]*/ 1790 1791 // New blocks in Unicode 13.0 1792 1793 /** @stable ICU 66 */ 1794 UBLOCK_CHORASMIAN = 301, /*[10FB0]*/ 1795 /** @stable ICU 66 */ 1796 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G = 302, /*[30000]*/ 1797 /** @stable ICU 66 */ 1798 UBLOCK_DIVES_AKURU = 303, /*[11900]*/ 1799 /** @stable ICU 66 */ 1800 UBLOCK_KHITAN_SMALL_SCRIPT = 304, /*[18B00]*/ 1801 /** @stable ICU 66 */ 1802 UBLOCK_LISU_SUPPLEMENT = 305, /*[11FB0]*/ 1803 /** @stable ICU 66 */ 1804 UBLOCK_SYMBOLS_FOR_LEGACY_COMPUTING = 306, /*[1FB00]*/ 1805 /** @stable ICU 66 */ 1806 UBLOCK_TANGUT_SUPPLEMENT = 307, /*[18D00]*/ 1807 /** @stable ICU 66 */ 1808 UBLOCK_YEZIDI = 308, /*[10E80]*/ 1809 1810 #ifndef U_HIDE_DEPRECATED_API 1811 /** 1812 * One more than the highest normal UBlockCode value. 1813 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_BLOCK). 1814 * 1815 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1816 */ 1817 UBLOCK_COUNT = 309, 1818 #endif // U_HIDE_DEPRECATED_API 1819 1820 /** @stable ICU 2.0 */ 1821 UBLOCK_INVALID_CODE=-1 1822 }; 1823 1824 /** @stable ICU 2.0 */ 1825 typedef enum UBlockCode UBlockCode; 1826 1827 /** 1828 * East Asian Width constants. 1829 * 1830 * @see UCHAR_EAST_ASIAN_WIDTH 1831 * @see u_getIntPropertyValue 1832 * @stable ICU 2.2 1833 */ 1834 typedef enum UEastAsianWidth { 1835 /* 1836 * Note: UEastAsianWidth constants are parsed by preparseucd.py. 1837 * It matches lines like 1838 * U_EA_<Unicode East_Asian_Width value name> 1839 */ 1840 1841 U_EA_NEUTRAL, /*[N]*/ 1842 U_EA_AMBIGUOUS, /*[A]*/ 1843 U_EA_HALFWIDTH, /*[H]*/ 1844 U_EA_FULLWIDTH, /*[F]*/ 1845 U_EA_NARROW, /*[Na]*/ 1846 U_EA_WIDE, /*[W]*/ 1847 #ifndef U_HIDE_DEPRECATED_API 1848 /** 1849 * One more than the highest normal UEastAsianWidth value. 1850 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH). 1851 * 1852 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1853 */ 1854 U_EA_COUNT 1855 #endif // U_HIDE_DEPRECATED_API 1856 } UEastAsianWidth; 1857 1858 /** 1859 * Selector constants for u_charName(). 1860 * u_charName() returns the "modern" name of a 1861 * Unicode character; or the name that was defined in 1862 * Unicode version 1.0, before the Unicode standard merged 1863 * with ISO-10646; or an "extended" name that gives each 1864 * Unicode code point a unique name. 1865 * 1866 * @see u_charName 1867 * @stable ICU 2.0 1868 */ 1869 typedef enum UCharNameChoice { 1870 /** Unicode character name (Name property). @stable ICU 2.0 */ 1871 U_UNICODE_CHAR_NAME, 1872 #ifndef U_HIDE_DEPRECATED_API 1873 /** 1874 * The Unicode_1_Name property value which is of little practical value. 1875 * Beginning with ICU 49, ICU APIs return an empty string for this name choice. 1876 * @deprecated ICU 49 1877 */ 1878 U_UNICODE_10_CHAR_NAME, 1879 #endif /* U_HIDE_DEPRECATED_API */ 1880 /** Standard or synthetic character name. @stable ICU 2.0 */ 1881 U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2, 1882 /** Corrected name from NameAliases.txt. @stable ICU 4.4 */ 1883 U_CHAR_NAME_ALIAS, 1884 #ifndef U_HIDE_DEPRECATED_API 1885 /** 1886 * One more than the highest normal UCharNameChoice value. 1887 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1888 */ 1889 U_CHAR_NAME_CHOICE_COUNT 1890 #endif // U_HIDE_DEPRECATED_API 1891 } UCharNameChoice; 1892 1893 /** 1894 * Selector constants for u_getPropertyName() and 1895 * u_getPropertyValueName(). These selectors are used to choose which 1896 * name is returned for a given property or value. All properties and 1897 * values have a long name. Most have a short name, but some do not. 1898 * Unicode allows for additional names, beyond the long and short 1899 * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where 1900 * i=1, 2,... 1901 * 1902 * @see u_getPropertyName() 1903 * @see u_getPropertyValueName() 1904 * @stable ICU 2.4 1905 */ 1906 typedef enum UPropertyNameChoice { 1907 U_SHORT_PROPERTY_NAME, 1908 U_LONG_PROPERTY_NAME, 1909 #ifndef U_HIDE_DEPRECATED_API 1910 /** 1911 * One more than the highest normal UPropertyNameChoice value. 1912 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1913 */ 1914 U_PROPERTY_NAME_CHOICE_COUNT 1915 #endif // U_HIDE_DEPRECATED_API 1916 } UPropertyNameChoice; 1917 1918 /** 1919 * Decomposition Type constants. 1920 * 1921 * @see UCHAR_DECOMPOSITION_TYPE 1922 * @stable ICU 2.2 1923 */ 1924 typedef enum UDecompositionType { 1925 /* 1926 * Note: UDecompositionType constants are parsed by preparseucd.py. 1927 * It matches lines like 1928 * U_DT_<Unicode Decomposition_Type value name> 1929 */ 1930 1931 U_DT_NONE, /*[none]*/ 1932 U_DT_CANONICAL, /*[can]*/ 1933 U_DT_COMPAT, /*[com]*/ 1934 U_DT_CIRCLE, /*[enc]*/ 1935 U_DT_FINAL, /*[fin]*/ 1936 U_DT_FONT, /*[font]*/ 1937 U_DT_FRACTION, /*[fra]*/ 1938 U_DT_INITIAL, /*[init]*/ 1939 U_DT_ISOLATED, /*[iso]*/ 1940 U_DT_MEDIAL, /*[med]*/ 1941 U_DT_NARROW, /*[nar]*/ 1942 U_DT_NOBREAK, /*[nb]*/ 1943 U_DT_SMALL, /*[sml]*/ 1944 U_DT_SQUARE, /*[sqr]*/ 1945 U_DT_SUB, /*[sub]*/ 1946 U_DT_SUPER, /*[sup]*/ 1947 U_DT_VERTICAL, /*[vert]*/ 1948 U_DT_WIDE, /*[wide]*/ 1949 #ifndef U_HIDE_DEPRECATED_API 1950 /** 1951 * One more than the highest normal UDecompositionType value. 1952 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_DECOMPOSITION_TYPE). 1953 * 1954 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1955 */ 1956 U_DT_COUNT /* 18 */ 1957 #endif // U_HIDE_DEPRECATED_API 1958 } UDecompositionType; 1959 1960 /** 1961 * Joining Type constants. 1962 * 1963 * @see UCHAR_JOINING_TYPE 1964 * @stable ICU 2.2 1965 */ 1966 typedef enum UJoiningType { 1967 /* 1968 * Note: UJoiningType constants are parsed by preparseucd.py. 1969 * It matches lines like 1970 * U_JT_<Unicode Joining_Type value name> 1971 */ 1972 1973 U_JT_NON_JOINING, /*[U]*/ 1974 U_JT_JOIN_CAUSING, /*[C]*/ 1975 U_JT_DUAL_JOINING, /*[D]*/ 1976 U_JT_LEFT_JOINING, /*[L]*/ 1977 U_JT_RIGHT_JOINING, /*[R]*/ 1978 U_JT_TRANSPARENT, /*[T]*/ 1979 #ifndef U_HIDE_DEPRECATED_API 1980 /** 1981 * One more than the highest normal UJoiningType value. 1982 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_TYPE). 1983 * 1984 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 1985 */ 1986 U_JT_COUNT /* 6 */ 1987 #endif // U_HIDE_DEPRECATED_API 1988 } UJoiningType; 1989 1990 /** 1991 * Joining Group constants. 1992 * 1993 * @see UCHAR_JOINING_GROUP 1994 * @stable ICU 2.2 1995 */ 1996 typedef enum UJoiningGroup { 1997 /* 1998 * Note: UJoiningGroup constants are parsed by preparseucd.py. 1999 * It matches lines like 2000 * U_JG_<Unicode Joining_Group value name> 2001 */ 2002 2003 U_JG_NO_JOINING_GROUP, 2004 U_JG_AIN, 2005 U_JG_ALAPH, 2006 U_JG_ALEF, 2007 U_JG_BEH, 2008 U_JG_BETH, 2009 U_JG_DAL, 2010 U_JG_DALATH_RISH, 2011 U_JG_E, 2012 U_JG_FEH, 2013 U_JG_FINAL_SEMKATH, 2014 U_JG_GAF, 2015 U_JG_GAMAL, 2016 U_JG_HAH, 2017 U_JG_TEH_MARBUTA_GOAL, /**< @stable ICU 4.6 */ 2018 U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL, 2019 U_JG_HE, 2020 U_JG_HEH, 2021 U_JG_HEH_GOAL, 2022 U_JG_HETH, 2023 U_JG_KAF, 2024 U_JG_KAPH, 2025 U_JG_KNOTTED_HEH, 2026 U_JG_LAM, 2027 U_JG_LAMADH, 2028 U_JG_MEEM, 2029 U_JG_MIM, 2030 U_JG_NOON, 2031 U_JG_NUN, 2032 U_JG_PE, 2033 U_JG_QAF, 2034 U_JG_QAPH, 2035 U_JG_REH, 2036 U_JG_REVERSED_PE, 2037 U_JG_SAD, 2038 U_JG_SADHE, 2039 U_JG_SEEN, 2040 U_JG_SEMKATH, 2041 U_JG_SHIN, 2042 U_JG_SWASH_KAF, 2043 U_JG_SYRIAC_WAW, 2044 U_JG_TAH, 2045 U_JG_TAW, 2046 U_JG_TEH_MARBUTA, 2047 U_JG_TETH, 2048 U_JG_WAW, 2049 U_JG_YEH, 2050 U_JG_YEH_BARREE, 2051 U_JG_YEH_WITH_TAIL, 2052 U_JG_YUDH, 2053 U_JG_YUDH_HE, 2054 U_JG_ZAIN, 2055 U_JG_FE, /**< @stable ICU 2.6 */ 2056 U_JG_KHAPH, /**< @stable ICU 2.6 */ 2057 U_JG_ZHAIN, /**< @stable ICU 2.6 */ 2058 U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */ 2059 U_JG_FARSI_YEH, /**< @stable ICU 4.4 */ 2060 U_JG_NYA, /**< @stable ICU 4.4 */ 2061 U_JG_ROHINGYA_YEH, /**< @stable ICU 49 */ 2062 U_JG_MANICHAEAN_ALEPH, /**< @stable ICU 54 */ 2063 U_JG_MANICHAEAN_AYIN, /**< @stable ICU 54 */ 2064 U_JG_MANICHAEAN_BETH, /**< @stable ICU 54 */ 2065 U_JG_MANICHAEAN_DALETH, /**< @stable ICU 54 */ 2066 U_JG_MANICHAEAN_DHAMEDH, /**< @stable ICU 54 */ 2067 U_JG_MANICHAEAN_FIVE, /**< @stable ICU 54 */ 2068 U_JG_MANICHAEAN_GIMEL, /**< @stable ICU 54 */ 2069 U_JG_MANICHAEAN_HETH, /**< @stable ICU 54 */ 2070 U_JG_MANICHAEAN_HUNDRED, /**< @stable ICU 54 */ 2071 U_JG_MANICHAEAN_KAPH, /**< @stable ICU 54 */ 2072 U_JG_MANICHAEAN_LAMEDH, /**< @stable ICU 54 */ 2073 U_JG_MANICHAEAN_MEM, /**< @stable ICU 54 */ 2074 U_JG_MANICHAEAN_NUN, /**< @stable ICU 54 */ 2075 U_JG_MANICHAEAN_ONE, /**< @stable ICU 54 */ 2076 U_JG_MANICHAEAN_PE, /**< @stable ICU 54 */ 2077 U_JG_MANICHAEAN_QOPH, /**< @stable ICU 54 */ 2078 U_JG_MANICHAEAN_RESH, /**< @stable ICU 54 */ 2079 U_JG_MANICHAEAN_SADHE, /**< @stable ICU 54 */ 2080 U_JG_MANICHAEAN_SAMEKH, /**< @stable ICU 54 */ 2081 U_JG_MANICHAEAN_TAW, /**< @stable ICU 54 */ 2082 U_JG_MANICHAEAN_TEN, /**< @stable ICU 54 */ 2083 U_JG_MANICHAEAN_TETH, /**< @stable ICU 54 */ 2084 U_JG_MANICHAEAN_THAMEDH, /**< @stable ICU 54 */ 2085 U_JG_MANICHAEAN_TWENTY, /**< @stable ICU 54 */ 2086 U_JG_MANICHAEAN_WAW, /**< @stable ICU 54 */ 2087 U_JG_MANICHAEAN_YODH, /**< @stable ICU 54 */ 2088 U_JG_MANICHAEAN_ZAYIN, /**< @stable ICU 54 */ 2089 U_JG_STRAIGHT_WAW, /**< @stable ICU 54 */ 2090 U_JG_AFRICAN_FEH, /**< @stable ICU 58 */ 2091 U_JG_AFRICAN_NOON, /**< @stable ICU 58 */ 2092 U_JG_AFRICAN_QAF, /**< @stable ICU 58 */ 2093 2094 U_JG_MALAYALAM_BHA, /**< @stable ICU 60 */ 2095 U_JG_MALAYALAM_JA, /**< @stable ICU 60 */ 2096 U_JG_MALAYALAM_LLA, /**< @stable ICU 60 */ 2097 U_JG_MALAYALAM_LLLA, /**< @stable ICU 60 */ 2098 U_JG_MALAYALAM_NGA, /**< @stable ICU 60 */ 2099 U_JG_MALAYALAM_NNA, /**< @stable ICU 60 */ 2100 U_JG_MALAYALAM_NNNA, /**< @stable ICU 60 */ 2101 U_JG_MALAYALAM_NYA, /**< @stable ICU 60 */ 2102 U_JG_MALAYALAM_RA, /**< @stable ICU 60 */ 2103 U_JG_MALAYALAM_SSA, /**< @stable ICU 60 */ 2104 U_JG_MALAYALAM_TTA, /**< @stable ICU 60 */ 2105 2106 U_JG_HANIFI_ROHINGYA_KINNA_YA, /**< @stable ICU 62 */ 2107 U_JG_HANIFI_ROHINGYA_PA, /**< @stable ICU 62 */ 2108 2109 #ifndef U_HIDE_DEPRECATED_API 2110 /** 2111 * One more than the highest normal UJoiningGroup value. 2112 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_GROUP). 2113 * 2114 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2115 */ 2116 U_JG_COUNT 2117 #endif // U_HIDE_DEPRECATED_API 2118 } UJoiningGroup; 2119 2120 /** 2121 * Grapheme Cluster Break constants. 2122 * 2123 * @see UCHAR_GRAPHEME_CLUSTER_BREAK 2124 * @stable ICU 3.4 2125 */ 2126 typedef enum UGraphemeClusterBreak { 2127 /* 2128 * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py. 2129 * It matches lines like 2130 * U_GCB_<Unicode Grapheme_Cluster_Break value name> 2131 */ 2132 2133 U_GCB_OTHER = 0, /*[XX]*/ 2134 U_GCB_CONTROL = 1, /*[CN]*/ 2135 U_GCB_CR = 2, /*[CR]*/ 2136 U_GCB_EXTEND = 3, /*[EX]*/ 2137 U_GCB_L = 4, /*[L]*/ 2138 U_GCB_LF = 5, /*[LF]*/ 2139 U_GCB_LV = 6, /*[LV]*/ 2140 U_GCB_LVT = 7, /*[LVT]*/ 2141 U_GCB_T = 8, /*[T]*/ 2142 U_GCB_V = 9, /*[V]*/ 2143 /** @stable ICU 4.0 */ 2144 U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ 2145 /** @stable ICU 4.0 */ 2146 U_GCB_PREPEND = 11, /*[PP]*/ 2147 /** @stable ICU 50 */ 2148 U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */ 2149 /** @stable ICU 58 */ 2150 U_GCB_E_BASE = 13, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */ 2151 /** @stable ICU 58 */ 2152 U_GCB_E_BASE_GAZ = 14, /*[EBG]*/ 2153 /** @stable ICU 58 */ 2154 U_GCB_E_MODIFIER = 15, /*[EM]*/ 2155 /** @stable ICU 58 */ 2156 U_GCB_GLUE_AFTER_ZWJ = 16, /*[GAZ]*/ 2157 /** @stable ICU 58 */ 2158 U_GCB_ZWJ = 17, /*[ZWJ]*/ 2159 2160 #ifndef U_HIDE_DEPRECATED_API 2161 /** 2162 * One more than the highest normal UGraphemeClusterBreak value. 2163 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_GRAPHEME_CLUSTER_BREAK). 2164 * 2165 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2166 */ 2167 U_GCB_COUNT = 18 2168 #endif // U_HIDE_DEPRECATED_API 2169 } UGraphemeClusterBreak; 2170 2171 /** 2172 * Word Break constants. 2173 * (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.) 2174 * 2175 * @see UCHAR_WORD_BREAK 2176 * @stable ICU 3.4 2177 */ 2178 typedef enum UWordBreakValues { 2179 /* 2180 * Note: UWordBreakValues constants are parsed by preparseucd.py. 2181 * It matches lines like 2182 * U_WB_<Unicode Word_Break value name> 2183 */ 2184 2185 U_WB_OTHER = 0, /*[XX]*/ 2186 U_WB_ALETTER = 1, /*[LE]*/ 2187 U_WB_FORMAT = 2, /*[FO]*/ 2188 U_WB_KATAKANA = 3, /*[KA]*/ 2189 U_WB_MIDLETTER = 4, /*[ML]*/ 2190 U_WB_MIDNUM = 5, /*[MN]*/ 2191 U_WB_NUMERIC = 6, /*[NU]*/ 2192 U_WB_EXTENDNUMLET = 7, /*[EX]*/ 2193 /** @stable ICU 4.0 */ 2194 U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ 2195 /** @stable ICU 4.0 */ 2196 U_WB_EXTEND = 9, /*[Extend]*/ 2197 /** @stable ICU 4.0 */ 2198 U_WB_LF = 10, /*[LF]*/ 2199 /** @stable ICU 4.0 */ 2200 U_WB_MIDNUMLET =11, /*[MB]*/ 2201 /** @stable ICU 4.0 */ 2202 U_WB_NEWLINE =12, /*[NL]*/ 2203 /** @stable ICU 50 */ 2204 U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */ 2205 /** @stable ICU 52 */ 2206 U_WB_HEBREW_LETTER = 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */ 2207 /** @stable ICU 52 */ 2208 U_WB_SINGLE_QUOTE = 15, /*[SQ]*/ 2209 /** @stable ICU 52 */ 2210 U_WB_DOUBLE_QUOTE = 16, /*[DQ]*/ 2211 /** @stable ICU 58 */ 2212 U_WB_E_BASE = 17, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */ 2213 /** @stable ICU 58 */ 2214 U_WB_E_BASE_GAZ = 18, /*[EBG]*/ 2215 /** @stable ICU 58 */ 2216 U_WB_E_MODIFIER = 19, /*[EM]*/ 2217 /** @stable ICU 58 */ 2218 U_WB_GLUE_AFTER_ZWJ = 20, /*[GAZ]*/ 2219 /** @stable ICU 58 */ 2220 U_WB_ZWJ = 21, /*[ZWJ]*/ 2221 /** @stable ICU 62 */ 2222 U_WB_WSEGSPACE = 22, /*[WSEGSPACE]*/ 2223 2224 #ifndef U_HIDE_DEPRECATED_API 2225 /** 2226 * One more than the highest normal UWordBreakValues value. 2227 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_WORD_BREAK). 2228 * 2229 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2230 */ 2231 U_WB_COUNT = 23 2232 #endif // U_HIDE_DEPRECATED_API 2233 } UWordBreakValues; 2234 2235 /** 2236 * Sentence Break constants. 2237 * 2238 * @see UCHAR_SENTENCE_BREAK 2239 * @stable ICU 3.4 2240 */ 2241 typedef enum USentenceBreak { 2242 /* 2243 * Note: USentenceBreak constants are parsed by preparseucd.py. 2244 * It matches lines like 2245 * U_SB_<Unicode Sentence_Break value name> 2246 */ 2247 2248 U_SB_OTHER = 0, /*[XX]*/ 2249 U_SB_ATERM = 1, /*[AT]*/ 2250 U_SB_CLOSE = 2, /*[CL]*/ 2251 U_SB_FORMAT = 3, /*[FO]*/ 2252 U_SB_LOWER = 4, /*[LO]*/ 2253 U_SB_NUMERIC = 5, /*[NU]*/ 2254 U_SB_OLETTER = 6, /*[LE]*/ 2255 U_SB_SEP = 7, /*[SE]*/ 2256 U_SB_SP = 8, /*[SP]*/ 2257 U_SB_STERM = 9, /*[ST]*/ 2258 U_SB_UPPER = 10, /*[UP]*/ 2259 U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */ 2260 U_SB_EXTEND = 12, /*[EX]*/ 2261 U_SB_LF = 13, /*[LF]*/ 2262 U_SB_SCONTINUE = 14, /*[SC]*/ 2263 #ifndef U_HIDE_DEPRECATED_API 2264 /** 2265 * One more than the highest normal USentenceBreak value. 2266 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_SENTENCE_BREAK). 2267 * 2268 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2269 */ 2270 U_SB_COUNT = 15 2271 #endif // U_HIDE_DEPRECATED_API 2272 } USentenceBreak; 2273 2274 /** 2275 * Line Break constants. 2276 * 2277 * @see UCHAR_LINE_BREAK 2278 * @stable ICU 2.2 2279 */ 2280 typedef enum ULineBreak { 2281 /* 2282 * Note: ULineBreak constants are parsed by preparseucd.py. 2283 * It matches lines like 2284 * U_LB_<Unicode Line_Break value name> 2285 */ 2286 2287 U_LB_UNKNOWN = 0, /*[XX]*/ 2288 U_LB_AMBIGUOUS = 1, /*[AI]*/ 2289 U_LB_ALPHABETIC = 2, /*[AL]*/ 2290 U_LB_BREAK_BOTH = 3, /*[B2]*/ 2291 U_LB_BREAK_AFTER = 4, /*[BA]*/ 2292 U_LB_BREAK_BEFORE = 5, /*[BB]*/ 2293 U_LB_MANDATORY_BREAK = 6, /*[BK]*/ 2294 U_LB_CONTINGENT_BREAK = 7, /*[CB]*/ 2295 U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/ 2296 U_LB_COMBINING_MARK = 9, /*[CM]*/ 2297 U_LB_CARRIAGE_RETURN = 10, /*[CR]*/ 2298 U_LB_EXCLAMATION = 11, /*[EX]*/ 2299 U_LB_GLUE = 12, /*[GL]*/ 2300 U_LB_HYPHEN = 13, /*[HY]*/ 2301 U_LB_IDEOGRAPHIC = 14, /*[ID]*/ 2302 /** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */ 2303 U_LB_INSEPARABLE = 15, /*[IN]*/ 2304 U_LB_INSEPERABLE = U_LB_INSEPARABLE, 2305 U_LB_INFIX_NUMERIC = 16, /*[IS]*/ 2306 U_LB_LINE_FEED = 17, /*[LF]*/ 2307 U_LB_NONSTARTER = 18, /*[NS]*/ 2308 U_LB_NUMERIC = 19, /*[NU]*/ 2309 U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/ 2310 U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/ 2311 U_LB_PREFIX_NUMERIC = 22, /*[PR]*/ 2312 U_LB_QUOTATION = 23, /*[QU]*/ 2313 U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/ 2314 U_LB_SURROGATE = 25, /*[SG]*/ 2315 U_LB_SPACE = 26, /*[SP]*/ 2316 U_LB_BREAK_SYMBOLS = 27, /*[SY]*/ 2317 U_LB_ZWSPACE = 28, /*[ZW]*/ 2318 /** @stable ICU 2.6 */ 2319 U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */ 2320 /** @stable ICU 2.6 */ 2321 U_LB_WORD_JOINER = 30, /*[WJ]*/ 2322 /** @stable ICU 3.4 */ 2323 U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */ 2324 /** @stable ICU 3.4 */ 2325 U_LB_H3 = 32, /*[H3]*/ 2326 /** @stable ICU 3.4 */ 2327 U_LB_JL = 33, /*[JL]*/ 2328 /** @stable ICU 3.4 */ 2329 U_LB_JT = 34, /*[JT]*/ 2330 /** @stable ICU 3.4 */ 2331 U_LB_JV = 35, /*[JV]*/ 2332 /** @stable ICU 4.4 */ 2333 U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */ 2334 /** @stable ICU 49 */ 2335 U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */ 2336 /** @stable ICU 49 */ 2337 U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */ 2338 /** @stable ICU 50 */ 2339 U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */ 2340 /** @stable ICU 58 */ 2341 U_LB_E_BASE = 40, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */ 2342 /** @stable ICU 58 */ 2343 U_LB_E_MODIFIER = 41, /*[EM]*/ 2344 /** @stable ICU 58 */ 2345 U_LB_ZWJ = 42, /*[ZWJ]*/ 2346 #ifndef U_HIDE_DEPRECATED_API 2347 /** 2348 * One more than the highest normal ULineBreak value. 2349 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_LINE_BREAK). 2350 * 2351 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2352 */ 2353 U_LB_COUNT = 43 2354 #endif // U_HIDE_DEPRECATED_API 2355 } ULineBreak; 2356 2357 /** 2358 * Numeric Type constants. 2359 * 2360 * @see UCHAR_NUMERIC_TYPE 2361 * @stable ICU 2.2 2362 */ 2363 typedef enum UNumericType { 2364 /* 2365 * Note: UNumericType constants are parsed by preparseucd.py. 2366 * It matches lines like 2367 * U_NT_<Unicode Numeric_Type value name> 2368 */ 2369 2370 U_NT_NONE, /*[None]*/ 2371 U_NT_DECIMAL, /*[de]*/ 2372 U_NT_DIGIT, /*[di]*/ 2373 U_NT_NUMERIC, /*[nu]*/ 2374 #ifndef U_HIDE_DEPRECATED_API 2375 /** 2376 * One more than the highest normal UNumericType value. 2377 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_NUMERIC_TYPE). 2378 * 2379 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2380 */ 2381 U_NT_COUNT 2382 #endif // U_HIDE_DEPRECATED_API 2383 } UNumericType; 2384 2385 /** 2386 * Hangul Syllable Type constants. 2387 * 2388 * @see UCHAR_HANGUL_SYLLABLE_TYPE 2389 * @stable ICU 2.6 2390 */ 2391 typedef enum UHangulSyllableType { 2392 /* 2393 * Note: UHangulSyllableType constants are parsed by preparseucd.py. 2394 * It matches lines like 2395 * U_HST_<Unicode Hangul_Syllable_Type value name> 2396 */ 2397 2398 U_HST_NOT_APPLICABLE, /*[NA]*/ 2399 U_HST_LEADING_JAMO, /*[L]*/ 2400 U_HST_VOWEL_JAMO, /*[V]*/ 2401 U_HST_TRAILING_JAMO, /*[T]*/ 2402 U_HST_LV_SYLLABLE, /*[LV]*/ 2403 U_HST_LVT_SYLLABLE, /*[LVT]*/ 2404 #ifndef U_HIDE_DEPRECATED_API 2405 /** 2406 * One more than the highest normal UHangulSyllableType value. 2407 * The highest value is available via u_getIntPropertyMaxValue(UCHAR_HANGUL_SYLLABLE_TYPE). 2408 * 2409 * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420. 2410 */ 2411 U_HST_COUNT 2412 #endif // U_HIDE_DEPRECATED_API 2413 } UHangulSyllableType; 2414 2415 /** 2416 * Indic Positional Category constants. 2417 * 2418 * @see UCHAR_INDIC_POSITIONAL_CATEGORY 2419 * @stable ICU 63 2420 */ 2421 typedef enum UIndicPositionalCategory { 2422 /* 2423 * Note: UIndicPositionalCategory constants are parsed by preparseucd.py. 2424 * It matches lines like 2425 * U_INPC_<Unicode Indic_Positional_Category value name> 2426 */ 2427 2428 /** @stable ICU 63 */ 2429 U_INPC_NA, 2430 /** @stable ICU 63 */ 2431 U_INPC_BOTTOM, 2432 /** @stable ICU 63 */ 2433 U_INPC_BOTTOM_AND_LEFT, 2434 /** @stable ICU 63 */ 2435 U_INPC_BOTTOM_AND_RIGHT, 2436 /** @stable ICU 63 */ 2437 U_INPC_LEFT, 2438 /** @stable ICU 63 */ 2439 U_INPC_LEFT_AND_RIGHT, 2440 /** @stable ICU 63 */ 2441 U_INPC_OVERSTRUCK, 2442 /** @stable ICU 63 */ 2443 U_INPC_RIGHT, 2444 /** @stable ICU 63 */ 2445 U_INPC_TOP, 2446 /** @stable ICU 63 */ 2447 U_INPC_TOP_AND_BOTTOM, 2448 /** @stable ICU 63 */ 2449 U_INPC_TOP_AND_BOTTOM_AND_RIGHT, 2450 /** @stable ICU 63 */ 2451 U_INPC_TOP_AND_LEFT, 2452 /** @stable ICU 63 */ 2453 U_INPC_TOP_AND_LEFT_AND_RIGHT, 2454 /** @stable ICU 63 */ 2455 U_INPC_TOP_AND_RIGHT, 2456 /** @stable ICU 63 */ 2457 U_INPC_VISUAL_ORDER_LEFT, 2458 /** @stable ICU 66 */ 2459 U_INPC_TOP_AND_BOTTOM_AND_LEFT, 2460 } UIndicPositionalCategory; 2461 2462 /** 2463 * Indic Syllabic Category constants. 2464 * 2465 * @see UCHAR_INDIC_SYLLABIC_CATEGORY 2466 * @stable ICU 63 2467 */ 2468 typedef enum UIndicSyllabicCategory { 2469 /* 2470 * Note: UIndicSyllabicCategory constants are parsed by preparseucd.py. 2471 * It matches lines like 2472 * U_INSC_<Unicode Indic_Syllabic_Category value name> 2473 */ 2474 2475 /** @stable ICU 63 */ 2476 U_INSC_OTHER, 2477 /** @stable ICU 63 */ 2478 U_INSC_AVAGRAHA, 2479 /** @stable ICU 63 */ 2480 U_INSC_BINDU, 2481 /** @stable ICU 63 */ 2482 U_INSC_BRAHMI_JOINING_NUMBER, 2483 /** @stable ICU 63 */ 2484 U_INSC_CANTILLATION_MARK, 2485 /** @stable ICU 63 */ 2486 U_INSC_CONSONANT, 2487 /** @stable ICU 63 */ 2488 U_INSC_CONSONANT_DEAD, 2489 /** @stable ICU 63 */ 2490 U_INSC_CONSONANT_FINAL, 2491 /** @stable ICU 63 */ 2492 U_INSC_CONSONANT_HEAD_LETTER, 2493 /** @stable ICU 63 */ 2494 U_INSC_CONSONANT_INITIAL_POSTFIXED, 2495 /** @stable ICU 63 */ 2496 U_INSC_CONSONANT_KILLER, 2497 /** @stable ICU 63 */ 2498 U_INSC_CONSONANT_MEDIAL, 2499 /** @stable ICU 63 */ 2500 U_INSC_CONSONANT_PLACEHOLDER, 2501 /** @stable ICU 63 */ 2502 U_INSC_CONSONANT_PRECEDING_REPHA, 2503 /** @stable ICU 63 */ 2504 U_INSC_CONSONANT_PREFIXED, 2505 /** @stable ICU 63 */ 2506 U_INSC_CONSONANT_SUBJOINED, 2507 /** @stable ICU 63 */ 2508 U_INSC_CONSONANT_SUCCEEDING_REPHA, 2509 /** @stable ICU 63 */ 2510 U_INSC_CONSONANT_WITH_STACKER, 2511 /** @stable ICU 63 */ 2512 U_INSC_GEMINATION_MARK, 2513 /** @stable ICU 63 */ 2514 U_INSC_INVISIBLE_STACKER, 2515 /** @stable ICU 63 */ 2516 U_INSC_JOINER, 2517 /** @stable ICU 63 */ 2518 U_INSC_MODIFYING_LETTER, 2519 /** @stable ICU 63 */ 2520 U_INSC_NON_JOINER, 2521 /** @stable ICU 63 */ 2522 U_INSC_NUKTA, 2523 /** @stable ICU 63 */ 2524 U_INSC_NUMBER, 2525 /** @stable ICU 63 */ 2526 U_INSC_NUMBER_JOINER, 2527 /** @stable ICU 63 */ 2528 U_INSC_PURE_KILLER, 2529 /** @stable ICU 63 */ 2530 U_INSC_REGISTER_SHIFTER, 2531 /** @stable ICU 63 */ 2532 U_INSC_SYLLABLE_MODIFIER, 2533 /** @stable ICU 63 */ 2534 U_INSC_TONE_LETTER, 2535 /** @stable ICU 63 */ 2536 U_INSC_TONE_MARK, 2537 /** @stable ICU 63 */ 2538 U_INSC_VIRAMA, 2539 /** @stable ICU 63 */ 2540 U_INSC_VISARGA, 2541 /** @stable ICU 63 */ 2542 U_INSC_VOWEL, 2543 /** @stable ICU 63 */ 2544 U_INSC_VOWEL_DEPENDENT, 2545 /** @stable ICU 63 */ 2546 U_INSC_VOWEL_INDEPENDENT, 2547 } UIndicSyllabicCategory; 2548 2549 /** 2550 * Vertical Orientation constants. 2551 * 2552 * @see UCHAR_VERTICAL_ORIENTATION 2553 * @stable ICU 63 2554 */ 2555 typedef enum UVerticalOrientation { 2556 /* 2557 * Note: UVerticalOrientation constants are parsed by preparseucd.py. 2558 * It matches lines like 2559 * U_VO_<Unicode Vertical_Orientation value name> 2560 */ 2561 2562 /** @stable ICU 63 */ 2563 U_VO_ROTATED, 2564 /** @stable ICU 63 */ 2565 U_VO_TRANSFORMED_ROTATED, 2566 /** @stable ICU 63 */ 2567 U_VO_TRANSFORMED_UPRIGHT, 2568 /** @stable ICU 63 */ 2569 U_VO_UPRIGHT, 2570 } UVerticalOrientation; 2571 2572 /** 2573 * Check a binary Unicode property for a code point. 2574 * 2575 * Unicode, especially in version 3.2, defines many more properties than the 2576 * original set in UnicodeData.txt. 2577 * 2578 * The properties APIs are intended to reflect Unicode properties as defined 2579 * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). 2580 * For details about the properties see http://www.unicode.org/ucd/ . 2581 * For names of Unicode properties see the UCD file PropertyAliases.txt. 2582 * 2583 * Important: If ICU is built with UCD files from Unicode versions below 3.2, 2584 * then properties marked with "new in Unicode 3.2" are not or not fully available. 2585 * 2586 * @param c Code point to test. 2587 * @param which UProperty selector constant, identifies which binary property to check. 2588 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT. 2589 * @return true or false according to the binary Unicode property value for c. 2590 * Also false if 'which' is out of bounds or if the Unicode version 2591 * does not have data for the property at all, or not for this code point. 2592 * 2593 * @see UProperty 2594 * @see u_getBinaryPropertySet 2595 * @see u_getIntPropertyValue 2596 * @see u_getUnicodeVersion 2597 * @stable ICU 2.1 2598 */ 2599 U_CAPI UBool U_EXPORT2 2600 u_hasBinaryProperty(UChar32 c, UProperty which) __INTRODUCED_IN(31); 2601 2602 2603 2604 2605 2606 /** 2607 * Check if a code point has the Alphabetic Unicode property. 2608 * Same as u_hasBinaryProperty(c, UCHAR_ALPHABETIC). 2609 * This is different from u_isalpha! 2610 * @param c Code point to test 2611 * @return true if the code point has the Alphabetic Unicode property, false otherwise 2612 * 2613 * @see UCHAR_ALPHABETIC 2614 * @see u_isalpha 2615 * @see u_hasBinaryProperty 2616 * @stable ICU 2.1 2617 */ 2618 U_CAPI UBool U_EXPORT2 2619 u_isUAlphabetic(UChar32 c) __INTRODUCED_IN(31); 2620 2621 2622 2623 /** 2624 * Check if a code point has the Lowercase Unicode property. 2625 * Same as u_hasBinaryProperty(c, UCHAR_LOWERCASE). 2626 * This is different from u_islower! 2627 * @param c Code point to test 2628 * @return true if the code point has the Lowercase Unicode property, false otherwise 2629 * 2630 * @see UCHAR_LOWERCASE 2631 * @see u_islower 2632 * @see u_hasBinaryProperty 2633 * @stable ICU 2.1 2634 */ 2635 U_CAPI UBool U_EXPORT2 2636 u_isULowercase(UChar32 c) __INTRODUCED_IN(31); 2637 2638 2639 2640 /** 2641 * Check if a code point has the Uppercase Unicode property. 2642 * Same as u_hasBinaryProperty(c, UCHAR_UPPERCASE). 2643 * This is different from u_isupper! 2644 * @param c Code point to test 2645 * @return true if the code point has the Uppercase Unicode property, false otherwise 2646 * 2647 * @see UCHAR_UPPERCASE 2648 * @see u_isupper 2649 * @see u_hasBinaryProperty 2650 * @stable ICU 2.1 2651 */ 2652 U_CAPI UBool U_EXPORT2 2653 u_isUUppercase(UChar32 c) __INTRODUCED_IN(31); 2654 2655 2656 2657 /** 2658 * Check if a code point has the White_Space Unicode property. 2659 * Same as u_hasBinaryProperty(c, UCHAR_WHITE_SPACE). 2660 * This is different from both u_isspace and u_isWhitespace! 2661 * 2662 * Note: There are several ICU whitespace functions; please see the uchar.h 2663 * file documentation for a detailed comparison. 2664 * 2665 * @param c Code point to test 2666 * @return true if the code point has the White_Space Unicode property, false otherwise. 2667 * 2668 * @see UCHAR_WHITE_SPACE 2669 * @see u_isWhitespace 2670 * @see u_isspace 2671 * @see u_isJavaSpaceChar 2672 * @see u_hasBinaryProperty 2673 * @stable ICU 2.1 2674 */ 2675 U_CAPI UBool U_EXPORT2 2676 u_isUWhiteSpace(UChar32 c) __INTRODUCED_IN(31); 2677 2678 2679 2680 /** 2681 * Get the property value for an enumerated or integer Unicode property for a code point. 2682 * Also returns binary and mask property values. 2683 * 2684 * Unicode, especially in version 3.2, defines many more properties than the 2685 * original set in UnicodeData.txt. 2686 * 2687 * The properties APIs are intended to reflect Unicode properties as defined 2688 * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR). 2689 * For details about the properties see http://www.unicode.org/ . 2690 * For names of Unicode properties see the UCD file PropertyAliases.txt. 2691 * 2692 * Sample usage: 2693 * UEastAsianWidth ea=(UEastAsianWidth)u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH); 2694 * UBool b=(UBool)u_getIntPropertyValue(c, UCHAR_IDEOGRAPHIC); 2695 * 2696 * @param c Code point to test. 2697 * @param which UProperty selector constant, identifies which property to check. 2698 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT 2699 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT 2700 * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT. 2701 * @return Numeric value that is directly the property value or, 2702 * for enumerated properties, corresponds to the numeric value of the enumerated 2703 * constant of the respective property value enumeration type 2704 * (cast to enum type if necessary). 2705 * Returns 0 or 1 (for false/true) for binary Unicode properties. 2706 * Returns a bit-mask for mask properties. 2707 * Returns 0 if 'which' is out of bounds or if the Unicode version 2708 * does not have data for the property at all, or not for this code point. 2709 * 2710 * @see UProperty 2711 * @see u_hasBinaryProperty 2712 * @see u_getIntPropertyMinValue 2713 * @see u_getIntPropertyMaxValue 2714 * @see u_getIntPropertyMap 2715 * @see u_getUnicodeVersion 2716 * @stable ICU 2.2 2717 */ 2718 U_CAPI int32_t U_EXPORT2 2719 u_getIntPropertyValue(UChar32 c, UProperty which) __INTRODUCED_IN(31); 2720 2721 2722 2723 /** 2724 * Get the minimum value for an enumerated/integer/binary Unicode property. 2725 * Can be used together with u_getIntPropertyMaxValue 2726 * to allocate arrays of UnicodeSet or similar. 2727 * 2728 * @param which UProperty selector constant, identifies which binary property to check. 2729 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT 2730 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT. 2731 * @return Minimum value returned by u_getIntPropertyValue for a Unicode property. 2732 * 0 if the property selector is out of range. 2733 * 2734 * @see UProperty 2735 * @see u_hasBinaryProperty 2736 * @see u_getUnicodeVersion 2737 * @see u_getIntPropertyMaxValue 2738 * @see u_getIntPropertyValue 2739 * @stable ICU 2.2 2740 */ 2741 U_CAPI int32_t U_EXPORT2 2742 u_getIntPropertyMinValue(UProperty which) __INTRODUCED_IN(31); 2743 2744 2745 2746 /** 2747 * Get the maximum value for an enumerated/integer/binary Unicode property. 2748 * Can be used together with u_getIntPropertyMinValue 2749 * to allocate arrays of UnicodeSet or similar. 2750 * 2751 * Examples for min/max values (for Unicode 3.2): 2752 * 2753 * - UCHAR_BIDI_CLASS: 0/18 (U_LEFT_TO_RIGHT/U_BOUNDARY_NEUTRAL) 2754 * - UCHAR_SCRIPT: 0/45 (USCRIPT_COMMON/USCRIPT_TAGBANWA) 2755 * - UCHAR_IDEOGRAPHIC: 0/1 (false/true) 2756 * 2757 * For undefined UProperty constant values, min/max values will be 0/-1. 2758 * 2759 * @param which UProperty selector constant, identifies which binary property to check. 2760 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT 2761 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT. 2762 * @return Maximum value returned by u_getIntPropertyValue for a Unicode property. 2763 * <=0 if the property selector is out of range. 2764 * 2765 * @see UProperty 2766 * @see u_hasBinaryProperty 2767 * @see u_getUnicodeVersion 2768 * @see u_getIntPropertyMaxValue 2769 * @see u_getIntPropertyValue 2770 * @stable ICU 2.2 2771 */ 2772 U_CAPI int32_t U_EXPORT2 2773 u_getIntPropertyMaxValue(UProperty which) __INTRODUCED_IN(31); 2774 2775 2776 2777 2778 2779 /** 2780 * Get the numeric value for a Unicode code point as defined in the 2781 * Unicode Character Database. 2782 * 2783 * A "double" return type is necessary because 2784 * some numeric values are fractions, negative, or too large for int32_t. 2785 * 2786 * For characters without any numeric values in the Unicode Character Database, 2787 * this function will return U_NO_NUMERIC_VALUE. 2788 * Note: This is different from the Unicode Standard which specifies NaN as the default value. 2789 * (NaN is not available on all platforms.) 2790 * 2791 * Similar to java.lang.Character.getNumericValue(), but u_getNumericValue() 2792 * also supports negative values, large values, and fractions, 2793 * while Java's getNumericValue() returns values 10..35 for ASCII letters. 2794 * 2795 * @param c Code point to get the numeric value for. 2796 * @return Numeric value of c, or U_NO_NUMERIC_VALUE if none is defined. 2797 * 2798 * @see U_NO_NUMERIC_VALUE 2799 * @stable ICU 2.2 2800 */ 2801 U_CAPI double U_EXPORT2 2802 u_getNumericValue(UChar32 c) __INTRODUCED_IN(31); 2803 2804 2805 2806 /** 2807 * Special value that is returned by u_getNumericValue when 2808 * no numeric value is defined for a code point. 2809 * 2810 * @see u_getNumericValue 2811 * @stable ICU 2.2 2812 */ 2813 #define U_NO_NUMERIC_VALUE ((double)-123456789.) 2814 2815 /** 2816 * Determines whether the specified code point has the general category "Ll" 2817 * (lowercase letter). 2818 * 2819 * Same as java.lang.Character.isLowerCase(). 2820 * 2821 * This misses some characters that are also lowercase but 2822 * have a different general category value. 2823 * In order to include those, use UCHAR_LOWERCASE. 2824 * 2825 * In addition to being equivalent to a Java function, this also serves 2826 * as a C/POSIX migration function. 2827 * See the comments about C/POSIX character classification functions in the 2828 * documentation at the top of this header file. 2829 * 2830 * @param c the code point to be tested 2831 * @return true if the code point is an Ll lowercase letter 2832 * 2833 * @see UCHAR_LOWERCASE 2834 * @see u_isupper 2835 * @see u_istitle 2836 * @stable ICU 2.0 2837 */ 2838 U_CAPI UBool U_EXPORT2 2839 u_islower(UChar32 c) __INTRODUCED_IN(31); 2840 2841 2842 2843 /** 2844 * Determines whether the specified code point has the general category "Lu" 2845 * (uppercase letter). 2846 * 2847 * Same as java.lang.Character.isUpperCase(). 2848 * 2849 * This misses some characters that are also uppercase but 2850 * have a different general category value. 2851 * In order to include those, use UCHAR_UPPERCASE. 2852 * 2853 * In addition to being equivalent to a Java function, this also serves 2854 * as a C/POSIX migration function. 2855 * See the comments about C/POSIX character classification functions in the 2856 * documentation at the top of this header file. 2857 * 2858 * @param c the code point to be tested 2859 * @return true if the code point is an Lu uppercase letter 2860 * 2861 * @see UCHAR_UPPERCASE 2862 * @see u_islower 2863 * @see u_istitle 2864 * @see u_tolower 2865 * @stable ICU 2.0 2866 */ 2867 U_CAPI UBool U_EXPORT2 2868 u_isupper(UChar32 c) __INTRODUCED_IN(31); 2869 2870 2871 2872 /** 2873 * Determines whether the specified code point is a titlecase letter. 2874 * True for general category "Lt" (titlecase letter). 2875 * 2876 * Same as java.lang.Character.isTitleCase(). 2877 * 2878 * @param c the code point to be tested 2879 * @return true if the code point is an Lt titlecase letter 2880 * 2881 * @see u_isupper 2882 * @see u_islower 2883 * @see u_totitle 2884 * @stable ICU 2.0 2885 */ 2886 U_CAPI UBool U_EXPORT2 2887 u_istitle(UChar32 c) __INTRODUCED_IN(31); 2888 2889 2890 2891 /** 2892 * Determines whether the specified code point is a digit character according to Java. 2893 * True for characters with general category "Nd" (decimal digit numbers). 2894 * Beginning with Unicode 4, this is the same as 2895 * testing for the Numeric_Type of Decimal. 2896 * 2897 * Same as java.lang.Character.isDigit(). 2898 * 2899 * In addition to being equivalent to a Java function, this also serves 2900 * as a C/POSIX migration function. 2901 * See the comments about C/POSIX character classification functions in the 2902 * documentation at the top of this header file. 2903 * 2904 * @param c the code point to be tested 2905 * @return true if the code point is a digit character according to Character.isDigit() 2906 * 2907 * @stable ICU 2.0 2908 */ 2909 U_CAPI UBool U_EXPORT2 2910 u_isdigit(UChar32 c) __INTRODUCED_IN(31); 2911 2912 2913 2914 /** 2915 * Determines whether the specified code point is a letter character. 2916 * True for general categories "L" (letters). 2917 * 2918 * Same as java.lang.Character.isLetter(). 2919 * 2920 * In addition to being equivalent to a Java function, this also serves 2921 * as a C/POSIX migration function. 2922 * See the comments about C/POSIX character classification functions in the 2923 * documentation at the top of this header file. 2924 * 2925 * @param c the code point to be tested 2926 * @return true if the code point is a letter character 2927 * 2928 * @see u_isdigit 2929 * @see u_isalnum 2930 * @stable ICU 2.0 2931 */ 2932 U_CAPI UBool U_EXPORT2 2933 u_isalpha(UChar32 c) __INTRODUCED_IN(31); 2934 2935 2936 2937 /** 2938 * Determines whether the specified code point is an alphanumeric character 2939 * (letter or digit) according to Java. 2940 * True for characters with general categories 2941 * "L" (letters) and "Nd" (decimal digit numbers). 2942 * 2943 * Same as java.lang.Character.isLetterOrDigit(). 2944 * 2945 * In addition to being equivalent to a Java function, this also serves 2946 * as a C/POSIX migration function. 2947 * See the comments about C/POSIX character classification functions in the 2948 * documentation at the top of this header file. 2949 * 2950 * @param c the code point to be tested 2951 * @return true if the code point is an alphanumeric character according to Character.isLetterOrDigit() 2952 * 2953 * @stable ICU 2.0 2954 */ 2955 U_CAPI UBool U_EXPORT2 2956 u_isalnum(UChar32 c) __INTRODUCED_IN(31); 2957 2958 2959 2960 /** 2961 * Determines whether the specified code point is a hexadecimal digit. 2962 * This is equivalent to u_digit(c, 16)>=0. 2963 * True for characters with general category "Nd" (decimal digit numbers) 2964 * as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII. 2965 * (That is, for letters with code points 2966 * 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.) 2967 * 2968 * In order to narrow the definition of hexadecimal digits to only ASCII 2969 * characters, use (c<=0x7f && u_isxdigit(c)). 2970 * 2971 * This is a C/POSIX migration function. 2972 * See the comments about C/POSIX character classification functions in the 2973 * documentation at the top of this header file. 2974 * 2975 * @param c the code point to be tested 2976 * @return true if the code point is a hexadecimal digit 2977 * 2978 * @stable ICU 2.6 2979 */ 2980 U_CAPI UBool U_EXPORT2 2981 u_isxdigit(UChar32 c) __INTRODUCED_IN(31); 2982 2983 2984 2985 /** 2986 * Determines whether the specified code point is a punctuation character. 2987 * True for characters with general categories "P" (punctuation). 2988 * 2989 * This is a C/POSIX migration function. 2990 * See the comments about C/POSIX character classification functions in the 2991 * documentation at the top of this header file. 2992 * 2993 * @param c the code point to be tested 2994 * @return true if the code point is a punctuation character 2995 * 2996 * @stable ICU 2.6 2997 */ 2998 U_CAPI UBool U_EXPORT2 2999 u_ispunct(UChar32 c) __INTRODUCED_IN(31); 3000 3001 3002 3003 /** 3004 * Determines whether the specified code point is a "graphic" character 3005 * (printable, excluding spaces). 3006 * true for all characters except those with general categories 3007 * "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates), 3008 * "Cn" (unassigned), and "Z" (separators). 3009 * 3010 * This is a C/POSIX migration function. 3011 * See the comments about C/POSIX character classification functions in the 3012 * documentation at the top of this header file. 3013 * 3014 * @param c the code point to be tested 3015 * @return true if the code point is a "graphic" character 3016 * 3017 * @stable ICU 2.6 3018 */ 3019 U_CAPI UBool U_EXPORT2 3020 u_isgraph(UChar32 c) __INTRODUCED_IN(31); 3021 3022 3023 3024 /** 3025 * Determines whether the specified code point is a "blank" or "horizontal space", 3026 * a character that visibly separates words on a line. 3027 * The following are equivalent definitions: 3028 * 3029 * true for Unicode White_Space characters except for "vertical space controls" 3030 * where "vertical space controls" are the following characters: 3031 * U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS) 3032 * 3033 * same as 3034 * 3035 * true for U+0009 (TAB) and characters with general category "Zs" (space separators). 3036 * 3037 * Note: There are several ICU whitespace functions; please see the uchar.h 3038 * file documentation for a detailed comparison. 3039 * 3040 * This is a C/POSIX migration function. 3041 * See the comments about C/POSIX character classification functions in the 3042 * documentation at the top of this header file. 3043 * 3044 * @param c the code point to be tested 3045 * @return true if the code point is a "blank" 3046 * 3047 * @stable ICU 2.6 3048 */ 3049 U_CAPI UBool U_EXPORT2 3050 u_isblank(UChar32 c) __INTRODUCED_IN(31); 3051 3052 3053 3054 /** 3055 * Determines whether the specified code point is "defined", 3056 * which usually means that it is assigned a character. 3057 * True for general categories other than "Cn" (other, not assigned), 3058 * i.e., true for all code points mentioned in UnicodeData.txt. 3059 * 3060 * Note that non-character code points (e.g., U+FDD0) are not "defined" 3061 * (they are Cn), but surrogate code points are "defined" (Cs). 3062 * 3063 * Same as java.lang.Character.isDefined(). 3064 * 3065 * @param c the code point to be tested 3066 * @return true if the code point is assigned a character 3067 * 3068 * @see u_isdigit 3069 * @see u_isalpha 3070 * @see u_isalnum 3071 * @see u_isupper 3072 * @see u_islower 3073 * @see u_istitle 3074 * @stable ICU 2.0 3075 */ 3076 U_CAPI UBool U_EXPORT2 3077 u_isdefined(UChar32 c) __INTRODUCED_IN(31); 3078 3079 3080 3081 /** 3082 * Determines if the specified character is a space character or not. 3083 * 3084 * Note: There are several ICU whitespace functions; please see the uchar.h 3085 * file documentation for a detailed comparison. 3086 * 3087 * This is a C/POSIX migration function. 3088 * See the comments about C/POSIX character classification functions in the 3089 * documentation at the top of this header file. 3090 * 3091 * @param c the character to be tested 3092 * @return true if the character is a space character; false otherwise. 3093 * 3094 * @see u_isJavaSpaceChar 3095 * @see u_isWhitespace 3096 * @see u_isUWhiteSpace 3097 * @stable ICU 2.0 3098 */ 3099 U_CAPI UBool U_EXPORT2 3100 u_isspace(UChar32 c) __INTRODUCED_IN(31); 3101 3102 3103 3104 /** 3105 * Determine if the specified code point is a space character according to Java. 3106 * True for characters with general categories "Z" (separators), 3107 * which does not include control codes (e.g., TAB or Line Feed). 3108 * 3109 * Same as java.lang.Character.isSpaceChar(). 3110 * 3111 * Note: There are several ICU whitespace functions; please see the uchar.h 3112 * file documentation for a detailed comparison. 3113 * 3114 * @param c the code point to be tested 3115 * @return true if the code point is a space character according to Character.isSpaceChar() 3116 * 3117 * @see u_isspace 3118 * @see u_isWhitespace 3119 * @see u_isUWhiteSpace 3120 * @stable ICU 2.6 3121 */ 3122 U_CAPI UBool U_EXPORT2 3123 u_isJavaSpaceChar(UChar32 c) __INTRODUCED_IN(31); 3124 3125 3126 3127 /** 3128 * Determines if the specified code point is a whitespace character according to Java/ICU. 3129 * A character is considered to be a Java whitespace character if and only 3130 * if it satisfies one of the following criteria: 3131 * 3132 * - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not 3133 * also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP). 3134 * - It is U+0009 HORIZONTAL TABULATION. 3135 * - It is U+000A LINE FEED. 3136 * - It is U+000B VERTICAL TABULATION. 3137 * - It is U+000C FORM FEED. 3138 * - It is U+000D CARRIAGE RETURN. 3139 * - It is U+001C FILE SEPARATOR. 3140 * - It is U+001D GROUP SEPARATOR. 3141 * - It is U+001E RECORD SEPARATOR. 3142 * - It is U+001F UNIT SEPARATOR. 3143 * 3144 * This API tries to sync with the semantics of Java's 3145 * java.lang.Character.isWhitespace(), but it may not return 3146 * the exact same results because of the Unicode version 3147 * difference. 3148 * 3149 * Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs) 3150 * to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false. 3151 * See http://www.unicode.org/versions/Unicode4.0.1/ 3152 * 3153 * Note: There are several ICU whitespace functions; please see the uchar.h 3154 * file documentation for a detailed comparison. 3155 * 3156 * @param c the code point to be tested 3157 * @return true if the code point is a whitespace character according to Java/ICU 3158 * 3159 * @see u_isspace 3160 * @see u_isJavaSpaceChar 3161 * @see u_isUWhiteSpace 3162 * @stable ICU 2.0 3163 */ 3164 U_CAPI UBool U_EXPORT2 3165 u_isWhitespace(UChar32 c) __INTRODUCED_IN(31); 3166 3167 3168 3169 /** 3170 * Determines whether the specified code point is a control character 3171 * (as defined by this function). 3172 * A control character is one of the following: 3173 * - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f) 3174 * - U_CONTROL_CHAR (Cc) 3175 * - U_FORMAT_CHAR (Cf) 3176 * - U_LINE_SEPARATOR (Zl) 3177 * - U_PARAGRAPH_SEPARATOR (Zp) 3178 * 3179 * This is a C/POSIX migration function. 3180 * See the comments about C/POSIX character classification functions in the 3181 * documentation at the top of this header file. 3182 * 3183 * @param c the code point to be tested 3184 * @return true if the code point is a control character 3185 * 3186 * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT 3187 * @see u_isprint 3188 * @stable ICU 2.0 3189 */ 3190 U_CAPI UBool U_EXPORT2 3191 u_iscntrl(UChar32 c) __INTRODUCED_IN(31); 3192 3193 3194 3195 /** 3196 * Determines whether the specified code point is an ISO control code. 3197 * True for U+0000..U+001f and U+007f..U+009f (general category "Cc"). 3198 * 3199 * Same as java.lang.Character.isISOControl(). 3200 * 3201 * @param c the code point to be tested 3202 * @return true if the code point is an ISO control code 3203 * 3204 * @see u_iscntrl 3205 * @stable ICU 2.6 3206 */ 3207 U_CAPI UBool U_EXPORT2 3208 u_isISOControl(UChar32 c) __INTRODUCED_IN(31); 3209 3210 3211 3212 /** 3213 * Determines whether the specified code point is a printable character. 3214 * True for general categories <em>other</em> than "C" (controls). 3215 * 3216 * This is a C/POSIX migration function. 3217 * See the comments about C/POSIX character classification functions in the 3218 * documentation at the top of this header file. 3219 * 3220 * @param c the code point to be tested 3221 * @return true if the code point is a printable character 3222 * 3223 * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT 3224 * @see u_iscntrl 3225 * @stable ICU 2.0 3226 */ 3227 U_CAPI UBool U_EXPORT2 3228 u_isprint(UChar32 c) __INTRODUCED_IN(31); 3229 3230 3231 3232 /** 3233 * Non-standard: Determines whether the specified code point is a base character. 3234 * True for general categories "L" (letters), "N" (numbers), 3235 * "Mc" (spacing combining marks), and "Me" (enclosing marks). 3236 * 3237 * Note that this is different from the Unicode Standard definition in 3238 * chapter 3.6, conformance clause D51 “Base character”, 3239 * which defines base characters as the code points with general categories 3240 * Letter (L), Number (N), Punctuation (P), Symbol (S), or Space Separator (Zs). 3241 * 3242 * @param c the code point to be tested 3243 * @return true if the code point is a base character according to this function 3244 * 3245 * @see u_isalpha 3246 * @see u_isdigit 3247 * @stable ICU 2.0 3248 */ 3249 U_CAPI UBool U_EXPORT2 3250 u_isbase(UChar32 c) __INTRODUCED_IN(31); 3251 3252 3253 3254 /** 3255 * Returns the bidirectional category value for the code point, 3256 * which is used in the Unicode bidirectional algorithm 3257 * (UAX #9 http://www.unicode.org/reports/tr9/). 3258 * Note that some <em>unassigned</em> code points have bidi values 3259 * of R or AL because they are in blocks that are reserved 3260 * for Right-To-Left scripts. 3261 * 3262 * Same as java.lang.Character.getDirectionality() 3263 * 3264 * @param c the code point to be tested 3265 * @return the bidirectional category (UCharDirection) value 3266 * 3267 * @see UCharDirection 3268 * @stable ICU 2.0 3269 */ 3270 U_CAPI UCharDirection U_EXPORT2 3271 u_charDirection(UChar32 c) __INTRODUCED_IN(31); 3272 3273 3274 3275 /** 3276 * Determines whether the code point has the Bidi_Mirrored property. 3277 * This property is set for characters that are commonly used in 3278 * Right-To-Left contexts and need to be displayed with a "mirrored" 3279 * glyph. 3280 * 3281 * Same as java.lang.Character.isMirrored(). 3282 * Same as UCHAR_BIDI_MIRRORED 3283 * 3284 * @param c the code point to be tested 3285 * @return true if the character has the Bidi_Mirrored property 3286 * 3287 * @see UCHAR_BIDI_MIRRORED 3288 * @stable ICU 2.0 3289 */ 3290 U_CAPI UBool U_EXPORT2 3291 u_isMirrored(UChar32 c) __INTRODUCED_IN(31); 3292 3293 3294 3295 /** 3296 * Maps the specified character to a "mirror-image" character. 3297 * For characters with the Bidi_Mirrored property, implementations 3298 * sometimes need a "poor man's" mapping to another Unicode 3299 * character (code point) such that the default glyph may serve 3300 * as the mirror-image of the default glyph of the specified 3301 * character. This is useful for text conversion to and from 3302 * codepages with visual order, and for displays without glyph 3303 * selection capabilities. 3304 * 3305 * @param c the code point to be mapped 3306 * @return another Unicode code point that may serve as a mirror-image 3307 * substitute, or c itself if there is no such mapping or c 3308 * does not have the Bidi_Mirrored property 3309 * 3310 * @see UCHAR_BIDI_MIRRORED 3311 * @see u_isMirrored 3312 * @stable ICU 2.0 3313 */ 3314 U_CAPI UChar32 U_EXPORT2 3315 u_charMirror(UChar32 c) __INTRODUCED_IN(31); 3316 3317 3318 3319 /** 3320 * Maps the specified character to its paired bracket character. 3321 * For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror(). 3322 * Otherwise c itself is returned. 3323 * See http://www.unicode.org/reports/tr9/ 3324 * 3325 * @param c the code point to be mapped 3326 * @return the paired bracket code point, 3327 * or c itself if there is no such mapping 3328 * (Bidi_Paired_Bracket_Type=None) 3329 * 3330 * @see UCHAR_BIDI_PAIRED_BRACKET 3331 * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE 3332 * @see u_charMirror 3333 * @stable ICU 52 3334 */ 3335 U_CAPI UChar32 U_EXPORT2 3336 u_getBidiPairedBracket(UChar32 c) __INTRODUCED_IN(31); 3337 3338 3339 3340 /** 3341 * Returns the general category value for the code point. 3342 * 3343 * Same as java.lang.Character.getType(). 3344 * 3345 * @param c the code point to be tested 3346 * @return the general category (UCharCategory) value 3347 * 3348 * @see UCharCategory 3349 * @stable ICU 2.0 3350 */ 3351 U_CAPI int8_t U_EXPORT2 3352 u_charType(UChar32 c) __INTRODUCED_IN(31); 3353 3354 3355 3356 /** 3357 * Get a single-bit bit set for the general category of a character. 3358 * This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc. 3359 * Same as U_MASK(u_charType(c)). 3360 * 3361 * @param c the code point to be tested 3362 * @return a single-bit mask corresponding to the general category (UCharCategory) value 3363 * 3364 * @see u_charType 3365 * @see UCharCategory 3366 * @see U_GC_CN_MASK 3367 * @stable ICU 2.1 3368 */ 3369 #define U_GET_GC_MASK(c) U_MASK(u_charType(c)) 3370 3371 /** 3372 * Callback from u_enumCharTypes(), is called for each contiguous range 3373 * of code points c (where start<=c<limit) 3374 * with the same Unicode general category ("character type"). 3375 * 3376 * The callback function can stop the enumeration by returning false. 3377 * 3378 * @param context an opaque pointer, as passed into utrie_enum() 3379 * @param start the first code point in a contiguous range with value 3380 * @param limit one past the last code point in a contiguous range with value 3381 * @param type the general category for all code points in [start..limit[ 3382 * @return false to stop the enumeration 3383 * 3384 * @stable ICU 2.1 3385 * @see UCharCategory 3386 * @see u_enumCharTypes 3387 */ 3388 typedef UBool U_CALLCONV 3389 UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type); 3390 3391 /** 3392 * Enumerate efficiently all code points with their Unicode general categories. 3393 * 3394 * This is useful for building data structures (e.g., UnicodeSet's), 3395 * for enumerating all assigned code points (type!=U_UNASSIGNED), etc. 3396 * 3397 * For each contiguous range of code points with a given general category ("character type"), 3398 * the UCharEnumTypeRange function is called. 3399 * Adjacent ranges have different types. 3400 * The Unicode Standard guarantees that the numeric value of the type is 0..31. 3401 * 3402 * @param enumRange a pointer to a function that is called for each contiguous range 3403 * of code points with the same general category 3404 * @param context an opaque pointer that is passed on to the callback function 3405 * 3406 * @stable ICU 2.1 3407 * @see UCharCategory 3408 * @see UCharEnumTypeRange 3409 */ 3410 U_CAPI void U_EXPORT2 3411 u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context) __INTRODUCED_IN(31); 3412 3413 3414 3415 #if !UCONFIG_NO_NORMALIZATION 3416 3417 /** 3418 * Returns the combining class of the code point as specified in UnicodeData.txt. 3419 * 3420 * @param c the code point of the character 3421 * @return the combining class of the character 3422 * @stable ICU 2.0 3423 */ 3424 U_CAPI uint8_t U_EXPORT2 3425 u_getCombiningClass(UChar32 c) __INTRODUCED_IN(31); 3426 3427 3428 3429 #endif 3430 3431 /** 3432 * Returns the decimal digit value of a decimal digit character. 3433 * Such characters have the general category "Nd" (decimal digit numbers) 3434 * and a Numeric_Type of Decimal. 3435 * 3436 * Unlike ICU releases before 2.6, no digit values are returned for any 3437 * Han characters because Han number characters are often used with a special 3438 * Chinese-style number format (with characters for powers of 10 in between) 3439 * instead of in decimal-positional notation. 3440 * Unicode 4 explicitly assigns Han number characters the Numeric_Type 3441 * Numeric instead of Decimal. 3442 * See Jitterbug 1483 for more details. 3443 * 3444 * Use u_getIntPropertyValue(c, UCHAR_NUMERIC_TYPE) and u_getNumericValue() 3445 * for complete numeric Unicode properties. 3446 * 3447 * @param c the code point for which to get the decimal digit value 3448 * @return the decimal digit value of c, 3449 * or -1 if c is not a decimal digit character 3450 * 3451 * @see u_getNumericValue 3452 * @stable ICU 2.0 3453 */ 3454 U_CAPI int32_t U_EXPORT2 3455 u_charDigitValue(UChar32 c) __INTRODUCED_IN(31); 3456 3457 3458 3459 3460 3461 /** 3462 * Retrieve the name of a Unicode character. 3463 * Depending on <code>nameChoice</code>, the character name written 3464 * into the buffer is the "modern" name or the name that was defined 3465 * in Unicode version 1.0. 3466 * The name contains only "invariant" characters 3467 * like A-Z, 0-9, space, and '-'. 3468 * Unicode 1.0 names are only retrieved if they are different from the modern 3469 * names and if the data file contains the data for them. gennames may or may 3470 * not be called with a command line option to include 1.0 names in unames.dat. 3471 * 3472 * @param code The character (code point) for which to get the name. 3473 * It must be <code>0<=code<=0x10ffff</code>. 3474 * @param nameChoice Selector for which name to get. 3475 * @param buffer Destination address for copying the name. 3476 * The name will always be zero-terminated. 3477 * If there is no name, then the buffer will be set to the empty string. 3478 * @param bufferLength <code>==sizeof(buffer)</code> 3479 * @param pErrorCode Pointer to a UErrorCode variable; 3480 * check for <code>U_SUCCESS()</code> after <code>u_charName()</code> 3481 * returns. 3482 * @return The length of the name, or 0 if there is no name for this character. 3483 * If the bufferLength is less than or equal to the length, then the buffer 3484 * contains the truncated name and the returned length indicates the full 3485 * length of the name. 3486 * The length does not include the zero-termination. 3487 * 3488 * @see UCharNameChoice 3489 * @see u_charFromName 3490 * @see u_enumCharNames 3491 * @stable ICU 2.0 3492 */ 3493 U_CAPI int32_t U_EXPORT2 3494 u_charName(UChar32 code, UCharNameChoice nameChoice, 3495 char *buffer, int32_t bufferLength, 3496 UErrorCode *pErrorCode) __INTRODUCED_IN(31); 3497 3498 3499 3500 #ifndef U_HIDE_DEPRECATED_API 3501 3502 #endif /* U_HIDE_DEPRECATED_API */ 3503 3504 /** 3505 * Find a Unicode character by its name and return its code point value. 3506 * The name is matched exactly and completely. 3507 * If the name does not correspond to a code point, <i>pErrorCode</i> 3508 * is set to <code>U_INVALID_CHAR_FOUND</code>. 3509 * A Unicode 1.0 name is matched only if it differs from the modern name. 3510 * Unicode names are all uppercase. Extended names are lowercase followed 3511 * by an uppercase hexadecimal number, and within angle brackets. 3512 * 3513 * @param nameChoice Selector for which name to match. 3514 * @param name The name to match. 3515 * @param pErrorCode Pointer to a UErrorCode variable 3516 * @return The Unicode value of the code point with the given name, 3517 * or an undefined value if there is no such code point. 3518 * 3519 * @see UCharNameChoice 3520 * @see u_charName 3521 * @see u_enumCharNames 3522 * @stable ICU 1.7 3523 */ 3524 U_CAPI UChar32 U_EXPORT2 3525 u_charFromName(UCharNameChoice nameChoice, 3526 const char *name, 3527 UErrorCode *pErrorCode) __INTRODUCED_IN(31); 3528 3529 3530 3531 /** 3532 * Type of a callback function for u_enumCharNames() that gets called 3533 * for each Unicode character with the code point value and 3534 * the character name. 3535 * If such a function returns false, then the enumeration is stopped. 3536 * 3537 * @param context The context pointer that was passed to u_enumCharNames(). 3538 * @param code The Unicode code point for the character with this name. 3539 * @param nameChoice Selector for which kind of names is enumerated. 3540 * @param name The character's name, zero-terminated. 3541 * @param length The length of the name. 3542 * @return true if the enumeration should continue, false to stop it. 3543 * 3544 * @see UCharNameChoice 3545 * @see u_enumCharNames 3546 * @stable ICU 1.7 3547 */ 3548 typedef UBool U_CALLCONV UEnumCharNamesFn(void *context, 3549 UChar32 code, 3550 UCharNameChoice nameChoice, 3551 const char *name, 3552 int32_t length); 3553 3554 /** 3555 * Enumerate all assigned Unicode characters between the start and limit 3556 * code points (start inclusive, limit exclusive) and call a function 3557 * for each, passing the code point value and the character name. 3558 * For Unicode 1.0 names, only those are enumerated that differ from the 3559 * modern names. 3560 * 3561 * @param start The first code point in the enumeration range. 3562 * @param limit One more than the last code point in the enumeration range 3563 * (the first one after the range). 3564 * @param fn The function that is to be called for each character name. 3565 * @param context An arbitrary pointer that is passed to the function. 3566 * @param nameChoice Selector for which kind of names to enumerate. 3567 * @param pErrorCode Pointer to a UErrorCode variable 3568 * 3569 * @see UCharNameChoice 3570 * @see UEnumCharNamesFn 3571 * @see u_charName 3572 * @see u_charFromName 3573 * @stable ICU 1.7 3574 */ 3575 U_CAPI void U_EXPORT2 3576 u_enumCharNames(UChar32 start, UChar32 limit, 3577 UEnumCharNamesFn *fn, 3578 void *context, 3579 UCharNameChoice nameChoice, 3580 UErrorCode *pErrorCode) __INTRODUCED_IN(31); 3581 3582 3583 3584 /** 3585 * Return the Unicode name for a given property, as given in the 3586 * Unicode database file PropertyAliases.txt. 3587 * 3588 * In addition, this function maps the property 3589 * UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" / 3590 * "General_Category_Mask". These names are not in 3591 * PropertyAliases.txt. 3592 * 3593 * @param property UProperty selector other than UCHAR_INVALID_CODE. 3594 * If out of range, NULL is returned. 3595 * 3596 * @param nameChoice selector for which name to get. If out of range, 3597 * NULL is returned. All properties have a long name. Most 3598 * have a short name, but some do not. Unicode allows for 3599 * additional names; if present these will be returned by 3600 * U_LONG_PROPERTY_NAME + i, where i=1, 2,... 3601 * 3602 * @return a pointer to the name, or NULL if either the 3603 * property or the nameChoice is out of range. If a given 3604 * nameChoice returns NULL, then all larger values of 3605 * nameChoice will return NULL, with one exception: if NULL is 3606 * returned for U_SHORT_PROPERTY_NAME, then 3607 * U_LONG_PROPERTY_NAME (and higher) may still return a 3608 * non-NULL value. The returned pointer is valid until 3609 * u_cleanup() is called. 3610 * 3611 * @see UProperty 3612 * @see UPropertyNameChoice 3613 * @stable ICU 2.4 3614 */ 3615 U_CAPI const char* U_EXPORT2 3616 u_getPropertyName(UProperty property, 3617 UPropertyNameChoice nameChoice) __INTRODUCED_IN(31); 3618 3619 3620 3621 /** 3622 * Return the UProperty enum for a given property name, as specified 3623 * in the Unicode database file PropertyAliases.txt. Short, long, and 3624 * any other variants are recognized. 3625 * 3626 * In addition, this function maps the synthetic names "gcm" / 3627 * "General_Category_Mask" to the property 3628 * UCHAR_GENERAL_CATEGORY_MASK. These names are not in 3629 * PropertyAliases.txt. 3630 * 3631 * @param alias the property name to be matched. The name is compared 3632 * using "loose matching" as described in PropertyAliases.txt. 3633 * 3634 * @return a UProperty enum, or UCHAR_INVALID_CODE if the given name 3635 * does not match any property. 3636 * 3637 * @see UProperty 3638 * @stable ICU 2.4 3639 */ 3640 U_CAPI UProperty U_EXPORT2 3641 u_getPropertyEnum(const char* alias) __INTRODUCED_IN(31); 3642 3643 3644 3645 /** 3646 * Return the Unicode name for a given property value, as given in the 3647 * Unicode database file PropertyValueAliases.txt. 3648 * 3649 * Note: Some of the names in PropertyValueAliases.txt can only be 3650 * retrieved using UCHAR_GENERAL_CATEGORY_MASK, not 3651 * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" / 3652 * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P" 3653 * / "Punctuation", "S" / "Symbol", and "Z" / "Separator". 3654 * 3655 * @param property UProperty selector constant. 3656 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT 3657 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT 3658 * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT. 3659 * If out of range, NULL is returned. 3660 * 3661 * @param value selector for a value for the given property. If out 3662 * of range, NULL is returned. In general, valid values range 3663 * from 0 up to some maximum. There are a few exceptions: 3664 * (1.) UCHAR_BLOCK values begin at the non-zero value 3665 * UBLOCK_BASIC_LATIN. (2.) UCHAR_CANONICAL_COMBINING_CLASS 3666 * values are not contiguous and range from 0..240. (3.) 3667 * UCHAR_GENERAL_CATEGORY_MASK values are not values of 3668 * UCharCategory, but rather mask values produced by 3669 * U_GET_GC_MASK(). This allows grouped categories such as 3670 * [:L:] to be represented. Mask values range 3671 * non-contiguously from 1..U_GC_P_MASK. 3672 * 3673 * @param nameChoice selector for which name to get. If out of range, 3674 * NULL is returned. All values have a long name. Most have 3675 * a short name, but some do not. Unicode allows for 3676 * additional names; if present these will be returned by 3677 * U_LONG_PROPERTY_NAME + i, where i=1, 2,... 3678 3679 * @return a pointer to the name, or NULL if either the 3680 * property or the nameChoice is out of range. If a given 3681 * nameChoice returns NULL, then all larger values of 3682 * nameChoice will return NULL, with one exception: if NULL is 3683 * returned for U_SHORT_PROPERTY_NAME, then 3684 * U_LONG_PROPERTY_NAME (and higher) may still return a 3685 * non-NULL value. The returned pointer is valid until 3686 * u_cleanup() is called. 3687 * 3688 * @see UProperty 3689 * @see UPropertyNameChoice 3690 * @stable ICU 2.4 3691 */ 3692 U_CAPI const char* U_EXPORT2 3693 u_getPropertyValueName(UProperty property, 3694 int32_t value, 3695 UPropertyNameChoice nameChoice) __INTRODUCED_IN(31); 3696 3697 3698 3699 /** 3700 * Return the property value integer for a given value name, as 3701 * specified in the Unicode database file PropertyValueAliases.txt. 3702 * Short, long, and any other variants are recognized. 3703 * 3704 * Note: Some of the names in PropertyValueAliases.txt will only be 3705 * recognized with UCHAR_GENERAL_CATEGORY_MASK, not 3706 * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" / 3707 * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P" 3708 * / "Punctuation", "S" / "Symbol", and "Z" / "Separator". 3709 * 3710 * @param property UProperty selector constant. 3711 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT 3712 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT 3713 * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT. 3714 * If out of range, UCHAR_INVALID_CODE is returned. 3715 * 3716 * @param alias the value name to be matched. The name is compared 3717 * using "loose matching" as described in 3718 * PropertyValueAliases.txt. 3719 * 3720 * @return a value integer or UCHAR_INVALID_CODE if the given name 3721 * does not match any value of the given property, or if the 3722 * property is invalid. Note: UCHAR_GENERAL_CATEGORY_MASK values 3723 * are not values of UCharCategory, but rather mask values 3724 * produced by U_GET_GC_MASK(). This allows grouped 3725 * categories such as [:L:] to be represented. 3726 * 3727 * @see UProperty 3728 * @stable ICU 2.4 3729 */ 3730 U_CAPI int32_t U_EXPORT2 3731 u_getPropertyValueEnum(UProperty property, 3732 const char* alias) __INTRODUCED_IN(31); 3733 3734 3735 3736 /** 3737 * Determines if the specified character is permissible as the 3738 * first character in an identifier according to Unicode 3739 * (The Unicode Standard, Version 3.0, chapter 5.16 Identifiers). 3740 * True for characters with general categories "L" (letters) and "Nl" (letter numbers). 3741 * 3742 * Same as java.lang.Character.isUnicodeIdentifierStart(). 3743 * Same as UCHAR_ID_START 3744 * 3745 * @param c the code point to be tested 3746 * @return true if the code point may start an identifier 3747 * 3748 * @see UCHAR_ID_START 3749 * @see u_isalpha 3750 * @see u_isIDPart 3751 * @stable ICU 2.0 3752 */ 3753 U_CAPI UBool U_EXPORT2 3754 u_isIDStart(UChar32 c) __INTRODUCED_IN(31); 3755 3756 3757 3758 /** 3759 * Determines if the specified character is permissible 3760 * in an identifier according to Java. 3761 * True for characters with general categories "L" (letters), 3762 * "Nl" (letter numbers), "Nd" (decimal digits), 3763 * "Mc" and "Mn" (combining marks), "Pc" (connecting punctuation), and 3764 * u_isIDIgnorable(c). 3765 * 3766 * Same as java.lang.Character.isUnicodeIdentifierPart(). 3767 * Almost the same as Unicode's ID_Continue (UCHAR_ID_CONTINUE) 3768 * except that Unicode recommends to ignore Cf which is less than 3769 * u_isIDIgnorable(c). 3770 * 3771 * @param c the code point to be tested 3772 * @return true if the code point may occur in an identifier according to Java 3773 * 3774 * @see UCHAR_ID_CONTINUE 3775 * @see u_isIDStart 3776 * @see u_isIDIgnorable 3777 * @stable ICU 2.0 3778 */ 3779 U_CAPI UBool U_EXPORT2 3780 u_isIDPart(UChar32 c) __INTRODUCED_IN(31); 3781 3782 3783 3784 /** 3785 * Determines if the specified character should be regarded 3786 * as an ignorable character in an identifier, 3787 * according to Java. 3788 * True for characters with general category "Cf" (format controls) as well as 3789 * non-whitespace ISO controls 3790 * (U+0000..U+0008, U+000E..U+001B, U+007F..U+009F). 3791 * 3792 * Same as java.lang.Character.isIdentifierIgnorable(). 3793 * 3794 * Note that Unicode just recommends to ignore Cf (format controls). 3795 * 3796 * @param c the code point to be tested 3797 * @return true if the code point is ignorable in identifiers according to Java 3798 * 3799 * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT 3800 * @see u_isIDStart 3801 * @see u_isIDPart 3802 * @stable ICU 2.0 3803 */ 3804 U_CAPI UBool U_EXPORT2 3805 u_isIDIgnorable(UChar32 c) __INTRODUCED_IN(31); 3806 3807 3808 3809 /** 3810 * Determines if the specified character is permissible as the 3811 * first character in a Java identifier. 3812 * In addition to u_isIDStart(c), true for characters with 3813 * general categories "Sc" (currency symbols) and "Pc" (connecting punctuation). 3814 * 3815 * Same as java.lang.Character.isJavaIdentifierStart(). 3816 * 3817 * @param c the code point to be tested 3818 * @return true if the code point may start a Java identifier 3819 * 3820 * @see u_isJavaIDPart 3821 * @see u_isalpha 3822 * @see u_isIDStart 3823 * @stable ICU 2.0 3824 */ 3825 U_CAPI UBool U_EXPORT2 3826 u_isJavaIDStart(UChar32 c) __INTRODUCED_IN(31); 3827 3828 3829 3830 /** 3831 * Determines if the specified character is permissible 3832 * in a Java identifier. 3833 * In addition to u_isIDPart(c), true for characters with 3834 * general category "Sc" (currency symbols). 3835 * 3836 * Same as java.lang.Character.isJavaIdentifierPart(). 3837 * 3838 * @param c the code point to be tested 3839 * @return true if the code point may occur in a Java identifier 3840 * 3841 * @see u_isIDIgnorable 3842 * @see u_isJavaIDStart 3843 * @see u_isalpha 3844 * @see u_isdigit 3845 * @see u_isIDPart 3846 * @stable ICU 2.0 3847 */ 3848 U_CAPI UBool U_EXPORT2 3849 u_isJavaIDPart(UChar32 c) __INTRODUCED_IN(31); 3850 3851 3852 3853 /** 3854 * The given character is mapped to its lowercase equivalent according to 3855 * UnicodeData.txt; if the character has no lowercase equivalent, the character 3856 * itself is returned. 3857 * 3858 * Same as java.lang.Character.toLowerCase(). 3859 * 3860 * This function only returns the simple, single-code point case mapping. 3861 * Full case mappings should be used whenever possible because they produce 3862 * better results by working on whole strings. 3863 * They take into account the string context and the language and can map 3864 * to a result string with a different length as appropriate. 3865 * Full case mappings are applied by the string case mapping functions, 3866 * see ustring.h and the UnicodeString class. 3867 * See also the User Guide chapter on C/POSIX migration: 3868 * http://icu-project.org/userguide/posix.html#case_mappings 3869 * 3870 * @param c the code point to be mapped 3871 * @return the Simple_Lowercase_Mapping of the code point, if any; 3872 * otherwise the code point itself. 3873 * @stable ICU 2.0 3874 */ 3875 U_CAPI UChar32 U_EXPORT2 3876 u_tolower(UChar32 c) __INTRODUCED_IN(31); 3877 3878 3879 3880 /** 3881 * The given character is mapped to its uppercase equivalent according to UnicodeData.txt; 3882 * if the character has no uppercase equivalent, the character itself is 3883 * returned. 3884 * 3885 * Same as java.lang.Character.toUpperCase(). 3886 * 3887 * This function only returns the simple, single-code point case mapping. 3888 * Full case mappings should be used whenever possible because they produce 3889 * better results by working on whole strings. 3890 * They take into account the string context and the language and can map 3891 * to a result string with a different length as appropriate. 3892 * Full case mappings are applied by the string case mapping functions, 3893 * see ustring.h and the UnicodeString class. 3894 * See also the User Guide chapter on C/POSIX migration: 3895 * http://icu-project.org/userguide/posix.html#case_mappings 3896 * 3897 * @param c the code point to be mapped 3898 * @return the Simple_Uppercase_Mapping of the code point, if any; 3899 * otherwise the code point itself. 3900 * @stable ICU 2.0 3901 */ 3902 U_CAPI UChar32 U_EXPORT2 3903 u_toupper(UChar32 c) __INTRODUCED_IN(31); 3904 3905 3906 3907 /** 3908 * The given character is mapped to its titlecase equivalent 3909 * according to UnicodeData.txt; 3910 * if none is defined, the character itself is returned. 3911 * 3912 * Same as java.lang.Character.toTitleCase(). 3913 * 3914 * This function only returns the simple, single-code point case mapping. 3915 * Full case mappings should be used whenever possible because they produce 3916 * better results by working on whole strings. 3917 * They take into account the string context and the language and can map 3918 * to a result string with a different length as appropriate. 3919 * Full case mappings are applied by the string case mapping functions, 3920 * see ustring.h and the UnicodeString class. 3921 * See also the User Guide chapter on C/POSIX migration: 3922 * http://icu-project.org/userguide/posix.html#case_mappings 3923 * 3924 * @param c the code point to be mapped 3925 * @return the Simple_Titlecase_Mapping of the code point, if any; 3926 * otherwise the code point itself. 3927 * @stable ICU 2.0 3928 */ 3929 U_CAPI UChar32 U_EXPORT2 3930 u_totitle(UChar32 c) __INTRODUCED_IN(31); 3931 3932 3933 3934 /** 3935 * The given character is mapped to its case folding equivalent according to 3936 * UnicodeData.txt and CaseFolding.txt; 3937 * if the character has no case folding equivalent, the character 3938 * itself is returned. 3939 * 3940 * This function only returns the simple, single-code point case mapping. 3941 * Full case mappings should be used whenever possible because they produce 3942 * better results by working on whole strings. 3943 * They take into account the string context and the language and can map 3944 * to a result string with a different length as appropriate. 3945 * Full case mappings are applied by the string case mapping functions, 3946 * see ustring.h and the UnicodeString class. 3947 * See also the User Guide chapter on C/POSIX migration: 3948 * http://icu-project.org/userguide/posix.html#case_mappings 3949 * 3950 * @param c the code point to be mapped 3951 * @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I 3952 * @return the Simple_Case_Folding of the code point, if any; 3953 * otherwise the code point itself. 3954 * @stable ICU 2.0 3955 */ 3956 U_CAPI UChar32 U_EXPORT2 3957 u_foldCase(UChar32 c, uint32_t options) __INTRODUCED_IN(31); 3958 3959 3960 3961 /** 3962 * Returns the decimal digit value of the code point in the 3963 * specified radix. 3964 * 3965 * If the radix is not in the range <code>2<=radix<=36</code> or if the 3966 * value of <code>c</code> is not a valid digit in the specified 3967 * radix, <code>-1</code> is returned. A character is a valid digit 3968 * if at least one of the following is true: 3969 * <ul> 3970 * <li>The character has a decimal digit value. 3971 * Such characters have the general category "Nd" (decimal digit numbers) 3972 * and a Numeric_Type of Decimal. 3973 * In this case the value is the character's decimal digit value.</li> 3974 * <li>The character is one of the uppercase Latin letters 3975 * <code>'A'</code> through <code>'Z'</code>. 3976 * In this case the value is <code>c-'A'+10</code>.</li> 3977 * <li>The character is one of the lowercase Latin letters 3978 * <code>'a'</code> through <code>'z'</code>. 3979 * In this case the value is <code>ch-'a'+10</code>.</li> 3980 * <li>Latin letters from both the ASCII range (0061..007A, 0041..005A) 3981 * as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A) 3982 * are recognized.</li> 3983 * </ul> 3984 * 3985 * Same as java.lang.Character.digit(). 3986 * 3987 * @param ch the code point to be tested. 3988 * @param radix the radix. 3989 * @return the numeric value represented by the character in the 3990 * specified radix, 3991 * or -1 if there is no value or if the value exceeds the radix. 3992 * 3993 * @see UCHAR_NUMERIC_TYPE 3994 * @see u_forDigit 3995 * @see u_charDigitValue 3996 * @see u_isdigit 3997 * @stable ICU 2.0 3998 */ 3999 U_CAPI int32_t U_EXPORT2 4000 u_digit(UChar32 ch, int8_t radix) __INTRODUCED_IN(31); 4001 4002 4003 4004 /** 4005 * Determines the character representation for a specific digit in 4006 * the specified radix. If the value of <code>radix</code> is not a 4007 * valid radix, or the value of <code>digit</code> is not a valid 4008 * digit in the specified radix, the null character 4009 * (<code>U+0000</code>) is returned. 4010 * <p> 4011 * The <code>radix</code> argument is valid if it is greater than or 4012 * equal to 2 and less than or equal to 36. 4013 * The <code>digit</code> argument is valid if 4014 * <code>0 <= digit < radix</code>. 4015 * <p> 4016 * If the digit is less than 10, then 4017 * <code>'0' + digit</code> is returned. Otherwise, the value 4018 * <code>'a' + digit - 10</code> is returned. 4019 * 4020 * Same as java.lang.Character.forDigit(). 4021 * 4022 * @param digit the number to convert to a character. 4023 * @param radix the radix. 4024 * @return the <code>char</code> representation of the specified digit 4025 * in the specified radix. 4026 * 4027 * @see u_digit 4028 * @see u_charDigitValue 4029 * @see u_isdigit 4030 * @stable ICU 2.0 4031 */ 4032 U_CAPI UChar32 U_EXPORT2 4033 u_forDigit(int32_t digit, int8_t radix) __INTRODUCED_IN(31); 4034 4035 4036 4037 /** 4038 * Get the "age" of the code point. 4039 * The "age" is the Unicode version when the code point was first 4040 * designated (as a non-character or for Private Use) 4041 * or assigned a character. 4042 * This can be useful to avoid emitting code points to receiving 4043 * processes that do not accept newer characters. 4044 * The data is from the UCD file DerivedAge.txt. 4045 * 4046 * @param c The code point. 4047 * @param versionArray The Unicode version number array, to be filled in. 4048 * 4049 * @stable ICU 2.1 4050 */ 4051 U_CAPI void U_EXPORT2 4052 u_charAge(UChar32 c, UVersionInfo versionArray) __INTRODUCED_IN(31); 4053 4054 4055 4056 /** 4057 * Gets the Unicode version information. 4058 * The version array is filled in with the version information 4059 * for the Unicode standard that is currently used by ICU. 4060 * For example, Unicode version 3.1.1 is represented as an array with 4061 * the values { 3, 1, 1, 0 }. 4062 * 4063 * @param versionArray an output array that will be filled in with 4064 * the Unicode version number 4065 * @stable ICU 2.0 4066 */ 4067 U_CAPI void U_EXPORT2 4068 u_getUnicodeVersion(UVersionInfo versionArray) __INTRODUCED_IN(31); 4069 4070 4071 4072 #if !UCONFIG_NO_NORMALIZATION 4073 4074 4075 #endif 4076 4077 4078 U_CDECL_END 4079 4080 #endif /*_UCHAR*/ 4081 /*eof*/ 4082