2 **********************************************************************
3 * Copyright (C) 1997-2016, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
9 * Modification History:
11 * Date Name Description
12 * 04/02/97 aliu Creation.
13 * 03/29/99 helena Updated for C APIs.
14 * 4/15/99 Madhu Updated for C Implementation and Javadoc
15 * 5/20/99 Madhu Added the function u_getVersion()
16 * 8/19/1999 srl Upgraded scripts to Unicode 3.0
17 * 8/27/1999 schererm UCharDirection constants: U_...
18 * 11/11/1999 weiv added u_isalnum(), cleaned comments
19 * 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion().
20 ******************************************************************************
26 #include "unicode/utypes.h"
30 /*==========================================================================*/
31 /* Unicode version number */
32 /*==========================================================================*/
34 * Unicode version number, default for the current ICU version.
35 * The actual Unicode Character Database (UCD) data is stored in uprops.dat
36 * and may be generated from UCD files from a different Unicode version.
37 * Call u_getUnicodeVersion to get the actual Unicode version of the data.
39 * @see u_getUnicodeVersion
42 #define U_UNICODE_VERSION "8.0"
46 * \brief C API: Unicode Properties
48 * This C API provides low-level access to the Unicode Character Database.
49 * In addition to raw property values, some convenience functions calculate
50 * derived properties, for example for Java-style programming.
52 * Unicode assigns each code point (not just assigned character) values for
54 * Most of them are simple boolean flags, or constants from a small enumerated list.
55 * For some properties, values are strings or other relatively more complex types.
57 * For more information see
58 * "About the Unicode Character Database" (http://www.unicode.org/ucd/)
59 * and the ICU User Guide chapter on Properties (http://icu-project.org/userguide/properties.html).
61 * Many functions are designed to match java.lang.Character functions.
62 * See the individual function documentation,
63 * and see the JDK 1.4 java.lang.Character documentation
64 * at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html
66 * There are also functions that provide easy migration from C/POSIX functions
67 * like isblank(). Their use is generally discouraged because the C/POSIX
68 * standards do not define their semantics beyond the ASCII range, which means
69 * that different implementations exhibit very different behavior.
70 * Instead, Unicode properties should be used directly.
72 * There are also only a few, broad C/POSIX character classes, and they tend
73 * to be used for conflicting purposes. For example, the "isalpha()" class
74 * is sometimes used to determine word boundaries, while a more sophisticated
75 * approach would at least distinguish initial letters from continuation
76 * characters (the latter including combining marks).
77 * (In ICU, BreakIterator is the most sophisticated API for word boundaries.)
78 * Another example: There is no "istitle()" class for titlecase characters.
80 * ICU 3.4 and later provides API access for all twelve C/POSIX character classes.
81 * ICU implements them according to the Standard Recommendations in
82 * Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions
83 * (http://www.unicode.org/reports/tr18/#Compatibility_Properties).
85 * API access for C/POSIX character classes is as follows:
86 * - alpha: u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC)
87 * - lower: u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE)
88 * - upper: u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE)
89 * - punct: u_ispunct(c)
90 * - digit: u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER
91 * - xdigit: u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT)
92 * - alnum: u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM)
93 * - space: u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE)
94 * - blank: u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK)
95 * - cntrl: u_charType(c)==U_CONTROL_CHAR
96 * - graph: u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH)
97 * - print: u_hasBinaryProperty(c, UCHAR_POSIX_PRINT)
99 * Note: Some of the u_isxyz() functions in uchar.h predate, and do not match,
100 * the Standard Recommendations in UTS #18. Instead, they match Java
101 * functions according to their API documentation.
104 * The C/POSIX character classes are also available in UnicodeSet patterns,
105 * using patterns like [:graph:] or \p{graph}.
108 * Note: There are several ICU whitespace functions.
110 * - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property;
111 * most of general categories "Z" (separators) + most whitespace ISO controls
112 * (including no-break spaces, but excluding IS1..IS4 and ZWSP)
113 * - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces
114 * - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces)
115 * - u_isspace: Z + whitespace ISO controls (including no-break spaces)
116 * - u_isblank: "horizontal spaces" = TAB + Zs - ZWSP
123 /** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */
124 #define UCHAR_MIN_VALUE 0
127 * The highest Unicode code point value (scalar value) according to
128 * The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up).
129 * For a single character, UChar32 is a simple type that can hold any code point value.
134 #define UCHAR_MAX_VALUE 0x10ffff
137 * Get a single-bit bit set (a flag) from a bit number 0..31.
140 #define U_MASK(x) ((uint32_t)1<<(x))
143 * Selection constants for Unicode properties.
144 * These constants are used in functions like u_hasBinaryProperty to select
145 * one of the Unicode properties.
147 * The properties APIs are intended to reflect Unicode properties as defined
148 * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
149 * For details about the properties see http://www.unicode.org/ucd/ .
150 * For names of Unicode properties see the UCD file PropertyAliases.txt.
152 * Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2,
153 * then properties marked with "new in Unicode 3.2" are not or not fully available.
154 * Check u_getUnicodeVersion to be sure.
156 * @see u_hasBinaryProperty
157 * @see u_getIntPropertyValue
158 * @see u_getUnicodeVersion
161 typedef enum UProperty
{
163 * Note: UProperty constants are parsed by preparseucd.py.
164 * It matches lines like
165 * UCHAR_<Unicode property name>=<integer>,
168 /* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that
169 debuggers display UCHAR_ALPHABETIC as the symbolic name for 0,
170 rather than UCHAR_BINARY_START. Likewise for other *_START
173 /** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha.
174 Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */
176 /** First constant for binary Unicode properties. @stable ICU 2.1 */
177 UCHAR_BINARY_START
=UCHAR_ALPHABETIC
,
178 /** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */
179 UCHAR_ASCII_HEX_DIGIT
=1,
180 /** Binary property Bidi_Control.
181 Format controls which have specific functions
182 in the Bidi Algorithm. @stable ICU 2.1 */
183 UCHAR_BIDI_CONTROL
=2,
184 /** Binary property Bidi_Mirrored.
185 Characters that may change display in RTL text.
186 Same as u_isMirrored.
187 See Bidi Algorithm, UTR 9. @stable ICU 2.1 */
188 UCHAR_BIDI_MIRRORED
=3,
189 /** Binary property Dash. Variations of dashes. @stable ICU 2.1 */
191 /** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2).
192 Ignorable in most processing.
193 <2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */
194 UCHAR_DEFAULT_IGNORABLE_CODE_POINT
=5,
195 /** Binary property Deprecated (new in Unicode 3.2).
196 The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */
198 /** Binary property Diacritic. Characters that linguistically modify
199 the meaning of another character to which they apply. @stable ICU 2.1 */
201 /** Binary property Extender.
202 Extend the value or shape of a preceding alphabetic character,
203 e.g., length and iteration marks. @stable ICU 2.1 */
205 /** Binary property Full_Composition_Exclusion.
206 CompositionExclusions.txt+Singleton Decompositions+
207 Non-Starter Decompositions. @stable ICU 2.1 */
208 UCHAR_FULL_COMPOSITION_EXCLUSION
=9,
209 /** Binary property Grapheme_Base (new in Unicode 3.2).
210 For programmatic determination of grapheme cluster boundaries.
211 [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */
212 UCHAR_GRAPHEME_BASE
=10,
213 /** Binary property Grapheme_Extend (new in Unicode 3.2).
214 For programmatic determination of grapheme cluster boundaries.
215 Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */
216 UCHAR_GRAPHEME_EXTEND
=11,
217 /** Binary property Grapheme_Link (new in Unicode 3.2).
218 For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */
219 UCHAR_GRAPHEME_LINK
=12,
220 /** Binary property Hex_Digit.
221 Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */
223 /** Binary property Hyphen. Dashes used to mark connections
224 between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */
226 /** Binary property ID_Continue.
227 Characters that can continue an identifier.
228 DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out."
229 ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */
230 UCHAR_ID_CONTINUE
=15,
231 /** Binary property ID_Start.
232 Characters that can start an identifier.
233 Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */
235 /** Binary property Ideographic.
236 CJKV ideographs. @stable ICU 2.1 */
237 UCHAR_IDEOGRAPHIC
=17,
238 /** Binary property IDS_Binary_Operator (new in Unicode 3.2).
239 For programmatic determination of
240 Ideographic Description Sequences. @stable ICU 2.1 */
241 UCHAR_IDS_BINARY_OPERATOR
=18,
242 /** Binary property IDS_Trinary_Operator (new in Unicode 3.2).
243 For programmatic determination of
244 Ideographic Description Sequences. @stable ICU 2.1 */
245 UCHAR_IDS_TRINARY_OPERATOR
=19,
246 /** Binary property Join_Control.
247 Format controls for cursive joining and ligation. @stable ICU 2.1 */
248 UCHAR_JOIN_CONTROL
=20,
249 /** Binary property Logical_Order_Exception (new in Unicode 3.2).
250 Characters that do not use logical order and
251 require special handling in most processing. @stable ICU 2.1 */
252 UCHAR_LOGICAL_ORDER_EXCEPTION
=21,
253 /** Binary property Lowercase. Same as u_isULowercase, different from u_islower.
254 Ll+Other_Lowercase @stable ICU 2.1 */
256 /** Binary property Math. Sm+Other_Math @stable ICU 2.1 */
258 /** Binary property Noncharacter_Code_Point.
259 Code points that are explicitly defined as illegal
260 for the encoding of characters. @stable ICU 2.1 */
261 UCHAR_NONCHARACTER_CODE_POINT
=24,
262 /** Binary property Quotation_Mark. @stable ICU 2.1 */
263 UCHAR_QUOTATION_MARK
=25,
264 /** Binary property Radical (new in Unicode 3.2).
265 For programmatic determination of
266 Ideographic Description Sequences. @stable ICU 2.1 */
268 /** Binary property Soft_Dotted (new in Unicode 3.2).
269 Characters with a "soft dot", like i or j.
270 An accent placed on these characters causes
271 the dot to disappear. @stable ICU 2.1 */
272 UCHAR_SOFT_DOTTED
=27,
273 /** Binary property Terminal_Punctuation.
274 Punctuation characters that generally mark
275 the end of textual units. @stable ICU 2.1 */
276 UCHAR_TERMINAL_PUNCTUATION
=28,
277 /** Binary property Unified_Ideograph (new in Unicode 3.2).
278 For programmatic determination of
279 Ideographic Description Sequences. @stable ICU 2.1 */
280 UCHAR_UNIFIED_IDEOGRAPH
=29,
281 /** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper.
282 Lu+Other_Uppercase @stable ICU 2.1 */
284 /** Binary property White_Space.
285 Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace.
286 Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */
287 UCHAR_WHITE_SPACE
=31,
288 /** Binary property XID_Continue.
289 ID_Continue modified to allow closure under
290 normalization forms NFKC and NFKD. @stable ICU 2.1 */
291 UCHAR_XID_CONTINUE
=32,
292 /** Binary property XID_Start. ID_Start modified to allow
293 closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */
295 /** Binary property Case_Sensitive. Either the source of a case
296 mapping or _in_ the target of a case mapping. Not the same as
297 the general category Cased_Letter. @stable ICU 2.6 */
298 UCHAR_CASE_SENSITIVE
=34,
299 /** Binary property STerm (new in Unicode 4.0.1).
300 Sentence Terminal. Used in UAX #29: Text Boundaries
301 (http://www.unicode.org/reports/tr29/)
304 /** Binary property Variation_Selector (new in Unicode 4.0.1).
305 Indicates all those characters that qualify as Variation Selectors.
306 For details on the behavior of these characters,
307 see StandardizedVariants.html and 15.6 Variation Selectors.
309 UCHAR_VARIATION_SELECTOR
=36,
310 /** Binary property NFD_Inert.
311 ICU-specific property for characters that are inert under NFD,
312 i.e., they do not interact with adjacent characters.
313 See the documentation for the Normalizer2 class and the
314 Normalizer2::isInert() method.
317 /** Binary property NFKD_Inert.
318 ICU-specific property for characters that are inert under NFKD,
319 i.e., they do not interact with adjacent characters.
320 See the documentation for the Normalizer2 class and the
321 Normalizer2::isInert() method.
324 /** Binary property NFC_Inert.
325 ICU-specific property for characters that are inert under NFC,
326 i.e., they do not interact with adjacent characters.
327 See the documentation for the Normalizer2 class and the
328 Normalizer2::isInert() method.
331 /** Binary property NFKC_Inert.
332 ICU-specific property for characters that are inert under NFKC,
333 i.e., they do not interact with adjacent characters.
334 See the documentation for the Normalizer2 class and the
335 Normalizer2::isInert() method.
338 /** Binary Property Segment_Starter.
339 ICU-specific property for characters that are starters in terms of
340 Unicode normalization and combining character sequences.
341 They have ccc=0 and do not occur in non-initial position of the
342 canonical decomposition of any character
343 (like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)).
344 ICU uses this property for segmenting a string for generating a set of
345 canonically equivalent strings, e.g. for canonical closure while
346 processing collation tailoring rules.
348 UCHAR_SEGMENT_STARTER
=41,
349 /** Binary property Pattern_Syntax (new in Unicode 4.1).
350 See UAX #31 Identifier and Pattern Syntax
351 (http://www.unicode.org/reports/tr31/)
353 UCHAR_PATTERN_SYNTAX
=42,
354 /** Binary property Pattern_White_Space (new in Unicode 4.1).
355 See UAX #31 Identifier and Pattern Syntax
356 (http://www.unicode.org/reports/tr31/)
358 UCHAR_PATTERN_WHITE_SPACE
=43,
359 /** Binary property alnum (a C/POSIX character class).
360 Implemented according to the UTS #18 Annex C Standard Recommendation.
361 See the uchar.h file documentation.
363 UCHAR_POSIX_ALNUM
=44,
364 /** Binary property blank (a C/POSIX character class).
365 Implemented according to the UTS #18 Annex C Standard Recommendation.
366 See the uchar.h file documentation.
368 UCHAR_POSIX_BLANK
=45,
369 /** Binary property graph (a C/POSIX character class).
370 Implemented according to the UTS #18 Annex C Standard Recommendation.
371 See the uchar.h file documentation.
373 UCHAR_POSIX_GRAPH
=46,
374 /** Binary property print (a C/POSIX character class).
375 Implemented according to the UTS #18 Annex C Standard Recommendation.
376 See the uchar.h file documentation.
378 UCHAR_POSIX_PRINT
=47,
379 /** Binary property xdigit (a C/POSIX character class).
380 Implemented according to the UTS #18 Annex C Standard Recommendation.
381 See the uchar.h file documentation.
383 UCHAR_POSIX_XDIGIT
=48,
384 /** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */
386 /** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */
387 UCHAR_CASE_IGNORABLE
=50,
388 /** Binary property Changes_When_Lowercased. @stable ICU 4.4 */
389 UCHAR_CHANGES_WHEN_LOWERCASED
=51,
390 /** Binary property Changes_When_Uppercased. @stable ICU 4.4 */
391 UCHAR_CHANGES_WHEN_UPPERCASED
=52,
392 /** Binary property Changes_When_Titlecased. @stable ICU 4.4 */
393 UCHAR_CHANGES_WHEN_TITLECASED
=53,
394 /** Binary property Changes_When_Casefolded. @stable ICU 4.4 */
395 UCHAR_CHANGES_WHEN_CASEFOLDED
=54,
396 /** Binary property Changes_When_Casemapped. @stable ICU 4.4 */
397 UCHAR_CHANGES_WHEN_CASEMAPPED
=55,
398 /** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */
399 UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED
=56,
400 #ifndef U_HIDE_DRAFT_API
402 * Binary property Emoji.
403 * See http://www.unicode.org/reports/tr51/#Emoji_Properties
409 * Binary property Emoji_Presentation.
410 * See http://www.unicode.org/reports/tr51/#Emoji_Properties
414 UCHAR_EMOJI_PRESENTATION
=58,
416 * Binary property Emoji_Modifier.
417 * See http://www.unicode.org/reports/tr51/#Emoji_Properties
421 UCHAR_EMOJI_MODIFIER
=59,
423 * Binary property Emoji_Modifier_Base.
424 * See http://www.unicode.org/reports/tr51/#Emoji_Properties
428 UCHAR_EMOJI_MODIFIER_BASE
=60,
429 #endif /* U_HIDE_DRAFT_API */
430 /** One more than the last constant for binary Unicode properties. @stable ICU 2.1 */
431 UCHAR_BINARY_LIMIT
=61,
433 /** Enumerated property Bidi_Class.
434 Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */
435 UCHAR_BIDI_CLASS
=0x1000,
436 /** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */
437 UCHAR_INT_START
=UCHAR_BIDI_CLASS
,
438 /** Enumerated property Block.
439 Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */
441 /** Enumerated property Canonical_Combining_Class.
442 Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */
443 UCHAR_CANONICAL_COMBINING_CLASS
=0x1002,
444 /** Enumerated property Decomposition_Type.
445 Returns UDecompositionType values. @stable ICU 2.2 */
446 UCHAR_DECOMPOSITION_TYPE
=0x1003,
447 /** Enumerated property East_Asian_Width.
448 See http://www.unicode.org/reports/tr11/
449 Returns UEastAsianWidth values. @stable ICU 2.2 */
450 UCHAR_EAST_ASIAN_WIDTH
=0x1004,
451 /** Enumerated property General_Category.
452 Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */
453 UCHAR_GENERAL_CATEGORY
=0x1005,
454 /** Enumerated property Joining_Group.
455 Returns UJoiningGroup values. @stable ICU 2.2 */
456 UCHAR_JOINING_GROUP
=0x1006,
457 /** Enumerated property Joining_Type.
458 Returns UJoiningType values. @stable ICU 2.2 */
459 UCHAR_JOINING_TYPE
=0x1007,
460 /** Enumerated property Line_Break.
461 Returns ULineBreak values. @stable ICU 2.2 */
462 UCHAR_LINE_BREAK
=0x1008,
463 /** Enumerated property Numeric_Type.
464 Returns UNumericType values. @stable ICU 2.2 */
465 UCHAR_NUMERIC_TYPE
=0x1009,
466 /** Enumerated property Script.
467 Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */
469 /** Enumerated property Hangul_Syllable_Type, new in Unicode 4.
470 Returns UHangulSyllableType values. @stable ICU 2.6 */
471 UCHAR_HANGUL_SYLLABLE_TYPE
=0x100B,
472 /** Enumerated property NFD_Quick_Check.
473 Returns UNormalizationCheckResult values. @stable ICU 3.0 */
474 UCHAR_NFD_QUICK_CHECK
=0x100C,
475 /** Enumerated property NFKD_Quick_Check.
476 Returns UNormalizationCheckResult values. @stable ICU 3.0 */
477 UCHAR_NFKD_QUICK_CHECK
=0x100D,
478 /** Enumerated property NFC_Quick_Check.
479 Returns UNormalizationCheckResult values. @stable ICU 3.0 */
480 UCHAR_NFC_QUICK_CHECK
=0x100E,
481 /** Enumerated property NFKC_Quick_Check.
482 Returns UNormalizationCheckResult values. @stable ICU 3.0 */
483 UCHAR_NFKC_QUICK_CHECK
=0x100F,
484 /** Enumerated property Lead_Canonical_Combining_Class.
485 ICU-specific property for the ccc of the first code point
486 of the decomposition, or lccc(c)=ccc(NFD(c)[0]).
487 Useful for checking for canonically ordered text;
488 see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .
489 Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */
490 UCHAR_LEAD_CANONICAL_COMBINING_CLASS
=0x1010,
491 /** Enumerated property Trail_Canonical_Combining_Class.
492 ICU-specific property for the ccc of the last code point
493 of the decomposition, or tccc(c)=ccc(NFD(c)[last]).
494 Useful for checking for canonically ordered text;
495 see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .
496 Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */
497 UCHAR_TRAIL_CANONICAL_COMBINING_CLASS
=0x1011,
498 /** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1).
499 Used in UAX #29: Text Boundaries
500 (http://www.unicode.org/reports/tr29/)
501 Returns UGraphemeClusterBreak values. @stable ICU 3.4 */
502 UCHAR_GRAPHEME_CLUSTER_BREAK
=0x1012,
503 /** Enumerated property Sentence_Break (new in Unicode 4.1).
504 Used in UAX #29: Text Boundaries
505 (http://www.unicode.org/reports/tr29/)
506 Returns USentenceBreak values. @stable ICU 3.4 */
507 UCHAR_SENTENCE_BREAK
=0x1013,
508 /** Enumerated property Word_Break (new in Unicode 4.1).
509 Used in UAX #29: Text Boundaries
510 (http://www.unicode.org/reports/tr29/)
511 Returns UWordBreakValues values. @stable ICU 3.4 */
512 UCHAR_WORD_BREAK
=0x1014,
513 /** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3).
514 Used in UAX #9: Unicode Bidirectional Algorithm
515 (http://www.unicode.org/reports/tr9/)
516 Returns UBidiPairedBracketType values. @stable ICU 52 */
517 UCHAR_BIDI_PAIRED_BRACKET_TYPE
=0x1015,
518 /** One more than the last constant for enumerated/integer Unicode properties. @stable ICU 2.2 */
519 UCHAR_INT_LIMIT
=0x1016,
521 /** Bitmask property General_Category_Mask.
522 This is the General_Category property returned as a bit mask.
523 When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)),
524 returns bit masks for UCharCategory values where exactly one bit is set.
525 When used with u_getPropertyValueName() and u_getPropertyValueEnum(),
526 a multi-bit mask is used for sets of categories like "Letters".
527 Mask values should be cast to uint32_t.
529 UCHAR_GENERAL_CATEGORY_MASK
=0x2000,
530 /** First constant for bit-mask Unicode properties. @stable ICU 2.4 */
531 UCHAR_MASK_START
=UCHAR_GENERAL_CATEGORY_MASK
,
532 /** One more than the last constant for bit-mask Unicode properties. @stable ICU 2.4 */
533 UCHAR_MASK_LIMIT
=0x2001,
535 /** Double property Numeric_Value.
536 Corresponds to u_getNumericValue. @stable ICU 2.4 */
537 UCHAR_NUMERIC_VALUE
=0x3000,
538 /** First constant for double Unicode properties. @stable ICU 2.4 */
539 UCHAR_DOUBLE_START
=UCHAR_NUMERIC_VALUE
,
540 /** One more than the last constant for double Unicode properties. @stable ICU 2.4 */
541 UCHAR_DOUBLE_LIMIT
=0x3001,
543 /** String property Age.
544 Corresponds to u_charAge. @stable ICU 2.4 */
546 /** First constant for string Unicode properties. @stable ICU 2.4 */
547 UCHAR_STRING_START
=UCHAR_AGE
,
548 /** String property Bidi_Mirroring_Glyph.
549 Corresponds to u_charMirror. @stable ICU 2.4 */
550 UCHAR_BIDI_MIRRORING_GLYPH
=0x4001,
551 /** String property Case_Folding.
552 Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */
553 UCHAR_CASE_FOLDING
=0x4002,
554 #ifndef U_HIDE_DEPRECATED_API
555 /** Deprecated string property ISO_Comment.
556 Corresponds to u_getISOComment. @deprecated ICU 49 */
557 UCHAR_ISO_COMMENT
=0x4003,
558 #endif /* U_HIDE_DEPRECATED_API */
559 /** String property Lowercase_Mapping.
560 Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */
561 UCHAR_LOWERCASE_MAPPING
=0x4004,
562 /** String property Name.
563 Corresponds to u_charName. @stable ICU 2.4 */
565 /** String property Simple_Case_Folding.
566 Corresponds to u_foldCase. @stable ICU 2.4 */
567 UCHAR_SIMPLE_CASE_FOLDING
=0x4006,
568 /** String property Simple_Lowercase_Mapping.
569 Corresponds to u_tolower. @stable ICU 2.4 */
570 UCHAR_SIMPLE_LOWERCASE_MAPPING
=0x4007,
571 /** String property Simple_Titlecase_Mapping.
572 Corresponds to u_totitle. @stable ICU 2.4 */
573 UCHAR_SIMPLE_TITLECASE_MAPPING
=0x4008,
574 /** String property Simple_Uppercase_Mapping.
575 Corresponds to u_toupper. @stable ICU 2.4 */
576 UCHAR_SIMPLE_UPPERCASE_MAPPING
=0x4009,
577 /** String property Titlecase_Mapping.
578 Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */
579 UCHAR_TITLECASE_MAPPING
=0x400A,
580 #ifndef U_HIDE_DEPRECATED_API
581 /** String property Unicode_1_Name.
582 This property is of little practical value.
583 Beginning with ICU 49, ICU APIs return an empty string for this property.
584 Corresponds to u_charName(U_UNICODE_10_CHAR_NAME). @deprecated ICU 49 */
585 UCHAR_UNICODE_1_NAME
=0x400B,
586 #endif /* U_HIDE_DEPRECATED_API */
587 /** String property Uppercase_Mapping.
588 Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */
589 UCHAR_UPPERCASE_MAPPING
=0x400C,
590 /** String property Bidi_Paired_Bracket (new in Unicode 6.3).
591 Corresponds to u_getBidiPairedBracket. @stable ICU 52 */
592 UCHAR_BIDI_PAIRED_BRACKET
=0x400D,
593 /** One more than the last constant for string Unicode properties. @stable ICU 2.4 */
594 UCHAR_STRING_LIMIT
=0x400E,
596 /** Miscellaneous property Script_Extensions (new in Unicode 6.0).
597 Some characters are commonly used in multiple scripts.
598 For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
599 Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h.
601 UCHAR_SCRIPT_EXTENSIONS
=0x7000,
602 /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */
603 UCHAR_OTHER_PROPERTY_START
=UCHAR_SCRIPT_EXTENSIONS
,
604 /** One more than the last constant for Unicode properties with unusual value types.
606 UCHAR_OTHER_PROPERTY_LIMIT
=0x7001,
607 /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */
608 UCHAR_INVALID_CODE
= -1
612 * Data for enumerated Unicode general category types.
613 * See http://www.unicode.org/Public/UNIDATA/UnicodeData.html .
616 typedef enum UCharCategory
619 * Note: UCharCategory constants and their API comments are parsed by preparseucd.py.
620 * It matches pairs of lines like
621 * / ** <Unicode 2-letter General_Category value> comment... * /
622 * U_<[A-Z_]+> = <integer>,
625 /** Non-category for unassigned and non-character code points. @stable ICU 2.0 */
627 /** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */
628 U_GENERAL_OTHER_TYPES
= 0,
629 /** Lu @stable ICU 2.0 */
630 U_UPPERCASE_LETTER
= 1,
631 /** Ll @stable ICU 2.0 */
632 U_LOWERCASE_LETTER
= 2,
633 /** Lt @stable ICU 2.0 */
634 U_TITLECASE_LETTER
= 3,
635 /** Lm @stable ICU 2.0 */
636 U_MODIFIER_LETTER
= 4,
637 /** Lo @stable ICU 2.0 */
639 /** Mn @stable ICU 2.0 */
640 U_NON_SPACING_MARK
= 6,
641 /** Me @stable ICU 2.0 */
642 U_ENCLOSING_MARK
= 7,
643 /** Mc @stable ICU 2.0 */
644 U_COMBINING_SPACING_MARK
= 8,
645 /** Nd @stable ICU 2.0 */
646 U_DECIMAL_DIGIT_NUMBER
= 9,
647 /** Nl @stable ICU 2.0 */
648 U_LETTER_NUMBER
= 10,
649 /** No @stable ICU 2.0 */
651 /** Zs @stable ICU 2.0 */
652 U_SPACE_SEPARATOR
= 12,
653 /** Zl @stable ICU 2.0 */
654 U_LINE_SEPARATOR
= 13,
655 /** Zp @stable ICU 2.0 */
656 U_PARAGRAPH_SEPARATOR
= 14,
657 /** Cc @stable ICU 2.0 */
659 /** Cf @stable ICU 2.0 */
661 /** Co @stable ICU 2.0 */
662 U_PRIVATE_USE_CHAR
= 17,
663 /** Cs @stable ICU 2.0 */
665 /** Pd @stable ICU 2.0 */
666 U_DASH_PUNCTUATION
= 19,
667 /** Ps @stable ICU 2.0 */
668 U_START_PUNCTUATION
= 20,
669 /** Pe @stable ICU 2.0 */
670 U_END_PUNCTUATION
= 21,
671 /** Pc @stable ICU 2.0 */
672 U_CONNECTOR_PUNCTUATION
= 22,
673 /** Po @stable ICU 2.0 */
674 U_OTHER_PUNCTUATION
= 23,
675 /** Sm @stable ICU 2.0 */
677 /** Sc @stable ICU 2.0 */
678 U_CURRENCY_SYMBOL
= 25,
679 /** Sk @stable ICU 2.0 */
680 U_MODIFIER_SYMBOL
= 26,
681 /** So @stable ICU 2.0 */
683 /** Pi @stable ICU 2.0 */
684 U_INITIAL_PUNCTUATION
= 28,
685 /** Pf @stable ICU 2.0 */
686 U_FINAL_PUNCTUATION
= 29,
687 /** One higher than the last enum UCharCategory constant. @stable ICU 2.0 */
688 U_CHAR_CATEGORY_COUNT
692 * U_GC_XX_MASK constants are bit flags corresponding to Unicode
693 * general category values.
694 * For each category, the nth bit is set if the numeric value of the
695 * corresponding UCharCategory constant is n.
697 * There are also some U_GC_Y_MASK constants for groups of general categories
698 * like L for all letter categories.
705 #define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES)
707 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
708 #define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER)
709 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
710 #define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER)
711 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
712 #define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER)
713 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
714 #define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER)
715 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
716 #define U_GC_LO_MASK U_MASK(U_OTHER_LETTER)
718 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
719 #define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK)
720 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
721 #define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK)
722 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
723 #define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK)
725 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
726 #define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER)
727 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
728 #define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER)
729 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
730 #define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER)
732 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
733 #define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR)
734 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
735 #define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR)
736 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
737 #define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR)
739 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
740 #define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR)
741 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
742 #define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR)
743 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
744 #define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR)
745 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
746 #define U_GC_CS_MASK U_MASK(U_SURROGATE)
748 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
749 #define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION)
750 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
751 #define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION)
752 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
753 #define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION)
754 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
755 #define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION)
756 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
757 #define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION)
759 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
760 #define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL)
761 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
762 #define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL)
763 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
764 #define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL)
765 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
766 #define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL)
768 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
769 #define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION)
770 /** Mask constant for a UCharCategory. @stable ICU 2.1 */
771 #define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION)
774 /** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */
775 #define U_GC_L_MASK \
776 (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK)
778 /** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */
779 #define U_GC_LC_MASK \
780 (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK)
782 /** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */
783 #define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK)
785 /** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */
786 #define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK)
788 /** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */
789 #define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK)
791 /** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */
792 #define U_GC_C_MASK \
793 (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK)
795 /** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */
796 #define U_GC_P_MASK \
797 (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \
798 U_GC_PI_MASK|U_GC_PF_MASK)
800 /** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */
801 #define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK)
804 * This specifies the language directional property of a character set.
807 typedef enum UCharDirection
{
809 * Note: UCharDirection constants and their API comments are parsed by preparseucd.py.
810 * It matches pairs of lines like
811 * / ** <Unicode 1..3-letter Bidi_Class value> comment... * /
812 * U_<[A-Z_]+> = <integer>,
815 /** L @stable ICU 2.0 */
817 /** R @stable ICU 2.0 */
819 /** EN @stable ICU 2.0 */
820 U_EUROPEAN_NUMBER
= 2,
821 /** ES @stable ICU 2.0 */
822 U_EUROPEAN_NUMBER_SEPARATOR
= 3,
823 /** ET @stable ICU 2.0 */
824 U_EUROPEAN_NUMBER_TERMINATOR
= 4,
825 /** AN @stable ICU 2.0 */
827 /** CS @stable ICU 2.0 */
828 U_COMMON_NUMBER_SEPARATOR
= 6,
829 /** B @stable ICU 2.0 */
830 U_BLOCK_SEPARATOR
= 7,
831 /** S @stable ICU 2.0 */
832 U_SEGMENT_SEPARATOR
= 8,
833 /** WS @stable ICU 2.0 */
834 U_WHITE_SPACE_NEUTRAL
= 9,
835 /** ON @stable ICU 2.0 */
836 U_OTHER_NEUTRAL
= 10,
837 /** LRE @stable ICU 2.0 */
838 U_LEFT_TO_RIGHT_EMBEDDING
= 11,
839 /** LRO @stable ICU 2.0 */
840 U_LEFT_TO_RIGHT_OVERRIDE
= 12,
841 /** AL @stable ICU 2.0 */
842 U_RIGHT_TO_LEFT_ARABIC
= 13,
843 /** RLE @stable ICU 2.0 */
844 U_RIGHT_TO_LEFT_EMBEDDING
= 14,
845 /** RLO @stable ICU 2.0 */
846 U_RIGHT_TO_LEFT_OVERRIDE
= 15,
847 /** PDF @stable ICU 2.0 */
848 U_POP_DIRECTIONAL_FORMAT
= 16,
849 /** NSM @stable ICU 2.0 */
850 U_DIR_NON_SPACING_MARK
= 17,
851 /** BN @stable ICU 2.0 */
852 U_BOUNDARY_NEUTRAL
= 18,
853 /** FSI @stable ICU 52 */
854 U_FIRST_STRONG_ISOLATE
= 19,
855 /** LRI @stable ICU 52 */
856 U_LEFT_TO_RIGHT_ISOLATE
= 20,
857 /** RLI @stable ICU 52 */
858 U_RIGHT_TO_LEFT_ISOLATE
= 21,
859 /** PDI @stable ICU 52 */
860 U_POP_DIRECTIONAL_ISOLATE
= 22,
861 /** @stable ICU 2.0 */
862 U_CHAR_DIRECTION_COUNT
866 * Bidi Paired Bracket Type constants.
868 * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE
871 typedef enum UBidiPairedBracketType
{
873 * Note: UBidiPairedBracketType constants are parsed by preparseucd.py.
874 * It matches lines like
875 * U_BPT_<Unicode Bidi_Paired_Bracket_Type value name>
878 /** Not a paired bracket. @stable ICU 52 */
880 /** Open paired bracket. @stable ICU 52 */
882 /** Close paired bracket. @stable ICU 52 */
884 /** @stable ICU 52 */
886 } UBidiPairedBracketType
;
889 * Constants for Unicode blocks, see the Unicode Data file Blocks.txt
894 * Note: UBlockCode constants are parsed by preparseucd.py.
895 * It matches lines like
896 * UBLOCK_<Unicode Block value name> = <integer>,
899 /** New No_Block value in Unicode 4. @stable ICU 2.6 */
900 UBLOCK_NO_BLOCK
= 0, /*[none]*/ /* Special range indicating No_Block */
902 /** @stable ICU 2.0 */
903 UBLOCK_BASIC_LATIN
= 1, /*[0000]*/
905 /** @stable ICU 2.0 */
906 UBLOCK_LATIN_1_SUPPLEMENT
=2, /*[0080]*/
908 /** @stable ICU 2.0 */
909 UBLOCK_LATIN_EXTENDED_A
=3, /*[0100]*/
911 /** @stable ICU 2.0 */
912 UBLOCK_LATIN_EXTENDED_B
=4, /*[0180]*/
914 /** @stable ICU 2.0 */
915 UBLOCK_IPA_EXTENSIONS
=5, /*[0250]*/
917 /** @stable ICU 2.0 */
918 UBLOCK_SPACING_MODIFIER_LETTERS
=6, /*[02B0]*/
920 /** @stable ICU 2.0 */
921 UBLOCK_COMBINING_DIACRITICAL_MARKS
=7, /*[0300]*/
924 * Unicode 3.2 renames this block to "Greek and Coptic".
927 UBLOCK_GREEK
=8, /*[0370]*/
929 /** @stable ICU 2.0 */
930 UBLOCK_CYRILLIC
=9, /*[0400]*/
932 /** @stable ICU 2.0 */
933 UBLOCK_ARMENIAN
=10, /*[0530]*/
935 /** @stable ICU 2.0 */
936 UBLOCK_HEBREW
=11, /*[0590]*/
938 /** @stable ICU 2.0 */
939 UBLOCK_ARABIC
=12, /*[0600]*/
941 /** @stable ICU 2.0 */
942 UBLOCK_SYRIAC
=13, /*[0700]*/
944 /** @stable ICU 2.0 */
945 UBLOCK_THAANA
=14, /*[0780]*/
947 /** @stable ICU 2.0 */
948 UBLOCK_DEVANAGARI
=15, /*[0900]*/
950 /** @stable ICU 2.0 */
951 UBLOCK_BENGALI
=16, /*[0980]*/
953 /** @stable ICU 2.0 */
954 UBLOCK_GURMUKHI
=17, /*[0A00]*/
956 /** @stable ICU 2.0 */
957 UBLOCK_GUJARATI
=18, /*[0A80]*/
959 /** @stable ICU 2.0 */
960 UBLOCK_ORIYA
=19, /*[0B00]*/
962 /** @stable ICU 2.0 */
963 UBLOCK_TAMIL
=20, /*[0B80]*/
965 /** @stable ICU 2.0 */
966 UBLOCK_TELUGU
=21, /*[0C00]*/
968 /** @stable ICU 2.0 */
969 UBLOCK_KANNADA
=22, /*[0C80]*/
971 /** @stable ICU 2.0 */
972 UBLOCK_MALAYALAM
=23, /*[0D00]*/
974 /** @stable ICU 2.0 */
975 UBLOCK_SINHALA
=24, /*[0D80]*/
977 /** @stable ICU 2.0 */
978 UBLOCK_THAI
=25, /*[0E00]*/
980 /** @stable ICU 2.0 */
981 UBLOCK_LAO
=26, /*[0E80]*/
983 /** @stable ICU 2.0 */
984 UBLOCK_TIBETAN
=27, /*[0F00]*/
986 /** @stable ICU 2.0 */
987 UBLOCK_MYANMAR
=28, /*[1000]*/
989 /** @stable ICU 2.0 */
990 UBLOCK_GEORGIAN
=29, /*[10A0]*/
992 /** @stable ICU 2.0 */
993 UBLOCK_HANGUL_JAMO
=30, /*[1100]*/
995 /** @stable ICU 2.0 */
996 UBLOCK_ETHIOPIC
=31, /*[1200]*/
998 /** @stable ICU 2.0 */
999 UBLOCK_CHEROKEE
=32, /*[13A0]*/
1001 /** @stable ICU 2.0 */
1002 UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS
=33, /*[1400]*/
1004 /** @stable ICU 2.0 */
1005 UBLOCK_OGHAM
=34, /*[1680]*/
1007 /** @stable ICU 2.0 */
1008 UBLOCK_RUNIC
=35, /*[16A0]*/
1010 /** @stable ICU 2.0 */
1011 UBLOCK_KHMER
=36, /*[1780]*/
1013 /** @stable ICU 2.0 */
1014 UBLOCK_MONGOLIAN
=37, /*[1800]*/
1016 /** @stable ICU 2.0 */
1017 UBLOCK_LATIN_EXTENDED_ADDITIONAL
=38, /*[1E00]*/
1019 /** @stable ICU 2.0 */
1020 UBLOCK_GREEK_EXTENDED
=39, /*[1F00]*/
1022 /** @stable ICU 2.0 */
1023 UBLOCK_GENERAL_PUNCTUATION
=40, /*[2000]*/
1025 /** @stable ICU 2.0 */
1026 UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS
=41, /*[2070]*/
1028 /** @stable ICU 2.0 */
1029 UBLOCK_CURRENCY_SYMBOLS
=42, /*[20A0]*/
1032 * Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols".
1035 UBLOCK_COMBINING_MARKS_FOR_SYMBOLS
=43, /*[20D0]*/
1037 /** @stable ICU 2.0 */
1038 UBLOCK_LETTERLIKE_SYMBOLS
=44, /*[2100]*/
1040 /** @stable ICU 2.0 */
1041 UBLOCK_NUMBER_FORMS
=45, /*[2150]*/
1043 /** @stable ICU 2.0 */
1044 UBLOCK_ARROWS
=46, /*[2190]*/
1046 /** @stable ICU 2.0 */
1047 UBLOCK_MATHEMATICAL_OPERATORS
=47, /*[2200]*/
1049 /** @stable ICU 2.0 */
1050 UBLOCK_MISCELLANEOUS_TECHNICAL
=48, /*[2300]*/
1052 /** @stable ICU 2.0 */
1053 UBLOCK_CONTROL_PICTURES
=49, /*[2400]*/
1055 /** @stable ICU 2.0 */
1056 UBLOCK_OPTICAL_CHARACTER_RECOGNITION
=50, /*[2440]*/
1058 /** @stable ICU 2.0 */
1059 UBLOCK_ENCLOSED_ALPHANUMERICS
=51, /*[2460]*/
1061 /** @stable ICU 2.0 */
1062 UBLOCK_BOX_DRAWING
=52, /*[2500]*/
1064 /** @stable ICU 2.0 */
1065 UBLOCK_BLOCK_ELEMENTS
=53, /*[2580]*/
1067 /** @stable ICU 2.0 */
1068 UBLOCK_GEOMETRIC_SHAPES
=54, /*[25A0]*/
1070 /** @stable ICU 2.0 */
1071 UBLOCK_MISCELLANEOUS_SYMBOLS
=55, /*[2600]*/
1073 /** @stable ICU 2.0 */
1074 UBLOCK_DINGBATS
=56, /*[2700]*/
1076 /** @stable ICU 2.0 */
1077 UBLOCK_BRAILLE_PATTERNS
=57, /*[2800]*/
1079 /** @stable ICU 2.0 */
1080 UBLOCK_CJK_RADICALS_SUPPLEMENT
=58, /*[2E80]*/
1082 /** @stable ICU 2.0 */
1083 UBLOCK_KANGXI_RADICALS
=59, /*[2F00]*/
1085 /** @stable ICU 2.0 */
1086 UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS
=60, /*[2FF0]*/
1088 /** @stable ICU 2.0 */
1089 UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION
=61, /*[3000]*/
1091 /** @stable ICU 2.0 */
1092 UBLOCK_HIRAGANA
=62, /*[3040]*/
1094 /** @stable ICU 2.0 */
1095 UBLOCK_KATAKANA
=63, /*[30A0]*/
1097 /** @stable ICU 2.0 */
1098 UBLOCK_BOPOMOFO
=64, /*[3100]*/
1100 /** @stable ICU 2.0 */
1101 UBLOCK_HANGUL_COMPATIBILITY_JAMO
=65, /*[3130]*/
1103 /** @stable ICU 2.0 */
1104 UBLOCK_KANBUN
=66, /*[3190]*/
1106 /** @stable ICU 2.0 */
1107 UBLOCK_BOPOMOFO_EXTENDED
=67, /*[31A0]*/
1109 /** @stable ICU 2.0 */
1110 UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS
=68, /*[3200]*/
1112 /** @stable ICU 2.0 */
1113 UBLOCK_CJK_COMPATIBILITY
=69, /*[3300]*/
1115 /** @stable ICU 2.0 */
1116 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A
=70, /*[3400]*/
1118 /** @stable ICU 2.0 */
1119 UBLOCK_CJK_UNIFIED_IDEOGRAPHS
=71, /*[4E00]*/
1121 /** @stable ICU 2.0 */
1122 UBLOCK_YI_SYLLABLES
=72, /*[A000]*/
1124 /** @stable ICU 2.0 */
1125 UBLOCK_YI_RADICALS
=73, /*[A490]*/
1127 /** @stable ICU 2.0 */
1128 UBLOCK_HANGUL_SYLLABLES
=74, /*[AC00]*/
1130 /** @stable ICU 2.0 */
1131 UBLOCK_HIGH_SURROGATES
=75, /*[D800]*/
1133 /** @stable ICU 2.0 */
1134 UBLOCK_HIGH_PRIVATE_USE_SURROGATES
=76, /*[DB80]*/
1136 /** @stable ICU 2.0 */
1137 UBLOCK_LOW_SURROGATES
=77, /*[DC00]*/
1140 * Same as UBLOCK_PRIVATE_USE.
1141 * Until Unicode 3.1.1, the corresponding block name was "Private Use",
1142 * and multiple code point ranges had this block.
1143 * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and
1144 * adds separate blocks for the supplementary PUAs.
1148 UBLOCK_PRIVATE_USE_AREA
=78, /*[E000]*/
1150 * Same as UBLOCK_PRIVATE_USE_AREA.
1151 * Until Unicode 3.1.1, the corresponding block name was "Private Use",
1152 * and multiple code point ranges had this block.
1153 * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and
1154 * adds separate blocks for the supplementary PUAs.
1158 UBLOCK_PRIVATE_USE
= UBLOCK_PRIVATE_USE_AREA
,
1160 /** @stable ICU 2.0 */
1161 UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS
=79, /*[F900]*/
1163 /** @stable ICU 2.0 */
1164 UBLOCK_ALPHABETIC_PRESENTATION_FORMS
=80, /*[FB00]*/
1166 /** @stable ICU 2.0 */
1167 UBLOCK_ARABIC_PRESENTATION_FORMS_A
=81, /*[FB50]*/
1169 /** @stable ICU 2.0 */
1170 UBLOCK_COMBINING_HALF_MARKS
=82, /*[FE20]*/
1172 /** @stable ICU 2.0 */
1173 UBLOCK_CJK_COMPATIBILITY_FORMS
=83, /*[FE30]*/
1175 /** @stable ICU 2.0 */
1176 UBLOCK_SMALL_FORM_VARIANTS
=84, /*[FE50]*/
1178 /** @stable ICU 2.0 */
1179 UBLOCK_ARABIC_PRESENTATION_FORMS_B
=85, /*[FE70]*/
1181 /** @stable ICU 2.0 */
1182 UBLOCK_SPECIALS
=86, /*[FFF0]*/
1184 /** @stable ICU 2.0 */
1185 UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS
=87, /*[FF00]*/
1187 /* New blocks in Unicode 3.1 */
1189 /** @stable ICU 2.0 */
1190 UBLOCK_OLD_ITALIC
= 88, /*[10300]*/
1191 /** @stable ICU 2.0 */
1192 UBLOCK_GOTHIC
= 89, /*[10330]*/
1193 /** @stable ICU 2.0 */
1194 UBLOCK_DESERET
= 90, /*[10400]*/
1195 /** @stable ICU 2.0 */
1196 UBLOCK_BYZANTINE_MUSICAL_SYMBOLS
= 91, /*[1D000]*/
1197 /** @stable ICU 2.0 */
1198 UBLOCK_MUSICAL_SYMBOLS
= 92, /*[1D100]*/
1199 /** @stable ICU 2.0 */
1200 UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS
= 93, /*[1D400]*/
1201 /** @stable ICU 2.0 */
1202 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B
= 94, /*[20000]*/
1203 /** @stable ICU 2.0 */
1204 UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT
= 95, /*[2F800]*/
1205 /** @stable ICU 2.0 */
1206 UBLOCK_TAGS
= 96, /*[E0000]*/
1208 /* New blocks in Unicode 3.2 */
1210 /** @stable ICU 3.0 */
1211 UBLOCK_CYRILLIC_SUPPLEMENT
= 97, /*[0500]*/
1213 * Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
1216 UBLOCK_CYRILLIC_SUPPLEMENTARY
= UBLOCK_CYRILLIC_SUPPLEMENT
,
1217 /** @stable ICU 2.2 */
1218 UBLOCK_TAGALOG
= 98, /*[1700]*/
1219 /** @stable ICU 2.2 */
1220 UBLOCK_HANUNOO
= 99, /*[1720]*/
1221 /** @stable ICU 2.2 */
1222 UBLOCK_BUHID
= 100, /*[1740]*/
1223 /** @stable ICU 2.2 */
1224 UBLOCK_TAGBANWA
= 101, /*[1760]*/
1225 /** @stable ICU 2.2 */
1226 UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A
= 102, /*[27C0]*/
1227 /** @stable ICU 2.2 */
1228 UBLOCK_SUPPLEMENTAL_ARROWS_A
= 103, /*[27F0]*/
1229 /** @stable ICU 2.2 */
1230 UBLOCK_SUPPLEMENTAL_ARROWS_B
= 104, /*[2900]*/
1231 /** @stable ICU 2.2 */
1232 UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B
= 105, /*[2980]*/
1233 /** @stable ICU 2.2 */
1234 UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS
= 106, /*[2A00]*/
1235 /** @stable ICU 2.2 */
1236 UBLOCK_KATAKANA_PHONETIC_EXTENSIONS
= 107, /*[31F0]*/
1237 /** @stable ICU 2.2 */
1238 UBLOCK_VARIATION_SELECTORS
= 108, /*[FE00]*/
1239 /** @stable ICU 2.2 */
1240 UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A
= 109, /*[F0000]*/
1241 /** @stable ICU 2.2 */
1242 UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B
= 110, /*[100000]*/
1244 /* New blocks in Unicode 4 */
1246 /** @stable ICU 2.6 */
1247 UBLOCK_LIMBU
= 111, /*[1900]*/
1248 /** @stable ICU 2.6 */
1249 UBLOCK_TAI_LE
= 112, /*[1950]*/
1250 /** @stable ICU 2.6 */
1251 UBLOCK_KHMER_SYMBOLS
= 113, /*[19E0]*/
1252 /** @stable ICU 2.6 */
1253 UBLOCK_PHONETIC_EXTENSIONS
= 114, /*[1D00]*/
1254 /** @stable ICU 2.6 */
1255 UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS
= 115, /*[2B00]*/
1256 /** @stable ICU 2.6 */
1257 UBLOCK_YIJING_HEXAGRAM_SYMBOLS
= 116, /*[4DC0]*/
1258 /** @stable ICU 2.6 */
1259 UBLOCK_LINEAR_B_SYLLABARY
= 117, /*[10000]*/
1260 /** @stable ICU 2.6 */
1261 UBLOCK_LINEAR_B_IDEOGRAMS
= 118, /*[10080]*/
1262 /** @stable ICU 2.6 */
1263 UBLOCK_AEGEAN_NUMBERS
= 119, /*[10100]*/
1264 /** @stable ICU 2.6 */
1265 UBLOCK_UGARITIC
= 120, /*[10380]*/
1266 /** @stable ICU 2.6 */
1267 UBLOCK_SHAVIAN
= 121, /*[10450]*/
1268 /** @stable ICU 2.6 */
1269 UBLOCK_OSMANYA
= 122, /*[10480]*/
1270 /** @stable ICU 2.6 */
1271 UBLOCK_CYPRIOT_SYLLABARY
= 123, /*[10800]*/
1272 /** @stable ICU 2.6 */
1273 UBLOCK_TAI_XUAN_JING_SYMBOLS
= 124, /*[1D300]*/
1274 /** @stable ICU 2.6 */
1275 UBLOCK_VARIATION_SELECTORS_SUPPLEMENT
= 125, /*[E0100]*/
1277 /* New blocks in Unicode 4.1 */
1279 /** @stable ICU 3.4 */
1280 UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION
= 126, /*[1D200]*/
1281 /** @stable ICU 3.4 */
1282 UBLOCK_ANCIENT_GREEK_NUMBERS
= 127, /*[10140]*/
1283 /** @stable ICU 3.4 */
1284 UBLOCK_ARABIC_SUPPLEMENT
= 128, /*[0750]*/
1285 /** @stable ICU 3.4 */
1286 UBLOCK_BUGINESE
= 129, /*[1A00]*/
1287 /** @stable ICU 3.4 */
1288 UBLOCK_CJK_STROKES
= 130, /*[31C0]*/
1289 /** @stable ICU 3.4 */
1290 UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT
= 131, /*[1DC0]*/
1291 /** @stable ICU 3.4 */
1292 UBLOCK_COPTIC
= 132, /*[2C80]*/
1293 /** @stable ICU 3.4 */
1294 UBLOCK_ETHIOPIC_EXTENDED
= 133, /*[2D80]*/
1295 /** @stable ICU 3.4 */
1296 UBLOCK_ETHIOPIC_SUPPLEMENT
= 134, /*[1380]*/
1297 /** @stable ICU 3.4 */
1298 UBLOCK_GEORGIAN_SUPPLEMENT
= 135, /*[2D00]*/
1299 /** @stable ICU 3.4 */
1300 UBLOCK_GLAGOLITIC
= 136, /*[2C00]*/
1301 /** @stable ICU 3.4 */
1302 UBLOCK_KHAROSHTHI
= 137, /*[10A00]*/
1303 /** @stable ICU 3.4 */
1304 UBLOCK_MODIFIER_TONE_LETTERS
= 138, /*[A700]*/
1305 /** @stable ICU 3.4 */
1306 UBLOCK_NEW_TAI_LUE
= 139, /*[1980]*/
1307 /** @stable ICU 3.4 */
1308 UBLOCK_OLD_PERSIAN
= 140, /*[103A0]*/
1309 /** @stable ICU 3.4 */
1310 UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT
= 141, /*[1D80]*/
1311 /** @stable ICU 3.4 */
1312 UBLOCK_SUPPLEMENTAL_PUNCTUATION
= 142, /*[2E00]*/
1313 /** @stable ICU 3.4 */
1314 UBLOCK_SYLOTI_NAGRI
= 143, /*[A800]*/
1315 /** @stable ICU 3.4 */
1316 UBLOCK_TIFINAGH
= 144, /*[2D30]*/
1317 /** @stable ICU 3.4 */
1318 UBLOCK_VERTICAL_FORMS
= 145, /*[FE10]*/
1320 /* New blocks in Unicode 5.0 */
1322 /** @stable ICU 3.6 */
1323 UBLOCK_NKO
= 146, /*[07C0]*/
1324 /** @stable ICU 3.6 */
1325 UBLOCK_BALINESE
= 147, /*[1B00]*/
1326 /** @stable ICU 3.6 */
1327 UBLOCK_LATIN_EXTENDED_C
= 148, /*[2C60]*/
1328 /** @stable ICU 3.6 */
1329 UBLOCK_LATIN_EXTENDED_D
= 149, /*[A720]*/
1330 /** @stable ICU 3.6 */
1331 UBLOCK_PHAGS_PA
= 150, /*[A840]*/
1332 /** @stable ICU 3.6 */
1333 UBLOCK_PHOENICIAN
= 151, /*[10900]*/
1334 /** @stable ICU 3.6 */
1335 UBLOCK_CUNEIFORM
= 152, /*[12000]*/
1336 /** @stable ICU 3.6 */
1337 UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION
= 153, /*[12400]*/
1338 /** @stable ICU 3.6 */
1339 UBLOCK_COUNTING_ROD_NUMERALS
= 154, /*[1D360]*/
1341 /* New blocks in Unicode 5.1 */
1343 /** @stable ICU 4.0 */
1344 UBLOCK_SUNDANESE
= 155, /*[1B80]*/
1345 /** @stable ICU 4.0 */
1346 UBLOCK_LEPCHA
= 156, /*[1C00]*/
1347 /** @stable ICU 4.0 */
1348 UBLOCK_OL_CHIKI
= 157, /*[1C50]*/
1349 /** @stable ICU 4.0 */
1350 UBLOCK_CYRILLIC_EXTENDED_A
= 158, /*[2DE0]*/
1351 /** @stable ICU 4.0 */
1352 UBLOCK_VAI
= 159, /*[A500]*/
1353 /** @stable ICU 4.0 */
1354 UBLOCK_CYRILLIC_EXTENDED_B
= 160, /*[A640]*/
1355 /** @stable ICU 4.0 */
1356 UBLOCK_SAURASHTRA
= 161, /*[A880]*/
1357 /** @stable ICU 4.0 */
1358 UBLOCK_KAYAH_LI
= 162, /*[A900]*/
1359 /** @stable ICU 4.0 */
1360 UBLOCK_REJANG
= 163, /*[A930]*/
1361 /** @stable ICU 4.0 */
1362 UBLOCK_CHAM
= 164, /*[AA00]*/
1363 /** @stable ICU 4.0 */
1364 UBLOCK_ANCIENT_SYMBOLS
= 165, /*[10190]*/
1365 /** @stable ICU 4.0 */
1366 UBLOCK_PHAISTOS_DISC
= 166, /*[101D0]*/
1367 /** @stable ICU 4.0 */
1368 UBLOCK_LYCIAN
= 167, /*[10280]*/
1369 /** @stable ICU 4.0 */
1370 UBLOCK_CARIAN
= 168, /*[102A0]*/
1371 /** @stable ICU 4.0 */
1372 UBLOCK_LYDIAN
= 169, /*[10920]*/
1373 /** @stable ICU 4.0 */
1374 UBLOCK_MAHJONG_TILES
= 170, /*[1F000]*/
1375 /** @stable ICU 4.0 */
1376 UBLOCK_DOMINO_TILES
= 171, /*[1F030]*/
1378 /* New blocks in Unicode 5.2 */
1380 /** @stable ICU 4.4 */
1381 UBLOCK_SAMARITAN
= 172, /*[0800]*/
1382 /** @stable ICU 4.4 */
1383 UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED
= 173, /*[18B0]*/
1384 /** @stable ICU 4.4 */
1385 UBLOCK_TAI_THAM
= 174, /*[1A20]*/
1386 /** @stable ICU 4.4 */
1387 UBLOCK_VEDIC_EXTENSIONS
= 175, /*[1CD0]*/
1388 /** @stable ICU 4.4 */
1389 UBLOCK_LISU
= 176, /*[A4D0]*/
1390 /** @stable ICU 4.4 */
1391 UBLOCK_BAMUM
= 177, /*[A6A0]*/
1392 /** @stable ICU 4.4 */
1393 UBLOCK_COMMON_INDIC_NUMBER_FORMS
= 178, /*[A830]*/
1394 /** @stable ICU 4.4 */
1395 UBLOCK_DEVANAGARI_EXTENDED
= 179, /*[A8E0]*/
1396 /** @stable ICU 4.4 */
1397 UBLOCK_HANGUL_JAMO_EXTENDED_A
= 180, /*[A960]*/
1398 /** @stable ICU 4.4 */
1399 UBLOCK_JAVANESE
= 181, /*[A980]*/
1400 /** @stable ICU 4.4 */
1401 UBLOCK_MYANMAR_EXTENDED_A
= 182, /*[AA60]*/
1402 /** @stable ICU 4.4 */
1403 UBLOCK_TAI_VIET
= 183, /*[AA80]*/
1404 /** @stable ICU 4.4 */
1405 UBLOCK_MEETEI_MAYEK
= 184, /*[ABC0]*/
1406 /** @stable ICU 4.4 */
1407 UBLOCK_HANGUL_JAMO_EXTENDED_B
= 185, /*[D7B0]*/
1408 /** @stable ICU 4.4 */
1409 UBLOCK_IMPERIAL_ARAMAIC
= 186, /*[10840]*/
1410 /** @stable ICU 4.4 */
1411 UBLOCK_OLD_SOUTH_ARABIAN
= 187, /*[10A60]*/
1412 /** @stable ICU 4.4 */
1413 UBLOCK_AVESTAN
= 188, /*[10B00]*/
1414 /** @stable ICU 4.4 */
1415 UBLOCK_INSCRIPTIONAL_PARTHIAN
= 189, /*[10B40]*/
1416 /** @stable ICU 4.4 */
1417 UBLOCK_INSCRIPTIONAL_PAHLAVI
= 190, /*[10B60]*/
1418 /** @stable ICU 4.4 */
1419 UBLOCK_OLD_TURKIC
= 191, /*[10C00]*/
1420 /** @stable ICU 4.4 */
1421 UBLOCK_RUMI_NUMERAL_SYMBOLS
= 192, /*[10E60]*/
1422 /** @stable ICU 4.4 */
1423 UBLOCK_KAITHI
= 193, /*[11080]*/
1424 /** @stable ICU 4.4 */
1425 UBLOCK_EGYPTIAN_HIEROGLYPHS
= 194, /*[13000]*/
1426 /** @stable ICU 4.4 */
1427 UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT
= 195, /*[1F100]*/
1428 /** @stable ICU 4.4 */
1429 UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT
= 196, /*[1F200]*/
1430 /** @stable ICU 4.4 */
1431 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C
= 197, /*[2A700]*/
1433 /* New blocks in Unicode 6.0 */
1435 /** @stable ICU 4.6 */
1436 UBLOCK_MANDAIC
= 198, /*[0840]*/
1437 /** @stable ICU 4.6 */
1438 UBLOCK_BATAK
= 199, /*[1BC0]*/
1439 /** @stable ICU 4.6 */
1440 UBLOCK_ETHIOPIC_EXTENDED_A
= 200, /*[AB00]*/
1441 /** @stable ICU 4.6 */
1442 UBLOCK_BRAHMI
= 201, /*[11000]*/
1443 /** @stable ICU 4.6 */
1444 UBLOCK_BAMUM_SUPPLEMENT
= 202, /*[16800]*/
1445 /** @stable ICU 4.6 */
1446 UBLOCK_KANA_SUPPLEMENT
= 203, /*[1B000]*/
1447 /** @stable ICU 4.6 */
1448 UBLOCK_PLAYING_CARDS
= 204, /*[1F0A0]*/
1449 /** @stable ICU 4.6 */
1450 UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS
= 205, /*[1F300]*/
1451 /** @stable ICU 4.6 */
1452 UBLOCK_EMOTICONS
= 206, /*[1F600]*/
1453 /** @stable ICU 4.6 */
1454 UBLOCK_TRANSPORT_AND_MAP_SYMBOLS
= 207, /*[1F680]*/
1455 /** @stable ICU 4.6 */
1456 UBLOCK_ALCHEMICAL_SYMBOLS
= 208, /*[1F700]*/
1457 /** @stable ICU 4.6 */
1458 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D
= 209, /*[2B740]*/
1460 /* New blocks in Unicode 6.1 */
1462 /** @stable ICU 49 */
1463 UBLOCK_ARABIC_EXTENDED_A
= 210, /*[08A0]*/
1464 /** @stable ICU 49 */
1465 UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS
= 211, /*[1EE00]*/
1466 /** @stable ICU 49 */
1467 UBLOCK_CHAKMA
= 212, /*[11100]*/
1468 /** @stable ICU 49 */
1469 UBLOCK_MEETEI_MAYEK_EXTENSIONS
= 213, /*[AAE0]*/
1470 /** @stable ICU 49 */
1471 UBLOCK_MEROITIC_CURSIVE
= 214, /*[109A0]*/
1472 /** @stable ICU 49 */
1473 UBLOCK_MEROITIC_HIEROGLYPHS
= 215, /*[10980]*/
1474 /** @stable ICU 49 */
1475 UBLOCK_MIAO
= 216, /*[16F00]*/
1476 /** @stable ICU 49 */
1477 UBLOCK_SHARADA
= 217, /*[11180]*/
1478 /** @stable ICU 49 */
1479 UBLOCK_SORA_SOMPENG
= 218, /*[110D0]*/
1480 /** @stable ICU 49 */
1481 UBLOCK_SUNDANESE_SUPPLEMENT
= 219, /*[1CC0]*/
1482 /** @stable ICU 49 */
1483 UBLOCK_TAKRI
= 220, /*[11680]*/
1485 /* New blocks in Unicode 7.0 */
1487 /** @stable ICU 54 */
1488 UBLOCK_BASSA_VAH
= 221, /*[16AD0]*/
1489 /** @stable ICU 54 */
1490 UBLOCK_CAUCASIAN_ALBANIAN
= 222, /*[10530]*/
1491 /** @stable ICU 54 */
1492 UBLOCK_COPTIC_EPACT_NUMBERS
= 223, /*[102E0]*/
1493 /** @stable ICU 54 */
1494 UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED
= 224, /*[1AB0]*/
1495 /** @stable ICU 54 */
1496 UBLOCK_DUPLOYAN
= 225, /*[1BC00]*/
1497 /** @stable ICU 54 */
1498 UBLOCK_ELBASAN
= 226, /*[10500]*/
1499 /** @stable ICU 54 */
1500 UBLOCK_GEOMETRIC_SHAPES_EXTENDED
= 227, /*[1F780]*/
1501 /** @stable ICU 54 */
1502 UBLOCK_GRANTHA
= 228, /*[11300]*/
1503 /** @stable ICU 54 */
1504 UBLOCK_KHOJKI
= 229, /*[11200]*/
1505 /** @stable ICU 54 */
1506 UBLOCK_KHUDAWADI
= 230, /*[112B0]*/
1507 /** @stable ICU 54 */
1508 UBLOCK_LATIN_EXTENDED_E
= 231, /*[AB30]*/
1509 /** @stable ICU 54 */
1510 UBLOCK_LINEAR_A
= 232, /*[10600]*/
1511 /** @stable ICU 54 */
1512 UBLOCK_MAHAJANI
= 233, /*[11150]*/
1513 /** @stable ICU 54 */
1514 UBLOCK_MANICHAEAN
= 234, /*[10AC0]*/
1515 /** @stable ICU 54 */
1516 UBLOCK_MENDE_KIKAKUI
= 235, /*[1E800]*/
1517 /** @stable ICU 54 */
1518 UBLOCK_MODI
= 236, /*[11600]*/
1519 /** @stable ICU 54 */
1520 UBLOCK_MRO
= 237, /*[16A40]*/
1521 /** @stable ICU 54 */
1522 UBLOCK_MYANMAR_EXTENDED_B
= 238, /*[A9E0]*/
1523 /** @stable ICU 54 */
1524 UBLOCK_NABATAEAN
= 239, /*[10880]*/
1525 /** @stable ICU 54 */
1526 UBLOCK_OLD_NORTH_ARABIAN
= 240, /*[10A80]*/
1527 /** @stable ICU 54 */
1528 UBLOCK_OLD_PERMIC
= 241, /*[10350]*/
1529 /** @stable ICU 54 */
1530 UBLOCK_ORNAMENTAL_DINGBATS
= 242, /*[1F650]*/
1531 /** @stable ICU 54 */
1532 UBLOCK_PAHAWH_HMONG
= 243, /*[16B00]*/
1533 /** @stable ICU 54 */
1534 UBLOCK_PALMYRENE
= 244, /*[10860]*/
1535 /** @stable ICU 54 */
1536 UBLOCK_PAU_CIN_HAU
= 245, /*[11AC0]*/
1537 /** @stable ICU 54 */
1538 UBLOCK_PSALTER_PAHLAVI
= 246, /*[10B80]*/
1539 /** @stable ICU 54 */
1540 UBLOCK_SHORTHAND_FORMAT_CONTROLS
= 247, /*[1BCA0]*/
1541 /** @stable ICU 54 */
1542 UBLOCK_SIDDHAM
= 248, /*[11580]*/
1543 /** @stable ICU 54 */
1544 UBLOCK_SINHALA_ARCHAIC_NUMBERS
= 249, /*[111E0]*/
1545 /** @stable ICU 54 */
1546 UBLOCK_SUPPLEMENTAL_ARROWS_C
= 250, /*[1F800]*/
1547 /** @stable ICU 54 */
1548 UBLOCK_TIRHUTA
= 251, /*[11480]*/
1549 /** @stable ICU 54 */
1550 UBLOCK_WARANG_CITI
= 252, /*[118A0]*/
1552 /* New blocks in Unicode 8.0 */
1554 /** @stable ICU 56 */
1555 UBLOCK_AHOM
= 253, /*[11700]*/
1556 /** @stable ICU 56 */
1557 UBLOCK_ANATOLIAN_HIEROGLYPHS
= 254, /*[14400]*/
1558 /** @stable ICU 56 */
1559 UBLOCK_CHEROKEE_SUPPLEMENT
= 255, /*[AB70]*/
1560 /** @stable ICU 56 */
1561 UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E
= 256, /*[2B820]*/
1562 /** @stable ICU 56 */
1563 UBLOCK_EARLY_DYNASTIC_CUNEIFORM
= 257, /*[12480]*/
1564 /** @stable ICU 56 */
1565 UBLOCK_HATRAN
= 258, /*[108E0]*/
1566 /** @stable ICU 56 */
1567 UBLOCK_MULTANI
= 259, /*[11280]*/
1568 /** @stable ICU 56 */
1569 UBLOCK_OLD_HUNGARIAN
= 260, /*[10C80]*/
1570 /** @stable ICU 56 */
1571 UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS
= 261, /*[1F900]*/
1572 /** @stable ICU 56 */
1573 UBLOCK_SUTTON_SIGNWRITING
= 262, /*[1D800]*/
1575 /** @stable ICU 2.0 */
1578 /** @stable ICU 2.0 */
1579 UBLOCK_INVALID_CODE
=-1
1582 /** @stable ICU 2.0 */
1583 typedef enum UBlockCode UBlockCode
;
1586 * East Asian Width constants.
1588 * @see UCHAR_EAST_ASIAN_WIDTH
1589 * @see u_getIntPropertyValue
1592 typedef enum UEastAsianWidth
{
1594 * Note: UEastAsianWidth constants are parsed by preparseucd.py.
1595 * It matches lines like
1596 * U_EA_<Unicode East_Asian_Width value name>
1599 U_EA_NEUTRAL
, /*[N]*/
1600 U_EA_AMBIGUOUS
, /*[A]*/
1601 U_EA_HALFWIDTH
, /*[H]*/
1602 U_EA_FULLWIDTH
, /*[F]*/
1603 U_EA_NARROW
, /*[Na]*/
1609 * Selector constants for u_charName().
1610 * u_charName() returns the "modern" name of a
1611 * Unicode character; or the name that was defined in
1612 * Unicode version 1.0, before the Unicode standard merged
1613 * with ISO-10646; or an "extended" name that gives each
1614 * Unicode code point a unique name.
1619 typedef enum UCharNameChoice
{
1620 /** Unicode character name (Name property). @stable ICU 2.0 */
1621 U_UNICODE_CHAR_NAME
,
1622 #ifndef U_HIDE_DEPRECATED_API
1624 * The Unicode_1_Name property value which is of little practical value.
1625 * Beginning with ICU 49, ICU APIs return an empty string for this name choice.
1626 * @deprecated ICU 49
1628 U_UNICODE_10_CHAR_NAME
,
1629 #endif /* U_HIDE_DEPRECATED_API */
1630 /** Standard or synthetic character name. @stable ICU 2.0 */
1631 U_EXTENDED_CHAR_NAME
= U_UNICODE_CHAR_NAME
+2,
1632 /** Corrected name from NameAliases.txt. @stable ICU 4.4 */
1634 /** @stable ICU 2.0 */
1635 U_CHAR_NAME_CHOICE_COUNT
1639 * Selector constants for u_getPropertyName() and
1640 * u_getPropertyValueName(). These selectors are used to choose which
1641 * name is returned for a given property or value. All properties and
1642 * values have a long name. Most have a short name, but some do not.
1643 * Unicode allows for additional names, beyond the long and short
1644 * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where
1647 * @see u_getPropertyName()
1648 * @see u_getPropertyValueName()
1651 typedef enum UPropertyNameChoice
{
1652 U_SHORT_PROPERTY_NAME
,
1653 U_LONG_PROPERTY_NAME
,
1654 U_PROPERTY_NAME_CHOICE_COUNT
1655 } UPropertyNameChoice
;
1658 * Decomposition Type constants.
1660 * @see UCHAR_DECOMPOSITION_TYPE
1663 typedef enum UDecompositionType
{
1665 * Note: UDecompositionType constants are parsed by preparseucd.py.
1666 * It matches lines like
1667 * U_DT_<Unicode Decomposition_Type value name>
1670 U_DT_NONE
, /*[none]*/
1671 U_DT_CANONICAL
, /*[can]*/
1672 U_DT_COMPAT
, /*[com]*/
1673 U_DT_CIRCLE
, /*[enc]*/
1674 U_DT_FINAL
, /*[fin]*/
1675 U_DT_FONT
, /*[font]*/
1676 U_DT_FRACTION
, /*[fra]*/
1677 U_DT_INITIAL
, /*[init]*/
1678 U_DT_ISOLATED
, /*[iso]*/
1679 U_DT_MEDIAL
, /*[med]*/
1680 U_DT_NARROW
, /*[nar]*/
1681 U_DT_NOBREAK
, /*[nb]*/
1682 U_DT_SMALL
, /*[sml]*/
1683 U_DT_SQUARE
, /*[sqr]*/
1685 U_DT_SUPER
, /*[sup]*/
1686 U_DT_VERTICAL
, /*[vert]*/
1687 U_DT_WIDE
, /*[wide]*/
1689 } UDecompositionType
;
1692 * Joining Type constants.
1694 * @see UCHAR_JOINING_TYPE
1697 typedef enum UJoiningType
{
1699 * Note: UJoiningType constants are parsed by preparseucd.py.
1700 * It matches lines like
1701 * U_JT_<Unicode Joining_Type value name>
1704 U_JT_NON_JOINING
, /*[U]*/
1705 U_JT_JOIN_CAUSING
, /*[C]*/
1706 U_JT_DUAL_JOINING
, /*[D]*/
1707 U_JT_LEFT_JOINING
, /*[L]*/
1708 U_JT_RIGHT_JOINING
, /*[R]*/
1709 U_JT_TRANSPARENT
, /*[T]*/
1714 * Joining Group constants.
1716 * @see UCHAR_JOINING_GROUP
1719 typedef enum UJoiningGroup
{
1721 * Note: UJoiningGroup constants are parsed by preparseucd.py.
1722 * It matches lines like
1723 * U_JG_<Unicode Joining_Group value name>
1726 U_JG_NO_JOINING_GROUP
,
1740 U_JG_TEH_MARBUTA_GOAL
, /**< @stable ICU 4.6 */
1741 U_JG_HAMZA_ON_HEH_GOAL
=U_JG_TEH_MARBUTA_GOAL
,
1778 U_JG_FE
, /**< @stable ICU 2.6 */
1779 U_JG_KHAPH
, /**< @stable ICU 2.6 */
1780 U_JG_ZHAIN
, /**< @stable ICU 2.6 */
1781 U_JG_BURUSHASKI_YEH_BARREE
, /**< @stable ICU 4.0 */
1782 U_JG_FARSI_YEH
, /**< @stable ICU 4.4 */
1783 U_JG_NYA
, /**< @stable ICU 4.4 */
1784 U_JG_ROHINGYA_YEH
, /**< @stable ICU 49 */
1785 U_JG_MANICHAEAN_ALEPH
, /**< @stable ICU 54 */
1786 U_JG_MANICHAEAN_AYIN
, /**< @stable ICU 54 */
1787 U_JG_MANICHAEAN_BETH
, /**< @stable ICU 54 */
1788 U_JG_MANICHAEAN_DALETH
, /**< @stable ICU 54 */
1789 U_JG_MANICHAEAN_DHAMEDH
, /**< @stable ICU 54 */
1790 U_JG_MANICHAEAN_FIVE
, /**< @stable ICU 54 */
1791 U_JG_MANICHAEAN_GIMEL
, /**< @stable ICU 54 */
1792 U_JG_MANICHAEAN_HETH
, /**< @stable ICU 54 */
1793 U_JG_MANICHAEAN_HUNDRED
, /**< @stable ICU 54 */
1794 U_JG_MANICHAEAN_KAPH
, /**< @stable ICU 54 */
1795 U_JG_MANICHAEAN_LAMEDH
, /**< @stable ICU 54 */
1796 U_JG_MANICHAEAN_MEM
, /**< @stable ICU 54 */
1797 U_JG_MANICHAEAN_NUN
, /**< @stable ICU 54 */
1798 U_JG_MANICHAEAN_ONE
, /**< @stable ICU 54 */
1799 U_JG_MANICHAEAN_PE
, /**< @stable ICU 54 */
1800 U_JG_MANICHAEAN_QOPH
, /**< @stable ICU 54 */
1801 U_JG_MANICHAEAN_RESH
, /**< @stable ICU 54 */
1802 U_JG_MANICHAEAN_SADHE
, /**< @stable ICU 54 */
1803 U_JG_MANICHAEAN_SAMEKH
, /**< @stable ICU 54 */
1804 U_JG_MANICHAEAN_TAW
, /**< @stable ICU 54 */
1805 U_JG_MANICHAEAN_TEN
, /**< @stable ICU 54 */
1806 U_JG_MANICHAEAN_TETH
, /**< @stable ICU 54 */
1807 U_JG_MANICHAEAN_THAMEDH
, /**< @stable ICU 54 */
1808 U_JG_MANICHAEAN_TWENTY
, /**< @stable ICU 54 */
1809 U_JG_MANICHAEAN_WAW
, /**< @stable ICU 54 */
1810 U_JG_MANICHAEAN_YODH
, /**< @stable ICU 54 */
1811 U_JG_MANICHAEAN_ZAYIN
, /**< @stable ICU 54 */
1812 U_JG_STRAIGHT_WAW
, /**< @stable ICU 54 */
1817 * Grapheme Cluster Break constants.
1819 * @see UCHAR_GRAPHEME_CLUSTER_BREAK
1822 typedef enum UGraphemeClusterBreak
{
1824 * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py.
1825 * It matches lines like
1826 * U_GCB_<Unicode Grapheme_Cluster_Break value name>
1829 U_GCB_OTHER
= 0, /*[XX]*/
1830 U_GCB_CONTROL
= 1, /*[CN]*/
1831 U_GCB_CR
= 2, /*[CR]*/
1832 U_GCB_EXTEND
= 3, /*[EX]*/
1833 U_GCB_L
= 4, /*[L]*/
1834 U_GCB_LF
= 5, /*[LF]*/
1835 U_GCB_LV
= 6, /*[LV]*/
1836 U_GCB_LVT
= 7, /*[LVT]*/
1837 U_GCB_T
= 8, /*[T]*/
1838 U_GCB_V
= 9, /*[V]*/
1839 U_GCB_SPACING_MARK
= 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1840 U_GCB_PREPEND
= 11, /*[PP]*/
1841 U_GCB_REGIONAL_INDICATOR
= 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1843 } UGraphemeClusterBreak
;
1846 * Word Break constants.
1847 * (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.)
1849 * @see UCHAR_WORD_BREAK
1852 typedef enum UWordBreakValues
{
1854 * Note: UWordBreakValues constants are parsed by preparseucd.py.
1855 * It matches lines like
1856 * U_WB_<Unicode Word_Break value name>
1859 U_WB_OTHER
= 0, /*[XX]*/
1860 U_WB_ALETTER
= 1, /*[LE]*/
1861 U_WB_FORMAT
= 2, /*[FO]*/
1862 U_WB_KATAKANA
= 3, /*[KA]*/
1863 U_WB_MIDLETTER
= 4, /*[ML]*/
1864 U_WB_MIDNUM
= 5, /*[MN]*/
1865 U_WB_NUMERIC
= 6, /*[NU]*/
1866 U_WB_EXTENDNUMLET
= 7, /*[EX]*/
1867 U_WB_CR
= 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1868 U_WB_EXTEND
= 9, /*[Extend]*/
1869 U_WB_LF
= 10, /*[LF]*/
1870 U_WB_MIDNUMLET
=11, /*[MB]*/
1871 U_WB_NEWLINE
=12, /*[NL]*/
1872 U_WB_REGIONAL_INDICATOR
= 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1873 U_WB_HEBREW_LETTER
= 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */
1874 U_WB_SINGLE_QUOTE
= 15, /*[SQ]*/
1875 U_WB_DOUBLE_QUOTE
= 16, /*[DQ]*/
1880 * Sentence Break constants.
1882 * @see UCHAR_SENTENCE_BREAK
1885 typedef enum USentenceBreak
{
1887 * Note: USentenceBreak constants are parsed by preparseucd.py.
1888 * It matches lines like
1889 * U_SB_<Unicode Sentence_Break value name>
1892 U_SB_OTHER
= 0, /*[XX]*/
1893 U_SB_ATERM
= 1, /*[AT]*/
1894 U_SB_CLOSE
= 2, /*[CL]*/
1895 U_SB_FORMAT
= 3, /*[FO]*/
1896 U_SB_LOWER
= 4, /*[LO]*/
1897 U_SB_NUMERIC
= 5, /*[NU]*/
1898 U_SB_OLETTER
= 6, /*[LE]*/
1899 U_SB_SEP
= 7, /*[SE]*/
1900 U_SB_SP
= 8, /*[SP]*/
1901 U_SB_STERM
= 9, /*[ST]*/
1902 U_SB_UPPER
= 10, /*[UP]*/
1903 U_SB_CR
= 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1904 U_SB_EXTEND
= 12, /*[EX]*/
1905 U_SB_LF
= 13, /*[LF]*/
1906 U_SB_SCONTINUE
= 14, /*[SC]*/
1911 * Line Break constants.
1913 * @see UCHAR_LINE_BREAK
1916 typedef enum ULineBreak
{
1918 * Note: ULineBreak constants are parsed by preparseucd.py.
1919 * It matches lines like
1920 * U_LB_<Unicode Line_Break value name>
1923 U_LB_UNKNOWN
= 0, /*[XX]*/
1924 U_LB_AMBIGUOUS
= 1, /*[AI]*/
1925 U_LB_ALPHABETIC
= 2, /*[AL]*/
1926 U_LB_BREAK_BOTH
= 3, /*[B2]*/
1927 U_LB_BREAK_AFTER
= 4, /*[BA]*/
1928 U_LB_BREAK_BEFORE
= 5, /*[BB]*/
1929 U_LB_MANDATORY_BREAK
= 6, /*[BK]*/
1930 U_LB_CONTINGENT_BREAK
= 7, /*[CB]*/
1931 U_LB_CLOSE_PUNCTUATION
= 8, /*[CL]*/
1932 U_LB_COMBINING_MARK
= 9, /*[CM]*/
1933 U_LB_CARRIAGE_RETURN
= 10, /*[CR]*/
1934 U_LB_EXCLAMATION
= 11, /*[EX]*/
1935 U_LB_GLUE
= 12, /*[GL]*/
1936 U_LB_HYPHEN
= 13, /*[HY]*/
1937 U_LB_IDEOGRAPHIC
= 14, /*[ID]*/
1938 /** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */
1939 U_LB_INSEPARABLE
= 15, /*[IN]*/
1940 U_LB_INSEPERABLE
= U_LB_INSEPARABLE
,
1941 U_LB_INFIX_NUMERIC
= 16, /*[IS]*/
1942 U_LB_LINE_FEED
= 17, /*[LF]*/
1943 U_LB_NONSTARTER
= 18, /*[NS]*/
1944 U_LB_NUMERIC
= 19, /*[NU]*/
1945 U_LB_OPEN_PUNCTUATION
= 20, /*[OP]*/
1946 U_LB_POSTFIX_NUMERIC
= 21, /*[PO]*/
1947 U_LB_PREFIX_NUMERIC
= 22, /*[PR]*/
1948 U_LB_QUOTATION
= 23, /*[QU]*/
1949 U_LB_COMPLEX_CONTEXT
= 24, /*[SA]*/
1950 U_LB_SURROGATE
= 25, /*[SG]*/
1951 U_LB_SPACE
= 26, /*[SP]*/
1952 U_LB_BREAK_SYMBOLS
= 27, /*[SY]*/
1953 U_LB_ZWSPACE
= 28, /*[ZW]*/
1954 U_LB_NEXT_LINE
= 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */
1955 U_LB_WORD_JOINER
= 30, /*[WJ]*/
1956 U_LB_H2
= 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */
1957 U_LB_H3
= 32, /*[H3]*/
1958 U_LB_JL
= 33, /*[JL]*/
1959 U_LB_JT
= 34, /*[JT]*/
1960 U_LB_JV
= 35, /*[JV]*/
1961 U_LB_CLOSE_PARENTHESIS
= 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */
1962 U_LB_CONDITIONAL_JAPANESE_STARTER
= 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */
1963 U_LB_HEBREW_LETTER
= 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */
1964 U_LB_REGIONAL_INDICATOR
= 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1969 * Numeric Type constants.
1971 * @see UCHAR_NUMERIC_TYPE
1974 typedef enum UNumericType
{
1976 * Note: UNumericType constants are parsed by preparseucd.py.
1977 * It matches lines like
1978 * U_NT_<Unicode Numeric_Type value name>
1981 U_NT_NONE
, /*[None]*/
1982 U_NT_DECIMAL
, /*[de]*/
1983 U_NT_DIGIT
, /*[di]*/
1984 U_NT_NUMERIC
, /*[nu]*/
1989 * Hangul Syllable Type constants.
1991 * @see UCHAR_HANGUL_SYLLABLE_TYPE
1994 typedef enum UHangulSyllableType
{
1996 * Note: UHangulSyllableType constants are parsed by preparseucd.py.
1997 * It matches lines like
1998 * U_HST_<Unicode Hangul_Syllable_Type value name>
2001 U_HST_NOT_APPLICABLE
, /*[NA]*/
2002 U_HST_LEADING_JAMO
, /*[L]*/
2003 U_HST_VOWEL_JAMO
, /*[V]*/
2004 U_HST_TRAILING_JAMO
, /*[T]*/
2005 U_HST_LV_SYLLABLE
, /*[LV]*/
2006 U_HST_LVT_SYLLABLE
, /*[LVT]*/
2008 } UHangulSyllableType
;
2011 * Check a binary Unicode property for a code point.
2013 * Unicode, especially in version 3.2, defines many more properties than the
2014 * original set in UnicodeData.txt.
2016 * The properties APIs are intended to reflect Unicode properties as defined
2017 * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
2018 * For details about the properties see http://www.unicode.org/ucd/ .
2019 * For names of Unicode properties see the UCD file PropertyAliases.txt.
2021 * Important: If ICU is built with UCD files from Unicode versions below 3.2,
2022 * then properties marked with "new in Unicode 3.2" are not or not fully available.
2024 * @param c Code point to test.
2025 * @param which UProperty selector constant, identifies which binary property to check.
2026 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT.
2027 * @return TRUE or FALSE according to the binary Unicode property value for c.
2028 * Also FALSE if 'which' is out of bounds or if the Unicode version
2029 * does not have data for the property at all, or not for this code point.
2032 * @see u_getIntPropertyValue
2033 * @see u_getUnicodeVersion
2036 U_STABLE UBool U_EXPORT2
2037 u_hasBinaryProperty(UChar32 c
, UProperty which
);
2040 * Check if a code point has the Alphabetic Unicode property.
2041 * Same as u_hasBinaryProperty(c, UCHAR_ALPHABETIC).
2042 * This is different from u_isalpha!
2043 * @param c Code point to test
2044 * @return true if the code point has the Alphabetic Unicode property, false otherwise
2046 * @see UCHAR_ALPHABETIC
2048 * @see u_hasBinaryProperty
2051 U_STABLE UBool U_EXPORT2
2052 u_isUAlphabetic(UChar32 c
);
2055 * Check if a code point has the Lowercase Unicode property.
2056 * Same as u_hasBinaryProperty(c, UCHAR_LOWERCASE).
2057 * This is different from u_islower!
2058 * @param c Code point to test
2059 * @return true if the code point has the Lowercase Unicode property, false otherwise
2061 * @see UCHAR_LOWERCASE
2063 * @see u_hasBinaryProperty
2066 U_STABLE UBool U_EXPORT2
2067 u_isULowercase(UChar32 c
);
2070 * Check if a code point has the Uppercase Unicode property.
2071 * Same as u_hasBinaryProperty(c, UCHAR_UPPERCASE).
2072 * This is different from u_isupper!
2073 * @param c Code point to test
2074 * @return true if the code point has the Uppercase Unicode property, false otherwise
2076 * @see UCHAR_UPPERCASE
2078 * @see u_hasBinaryProperty
2081 U_STABLE UBool U_EXPORT2
2082 u_isUUppercase(UChar32 c
);
2085 * Check if a code point has the White_Space Unicode property.
2086 * Same as u_hasBinaryProperty(c, UCHAR_WHITE_SPACE).
2087 * This is different from both u_isspace and u_isWhitespace!
2089 * Note: There are several ICU whitespace functions; please see the uchar.h
2090 * file documentation for a detailed comparison.
2092 * @param c Code point to test
2093 * @return true if the code point has the White_Space Unicode property, false otherwise.
2095 * @see UCHAR_WHITE_SPACE
2096 * @see u_isWhitespace
2098 * @see u_isJavaSpaceChar
2099 * @see u_hasBinaryProperty
2102 U_STABLE UBool U_EXPORT2
2103 u_isUWhiteSpace(UChar32 c
);
2106 * Get the property value for an enumerated or integer Unicode property for a code point.
2107 * Also returns binary and mask property values.
2109 * Unicode, especially in version 3.2, defines many more properties than the
2110 * original set in UnicodeData.txt.
2112 * The properties APIs are intended to reflect Unicode properties as defined
2113 * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
2114 * For details about the properties see http://www.unicode.org/ .
2115 * For names of Unicode properties see the UCD file PropertyAliases.txt.
2118 * UEastAsianWidth ea=(UEastAsianWidth)u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH);
2119 * UBool b=(UBool)u_getIntPropertyValue(c, UCHAR_IDEOGRAPHIC);
2121 * @param c Code point to test.
2122 * @param which UProperty selector constant, identifies which property to check.
2123 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
2124 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
2125 * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
2126 * @return Numeric value that is directly the property value or,
2127 * for enumerated properties, corresponds to the numeric value of the enumerated
2128 * constant of the respective property value enumeration type
2129 * (cast to enum type if necessary).
2130 * Returns 0 or 1 (for FALSE/TRUE) for binary Unicode properties.
2131 * Returns a bit-mask for mask properties.
2132 * Returns 0 if 'which' is out of bounds or if the Unicode version
2133 * does not have data for the property at all, or not for this code point.
2136 * @see u_hasBinaryProperty
2137 * @see u_getIntPropertyMinValue
2138 * @see u_getIntPropertyMaxValue
2139 * @see u_getUnicodeVersion
2142 U_STABLE
int32_t U_EXPORT2
2143 u_getIntPropertyValue(UChar32 c
, UProperty which
);
2146 * Get the minimum value for an enumerated/integer/binary Unicode property.
2147 * Can be used together with u_getIntPropertyMaxValue
2148 * to allocate arrays of UnicodeSet or similar.
2150 * @param which UProperty selector constant, identifies which binary property to check.
2151 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
2152 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.
2153 * @return Minimum value returned by u_getIntPropertyValue for a Unicode property.
2154 * 0 if the property selector is out of range.
2157 * @see u_hasBinaryProperty
2158 * @see u_getUnicodeVersion
2159 * @see u_getIntPropertyMaxValue
2160 * @see u_getIntPropertyValue
2163 U_STABLE
int32_t U_EXPORT2
2164 u_getIntPropertyMinValue(UProperty which
);
2167 * Get the maximum value for an enumerated/integer/binary Unicode property.
2168 * Can be used together with u_getIntPropertyMinValue
2169 * to allocate arrays of UnicodeSet or similar.
2171 * Examples for min/max values (for Unicode 3.2):
2173 * - UCHAR_BIDI_CLASS: 0/18 (U_LEFT_TO_RIGHT/U_BOUNDARY_NEUTRAL)
2174 * - UCHAR_SCRIPT: 0/45 (USCRIPT_COMMON/USCRIPT_TAGBANWA)
2175 * - UCHAR_IDEOGRAPHIC: 0/1 (FALSE/TRUE)
2177 * For undefined UProperty constant values, min/max values will be 0/-1.
2179 * @param which UProperty selector constant, identifies which binary property to check.
2180 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
2181 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.
2182 * @return Maximum value returned by u_getIntPropertyValue for a Unicode property.
2183 * <=0 if the property selector is out of range.
2186 * @see u_hasBinaryProperty
2187 * @see u_getUnicodeVersion
2188 * @see u_getIntPropertyMaxValue
2189 * @see u_getIntPropertyValue
2192 U_STABLE
int32_t U_EXPORT2
2193 u_getIntPropertyMaxValue(UProperty which
);
2196 * Get the numeric value for a Unicode code point as defined in the
2197 * Unicode Character Database.
2199 * A "double" return type is necessary because
2200 * some numeric values are fractions, negative, or too large for int32_t.
2202 * For characters without any numeric values in the Unicode Character Database,
2203 * this function will return U_NO_NUMERIC_VALUE.
2204 * Note: This is different from the Unicode Standard which specifies NaN as the default value.
2205 * (NaN is not available on all platforms.)
2207 * Similar to java.lang.Character.getNumericValue(), but u_getNumericValue()
2208 * also supports negative values, large values, and fractions,
2209 * while Java's getNumericValue() returns values 10..35 for ASCII letters.
2211 * @param c Code point to get the numeric value for.
2212 * @return Numeric value of c, or U_NO_NUMERIC_VALUE if none is defined.
2214 * @see U_NO_NUMERIC_VALUE
2217 U_STABLE
double U_EXPORT2
2218 u_getNumericValue(UChar32 c
);
2221 * Special value that is returned by u_getNumericValue when
2222 * no numeric value is defined for a code point.
2224 * @see u_getNumericValue
2227 #define U_NO_NUMERIC_VALUE ((double)-123456789.)
2230 * Determines whether the specified code point has the general category "Ll"
2231 * (lowercase letter).
2233 * Same as java.lang.Character.isLowerCase().
2235 * This misses some characters that are also lowercase but
2236 * have a different general category value.
2237 * In order to include those, use UCHAR_LOWERCASE.
2239 * In addition to being equivalent to a Java function, this also serves
2240 * as a C/POSIX migration function.
2241 * See the comments about C/POSIX character classification functions in the
2242 * documentation at the top of this header file.
2244 * @param c the code point to be tested
2245 * @return TRUE if the code point is an Ll lowercase letter
2247 * @see UCHAR_LOWERCASE
2252 U_STABLE UBool U_EXPORT2
2253 u_islower(UChar32 c
);
2256 * Determines whether the specified code point has the general category "Lu"
2257 * (uppercase letter).
2259 * Same as java.lang.Character.isUpperCase().
2261 * This misses some characters that are also uppercase but
2262 * have a different general category value.
2263 * In order to include those, use UCHAR_UPPERCASE.
2265 * In addition to being equivalent to a Java function, this also serves
2266 * as a C/POSIX migration function.
2267 * See the comments about C/POSIX character classification functions in the
2268 * documentation at the top of this header file.
2270 * @param c the code point to be tested
2271 * @return TRUE if the code point is an Lu uppercase letter
2273 * @see UCHAR_UPPERCASE
2279 U_STABLE UBool U_EXPORT2
2280 u_isupper(UChar32 c
);
2283 * Determines whether the specified code point is a titlecase letter.
2284 * True for general category "Lt" (titlecase letter).
2286 * Same as java.lang.Character.isTitleCase().
2288 * @param c the code point to be tested
2289 * @return TRUE if the code point is an Lt titlecase letter
2296 U_STABLE UBool U_EXPORT2
2297 u_istitle(UChar32 c
);
2300 * Determines whether the specified code point is a digit character according to Java.
2301 * True for characters with general category "Nd" (decimal digit numbers).
2302 * Beginning with Unicode 4, this is the same as
2303 * testing for the Numeric_Type of Decimal.
2305 * Same as java.lang.Character.isDigit().
2307 * In addition to being equivalent to a Java function, this also serves
2308 * as a C/POSIX migration function.
2309 * See the comments about C/POSIX character classification functions in the
2310 * documentation at the top of this header file.
2312 * @param c the code point to be tested
2313 * @return TRUE if the code point is a digit character according to Character.isDigit()
2317 U_STABLE UBool U_EXPORT2
2318 u_isdigit(UChar32 c
);
2321 * Determines whether the specified code point is a letter character.
2322 * True for general categories "L" (letters).
2324 * Same as java.lang.Character.isLetter().
2326 * In addition to being equivalent to a Java function, this also serves
2327 * as a C/POSIX migration function.
2328 * See the comments about C/POSIX character classification functions in the
2329 * documentation at the top of this header file.
2331 * @param c the code point to be tested
2332 * @return TRUE if the code point is a letter character
2338 U_STABLE UBool U_EXPORT2
2339 u_isalpha(UChar32 c
);
2342 * Determines whether the specified code point is an alphanumeric character
2343 * (letter or digit) according to Java.
2344 * True for characters with general categories
2345 * "L" (letters) and "Nd" (decimal digit numbers).
2347 * Same as java.lang.Character.isLetterOrDigit().
2349 * In addition to being equivalent to a Java function, this also serves
2350 * as a C/POSIX migration function.
2351 * See the comments about C/POSIX character classification functions in the
2352 * documentation at the top of this header file.
2354 * @param c the code point to be tested
2355 * @return TRUE if the code point is an alphanumeric character according to Character.isLetterOrDigit()
2359 U_STABLE UBool U_EXPORT2
2360 u_isalnum(UChar32 c
);
2363 * Determines whether the specified code point is a hexadecimal digit.
2364 * This is equivalent to u_digit(c, 16)>=0.
2365 * True for characters with general category "Nd" (decimal digit numbers)
2366 * as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII.
2367 * (That is, for letters with code points
2368 * 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)
2370 * In order to narrow the definition of hexadecimal digits to only ASCII
2371 * characters, use (c<=0x7f && u_isxdigit(c)).
2373 * This is a C/POSIX migration function.
2374 * See the comments about C/POSIX character classification functions in the
2375 * documentation at the top of this header file.
2377 * @param c the code point to be tested
2378 * @return TRUE if the code point is a hexadecimal digit
2382 U_STABLE UBool U_EXPORT2
2383 u_isxdigit(UChar32 c
);
2386 * Determines whether the specified code point is a punctuation character.
2387 * True for characters with general categories "P" (punctuation).
2389 * This is a C/POSIX migration function.
2390 * See the comments about C/POSIX character classification functions in the
2391 * documentation at the top of this header file.
2393 * @param c the code point to be tested
2394 * @return TRUE if the code point is a punctuation character
2398 U_STABLE UBool U_EXPORT2
2399 u_ispunct(UChar32 c
);
2402 * Determines whether the specified code point is a "graphic" character
2403 * (printable, excluding spaces).
2404 * TRUE for all characters except those with general categories
2405 * "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates),
2406 * "Cn" (unassigned), and "Z" (separators).
2408 * This is a C/POSIX migration function.
2409 * See the comments about C/POSIX character classification functions in the
2410 * documentation at the top of this header file.
2412 * @param c the code point to be tested
2413 * @return TRUE if the code point is a "graphic" character
2417 U_STABLE UBool U_EXPORT2
2418 u_isgraph(UChar32 c
);
2421 * Determines whether the specified code point is a "blank" or "horizontal space",
2422 * a character that visibly separates words on a line.
2423 * The following are equivalent definitions:
2425 * TRUE for Unicode White_Space characters except for "vertical space controls"
2426 * where "vertical space controls" are the following characters:
2427 * U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS)
2431 * TRUE for U+0009 (TAB) and characters with general category "Zs" (space separators)
2432 * except Zero Width Space (ZWSP, U+200B).
2434 * Note: There are several ICU whitespace functions; please see the uchar.h
2435 * file documentation for a detailed comparison.
2437 * This is a C/POSIX migration function.
2438 * See the comments about C/POSIX character classification functions in the
2439 * documentation at the top of this header file.
2441 * @param c the code point to be tested
2442 * @return TRUE if the code point is a "blank"
2446 U_STABLE UBool U_EXPORT2
2447 u_isblank(UChar32 c
);
2450 * Determines whether the specified code point is "defined",
2451 * which usually means that it is assigned a character.
2452 * True for general categories other than "Cn" (other, not assigned),
2453 * i.e., true for all code points mentioned in UnicodeData.txt.
2455 * Note that non-character code points (e.g., U+FDD0) are not "defined"
2456 * (they are Cn), but surrogate code points are "defined" (Cs).
2458 * Same as java.lang.Character.isDefined().
2460 * @param c the code point to be tested
2461 * @return TRUE if the code point is assigned a character
2471 U_STABLE UBool U_EXPORT2
2472 u_isdefined(UChar32 c
);
2475 * Determines if the specified character is a space character or not.
2477 * Note: There are several ICU whitespace functions; please see the uchar.h
2478 * file documentation for a detailed comparison.
2480 * This is a C/POSIX migration function.
2481 * See the comments about C/POSIX character classification functions in the
2482 * documentation at the top of this header file.
2484 * @param c the character to be tested
2485 * @return true if the character is a space character; false otherwise.
2487 * @see u_isJavaSpaceChar
2488 * @see u_isWhitespace
2489 * @see u_isUWhiteSpace
2492 U_STABLE UBool U_EXPORT2
2493 u_isspace(UChar32 c
);
2496 * Determine if the specified code point is a space character according to Java.
2497 * True for characters with general categories "Z" (separators),
2498 * which does not include control codes (e.g., TAB or Line Feed).
2500 * Same as java.lang.Character.isSpaceChar().
2502 * Note: There are several ICU whitespace functions; please see the uchar.h
2503 * file documentation for a detailed comparison.
2505 * @param c the code point to be tested
2506 * @return TRUE if the code point is a space character according to Character.isSpaceChar()
2509 * @see u_isWhitespace
2510 * @see u_isUWhiteSpace
2513 U_STABLE UBool U_EXPORT2
2514 u_isJavaSpaceChar(UChar32 c
);
2517 * Determines if the specified code point is a whitespace character according to Java/ICU.
2518 * A character is considered to be a Java whitespace character if and only
2519 * if it satisfies one of the following criteria:
2521 * - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not
2522 * also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP).
2523 * - It is U+0009 HORIZONTAL TABULATION.
2524 * - It is U+000A LINE FEED.
2525 * - It is U+000B VERTICAL TABULATION.
2526 * - It is U+000C FORM FEED.
2527 * - It is U+000D CARRIAGE RETURN.
2528 * - It is U+001C FILE SEPARATOR.
2529 * - It is U+001D GROUP SEPARATOR.
2530 * - It is U+001E RECORD SEPARATOR.
2531 * - It is U+001F UNIT SEPARATOR.
2533 * This API tries to sync with the semantics of Java's
2534 * java.lang.Character.isWhitespace(), but it may not return
2535 * the exact same results because of the Unicode version
2538 * Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs)
2539 * to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false.
2540 * See http://www.unicode.org/versions/Unicode4.0.1/
2542 * Note: There are several ICU whitespace functions; please see the uchar.h
2543 * file documentation for a detailed comparison.
2545 * @param c the code point to be tested
2546 * @return TRUE if the code point is a whitespace character according to Java/ICU
2549 * @see u_isJavaSpaceChar
2550 * @see u_isUWhiteSpace
2553 U_STABLE UBool U_EXPORT2
2554 u_isWhitespace(UChar32 c
);
2557 * Determines whether the specified code point is a control character
2558 * (as defined by this function).
2559 * A control character is one of the following:
2560 * - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f)
2561 * - U_CONTROL_CHAR (Cc)
2562 * - U_FORMAT_CHAR (Cf)
2563 * - U_LINE_SEPARATOR (Zl)
2564 * - U_PARAGRAPH_SEPARATOR (Zp)
2566 * This is a C/POSIX migration function.
2567 * See the comments about C/POSIX character classification functions in the
2568 * documentation at the top of this header file.
2570 * @param c the code point to be tested
2571 * @return TRUE if the code point is a control character
2573 * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
2577 U_STABLE UBool U_EXPORT2
2578 u_iscntrl(UChar32 c
);
2581 * Determines whether the specified code point is an ISO control code.
2582 * True for U+0000..U+001f and U+007f..U+009f (general category "Cc").
2584 * Same as java.lang.Character.isISOControl().
2586 * @param c the code point to be tested
2587 * @return TRUE if the code point is an ISO control code
2592 U_STABLE UBool U_EXPORT2
2593 u_isISOControl(UChar32 c
);
2596 * Determines whether the specified code point is a printable character.
2597 * True for general categories <em>other</em> than "C" (controls).
2599 * This is a C/POSIX migration function.
2600 * See the comments about C/POSIX character classification functions in the
2601 * documentation at the top of this header file.
2603 * @param c the code point to be tested
2604 * @return TRUE if the code point is a printable character
2606 * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
2610 U_STABLE UBool U_EXPORT2
2611 u_isprint(UChar32 c
);
2614 * Determines whether the specified code point is a base character.
2615 * True for general categories "L" (letters), "N" (numbers),
2616 * "Mc" (spacing combining marks), and "Me" (enclosing marks).
2618 * Note that this is different from the Unicode definition in
2619 * chapter 3.5, conformance clause D13,
2620 * which defines base characters to be all characters (not Cn)
2621 * that do not graphically combine with preceding characters (M)
2622 * and that are neither control (Cc) or format (Cf) characters.
2624 * @param c the code point to be tested
2625 * @return TRUE if the code point is a base character according to this function
2631 U_STABLE UBool U_EXPORT2
2632 u_isbase(UChar32 c
);
2635 * Returns the bidirectional category value for the code point,
2636 * which is used in the Unicode bidirectional algorithm
2637 * (UAX #9 http://www.unicode.org/reports/tr9/).
2638 * Note that some <em>unassigned</em> code points have bidi values
2639 * of R or AL because they are in blocks that are reserved
2640 * for Right-To-Left scripts.
2642 * Same as java.lang.Character.getDirectionality()
2644 * @param c the code point to be tested
2645 * @return the bidirectional category (UCharDirection) value
2647 * @see UCharDirection
2650 U_STABLE UCharDirection U_EXPORT2
2651 u_charDirection(UChar32 c
);
2654 * Determines whether the code point has the Bidi_Mirrored property.
2655 * This property is set for characters that are commonly used in
2656 * Right-To-Left contexts and need to be displayed with a "mirrored"
2659 * Same as java.lang.Character.isMirrored().
2660 * Same as UCHAR_BIDI_MIRRORED
2662 * @param c the code point to be tested
2663 * @return TRUE if the character has the Bidi_Mirrored property
2665 * @see UCHAR_BIDI_MIRRORED
2668 U_STABLE UBool U_EXPORT2
2669 u_isMirrored(UChar32 c
);
2672 * Maps the specified character to a "mirror-image" character.
2673 * For characters with the Bidi_Mirrored property, implementations
2674 * sometimes need a "poor man's" mapping to another Unicode
2675 * character (code point) such that the default glyph may serve
2676 * as the mirror-image of the default glyph of the specified
2677 * character. This is useful for text conversion to and from
2678 * codepages with visual order, and for displays without glyph
2679 * selection capabilities.
2681 * @param c the code point to be mapped
2682 * @return another Unicode code point that may serve as a mirror-image
2683 * substitute, or c itself if there is no such mapping or c
2684 * does not have the Bidi_Mirrored property
2686 * @see UCHAR_BIDI_MIRRORED
2690 U_STABLE UChar32 U_EXPORT2
2691 u_charMirror(UChar32 c
);
2694 * Maps the specified character to its paired bracket character.
2695 * For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror().
2696 * Otherwise c itself is returned.
2697 * See http://www.unicode.org/reports/tr9/
2699 * @param c the code point to be mapped
2700 * @return the paired bracket code point,
2701 * or c itself if there is no such mapping
2702 * (Bidi_Paired_Bracket_Type=None)
2704 * @see UCHAR_BIDI_PAIRED_BRACKET
2705 * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE
2709 U_STABLE UChar32 U_EXPORT2
2710 u_getBidiPairedBracket(UChar32 c
);
2713 * Returns the general category value for the code point.
2715 * Same as java.lang.Character.getType().
2717 * @param c the code point to be tested
2718 * @return the general category (UCharCategory) value
2720 * @see UCharCategory
2723 U_STABLE
int8_t U_EXPORT2
2724 u_charType(UChar32 c
);
2727 * Get a single-bit bit set for the general category of a character.
2728 * This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc.
2729 * Same as U_MASK(u_charType(c)).
2731 * @param c the code point to be tested
2732 * @return a single-bit mask corresponding to the general category (UCharCategory) value
2735 * @see UCharCategory
2739 #define U_GET_GC_MASK(c) U_MASK(u_charType(c))
2742 * Callback from u_enumCharTypes(), is called for each contiguous range
2743 * of code points c (where start<=c<limit)
2744 * with the same Unicode general category ("character type").
2746 * The callback function can stop the enumeration by returning FALSE.
2748 * @param context an opaque pointer, as passed into utrie_enum()
2749 * @param start the first code point in a contiguous range with value
2750 * @param limit one past the last code point in a contiguous range with value
2751 * @param type the general category for all code points in [start..limit[
2752 * @return FALSE to stop the enumeration
2755 * @see UCharCategory
2756 * @see u_enumCharTypes
2758 typedef UBool U_CALLCONV
2759 UCharEnumTypeRange(const void *context
, UChar32 start
, UChar32 limit
, UCharCategory type
);
2762 * Enumerate efficiently all code points with their Unicode general categories.
2764 * This is useful for building data structures (e.g., UnicodeSet's),
2765 * for enumerating all assigned code points (type!=U_UNASSIGNED), etc.
2767 * For each contiguous range of code points with a given general category ("character type"),
2768 * the UCharEnumTypeRange function is called.
2769 * Adjacent ranges have different types.
2770 * The Unicode Standard guarantees that the numeric value of the type is 0..31.
2772 * @param enumRange a pointer to a function that is called for each contiguous range
2773 * of code points with the same general category
2774 * @param context an opaque pointer that is passed on to the callback function
2777 * @see UCharCategory
2778 * @see UCharEnumTypeRange
2780 U_STABLE
void U_EXPORT2
2781 u_enumCharTypes(UCharEnumTypeRange
*enumRange
, const void *context
);
2783 #if !UCONFIG_NO_NORMALIZATION
2786 * Returns the combining class of the code point as specified in UnicodeData.txt.
2788 * @param c the code point of the character
2789 * @return the combining class of the character
2792 U_STABLE
uint8_t U_EXPORT2
2793 u_getCombiningClass(UChar32 c
);
2798 * Returns the decimal digit value of a decimal digit character.
2799 * Such characters have the general category "Nd" (decimal digit numbers)
2800 * and a Numeric_Type of Decimal.
2802 * Unlike ICU releases before 2.6, no digit values are returned for any
2803 * Han characters because Han number characters are often used with a special
2804 * Chinese-style number format (with characters for powers of 10 in between)
2805 * instead of in decimal-positional notation.
2806 * Unicode 4 explicitly assigns Han number characters the Numeric_Type
2807 * Numeric instead of Decimal.
2808 * See Jitterbug 1483 for more details.
2810 * Use u_getIntPropertyValue(c, UCHAR_NUMERIC_TYPE) and u_getNumericValue()
2811 * for complete numeric Unicode properties.
2813 * @param c the code point for which to get the decimal digit value
2814 * @return the decimal digit value of c,
2815 * or -1 if c is not a decimal digit character
2817 * @see u_getNumericValue
2820 U_STABLE
int32_t U_EXPORT2
2821 u_charDigitValue(UChar32 c
);
2824 * Returns the Unicode allocation block that contains the character.
2826 * @param c the code point to be tested
2827 * @return the block value (UBlockCode) for c
2832 U_STABLE UBlockCode U_EXPORT2
2833 ublock_getCode(UChar32 c
);
2836 * Retrieve the name of a Unicode character.
2837 * Depending on <code>nameChoice</code>, the character name written
2838 * into the buffer is the "modern" name or the name that was defined
2839 * in Unicode version 1.0.
2840 * The name contains only "invariant" characters
2841 * like A-Z, 0-9, space, and '-'.
2842 * Unicode 1.0 names are only retrieved if they are different from the modern
2843 * names and if the data file contains the data for them. gennames may or may
2844 * not be called with a command line option to include 1.0 names in unames.dat.
2846 * @param code The character (code point) for which to get the name.
2847 * It must be <code>0<=code<=0x10ffff</code>.
2848 * @param nameChoice Selector for which name to get.
2849 * @param buffer Destination address for copying the name.
2850 * The name will always be zero-terminated.
2851 * If there is no name, then the buffer will be set to the empty string.
2852 * @param bufferLength <code>==sizeof(buffer)</code>
2853 * @param pErrorCode Pointer to a UErrorCode variable;
2854 * check for <code>U_SUCCESS()</code> after <code>u_charName()</code>
2856 * @return The length of the name, or 0 if there is no name for this character.
2857 * If the bufferLength is less than or equal to the length, then the buffer
2858 * contains the truncated name and the returned length indicates the full
2859 * length of the name.
2860 * The length does not include the zero-termination.
2862 * @see UCharNameChoice
2863 * @see u_charFromName
2864 * @see u_enumCharNames
2867 U_STABLE
int32_t U_EXPORT2
2868 u_charName(UChar32 code
, UCharNameChoice nameChoice
,
2869 char *buffer
, int32_t bufferLength
,
2870 UErrorCode
*pErrorCode
);
2872 #ifndef U_HIDE_DEPRECATED_API
2874 * Returns an empty string.
2875 * Used to return the ISO 10646 comment for a character.
2876 * The Unicode ISO_Comment property is deprecated and has no values.
2878 * @param c The character (code point) for which to get the ISO comment.
2879 * It must be <code>0<=c<=0x10ffff</code>.
2880 * @param dest Destination address for copying the comment.
2881 * The comment will be zero-terminated if possible.
2882 * If there is no comment, then the buffer will be set to the empty string.
2883 * @param destCapacity <code>==sizeof(dest)</code>
2884 * @param pErrorCode Pointer to a UErrorCode variable;
2885 * check for <code>U_SUCCESS()</code> after <code>u_getISOComment()</code>
2889 * @deprecated ICU 49
2891 U_DEPRECATED
int32_t U_EXPORT2
2892 u_getISOComment(UChar32 c
,
2893 char *dest
, int32_t destCapacity
,
2894 UErrorCode
*pErrorCode
);
2895 #endif /* U_HIDE_DEPRECATED_API */
2898 * Find a Unicode character by its name and return its code point value.
2899 * The name is matched exactly and completely.
2900 * If the name does not correspond to a code point, <i>pErrorCode</i>
2901 * is set to <code>U_INVALID_CHAR_FOUND</code>.
2902 * A Unicode 1.0 name is matched only if it differs from the modern name.
2903 * Unicode names are all uppercase. Extended names are lowercase followed
2904 * by an uppercase hexadecimal number, and within angle brackets.
2906 * @param nameChoice Selector for which name to match.
2907 * @param name The name to match.
2908 * @param pErrorCode Pointer to a UErrorCode variable
2909 * @return The Unicode value of the code point with the given name,
2910 * or an undefined value if there is no such code point.
2912 * @see UCharNameChoice
2914 * @see u_enumCharNames
2917 U_STABLE UChar32 U_EXPORT2
2918 u_charFromName(UCharNameChoice nameChoice
,
2920 UErrorCode
*pErrorCode
);
2923 * Type of a callback function for u_enumCharNames() that gets called
2924 * for each Unicode character with the code point value and
2925 * the character name.
2926 * If such a function returns FALSE, then the enumeration is stopped.
2928 * @param context The context pointer that was passed to u_enumCharNames().
2929 * @param code The Unicode code point for the character with this name.
2930 * @param nameChoice Selector for which kind of names is enumerated.
2931 * @param name The character's name, zero-terminated.
2932 * @param length The length of the name.
2933 * @return TRUE if the enumeration should continue, FALSE to stop it.
2935 * @see UCharNameChoice
2936 * @see u_enumCharNames
2939 typedef UBool U_CALLCONV
UEnumCharNamesFn(void *context
,
2941 UCharNameChoice nameChoice
,
2946 * Enumerate all assigned Unicode characters between the start and limit
2947 * code points (start inclusive, limit exclusive) and call a function
2948 * for each, passing the code point value and the character name.
2949 * For Unicode 1.0 names, only those are enumerated that differ from the
2952 * @param start The first code point in the enumeration range.
2953 * @param limit One more than the last code point in the enumeration range
2954 * (the first one after the range).
2955 * @param fn The function that is to be called for each character name.
2956 * @param context An arbitrary pointer that is passed to the function.
2957 * @param nameChoice Selector for which kind of names to enumerate.
2958 * @param pErrorCode Pointer to a UErrorCode variable
2960 * @see UCharNameChoice
2961 * @see UEnumCharNamesFn
2963 * @see u_charFromName
2966 U_STABLE
void U_EXPORT2
2967 u_enumCharNames(UChar32 start
, UChar32 limit
,
2968 UEnumCharNamesFn
*fn
,
2970 UCharNameChoice nameChoice
,
2971 UErrorCode
*pErrorCode
);
2974 * Return the Unicode name for a given property, as given in the
2975 * Unicode database file PropertyAliases.txt.
2977 * In addition, this function maps the property
2978 * UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" /
2979 * "General_Category_Mask". These names are not in
2980 * PropertyAliases.txt.
2982 * @param property UProperty selector other than UCHAR_INVALID_CODE.
2983 * If out of range, NULL is returned.
2985 * @param nameChoice selector for which name to get. If out of range,
2986 * NULL is returned. All properties have a long name. Most
2987 * have a short name, but some do not. Unicode allows for
2988 * additional names; if present these will be returned by
2989 * U_LONG_PROPERTY_NAME + i, where i=1, 2,...
2991 * @return a pointer to the name, or NULL if either the
2992 * property or the nameChoice is out of range. If a given
2993 * nameChoice returns NULL, then all larger values of
2994 * nameChoice will return NULL, with one exception: if NULL is
2995 * returned for U_SHORT_PROPERTY_NAME, then
2996 * U_LONG_PROPERTY_NAME (and higher) may still return a
2997 * non-NULL value. The returned pointer is valid until
2998 * u_cleanup() is called.
3001 * @see UPropertyNameChoice
3004 U_STABLE
const char* U_EXPORT2
3005 u_getPropertyName(UProperty property
,
3006 UPropertyNameChoice nameChoice
);
3009 * Return the UProperty enum for a given property name, as specified
3010 * in the Unicode database file PropertyAliases.txt. Short, long, and
3011 * any other variants are recognized.
3013 * In addition, this function maps the synthetic names "gcm" /
3014 * "General_Category_Mask" to the property
3015 * UCHAR_GENERAL_CATEGORY_MASK. These names are not in
3016 * PropertyAliases.txt.
3018 * @param alias the property name to be matched. The name is compared
3019 * using "loose matching" as described in PropertyAliases.txt.
3021 * @return a UProperty enum, or UCHAR_INVALID_CODE if the given name
3022 * does not match any property.
3027 U_STABLE UProperty U_EXPORT2
3028 u_getPropertyEnum(const char* alias
);
3031 * Return the Unicode name for a given property value, as given in the
3032 * Unicode database file PropertyValueAliases.txt.
3034 * Note: Some of the names in PropertyValueAliases.txt can only be
3035 * retrieved using UCHAR_GENERAL_CATEGORY_MASK, not
3036 * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" /
3037 * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"
3038 * / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
3040 * @param property UProperty selector constant.
3041 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
3042 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
3043 * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
3044 * If out of range, NULL is returned.
3046 * @param value selector for a value for the given property. If out
3047 * of range, NULL is returned. In general, valid values range
3048 * from 0 up to some maximum. There are a few exceptions:
3049 * (1.) UCHAR_BLOCK values begin at the non-zero value
3050 * UBLOCK_BASIC_LATIN. (2.) UCHAR_CANONICAL_COMBINING_CLASS
3051 * values are not contiguous and range from 0..240. (3.)
3052 * UCHAR_GENERAL_CATEGORY_MASK values are not values of
3053 * UCharCategory, but rather mask values produced by
3054 * U_GET_GC_MASK(). This allows grouped categories such as
3055 * [:L:] to be represented. Mask values range
3056 * non-contiguously from 1..U_GC_P_MASK.
3058 * @param nameChoice selector for which name to get. If out of range,
3059 * NULL is returned. All values have a long name. Most have
3060 * a short name, but some do not. Unicode allows for
3061 * additional names; if present these will be returned by
3062 * U_LONG_PROPERTY_NAME + i, where i=1, 2,...
3064 * @return a pointer to the name, or NULL if either the
3065 * property or the nameChoice is out of range. If a given
3066 * nameChoice returns NULL, then all larger values of
3067 * nameChoice will return NULL, with one exception: if NULL is
3068 * returned for U_SHORT_PROPERTY_NAME, then
3069 * U_LONG_PROPERTY_NAME (and higher) may still return a
3070 * non-NULL value. The returned pointer is valid until
3071 * u_cleanup() is called.
3074 * @see UPropertyNameChoice
3077 U_STABLE
const char* U_EXPORT2
3078 u_getPropertyValueName(UProperty property
,
3080 UPropertyNameChoice nameChoice
);
3083 * Return the property value integer for a given value name, as
3084 * specified in the Unicode database file PropertyValueAliases.txt.
3085 * Short, long, and any other variants are recognized.
3087 * Note: Some of the names in PropertyValueAliases.txt will only be
3088 * recognized with UCHAR_GENERAL_CATEGORY_MASK, not
3089 * UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" /
3090 * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"
3091 * / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
3093 * @param property UProperty selector constant.
3094 * Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
3095 * or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
3096 * or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
3097 * If out of range, UCHAR_INVALID_CODE is returned.
3099 * @param alias the value name to be matched. The name is compared
3100 * using "loose matching" as described in
3101 * PropertyValueAliases.txt.
3103 * @return a value integer or UCHAR_INVALID_CODE if the given name
3104 * does not match any value of the given property, or if the
3105 * property is invalid. Note: UCHAR_GENERAL_CATEGORY_MASK values
3106 * are not values of UCharCategory, but rather mask values
3107 * produced by U_GET_GC_MASK(). This allows grouped
3108 * categories such as [:L:] to be represented.
3113 U_STABLE
int32_t U_EXPORT2
3114 u_getPropertyValueEnum(UProperty property
,
3118 * Determines if the specified character is permissible as the
3119 * first character in an identifier according to Unicode
3120 * (The Unicode Standard, Version 3.0, chapter 5.16 Identifiers).
3121 * True for characters with general categories "L" (letters) and "Nl" (letter numbers).
3123 * Same as java.lang.Character.isUnicodeIdentifierStart().
3124 * Same as UCHAR_ID_START
3126 * @param c the code point to be tested
3127 * @return TRUE if the code point may start an identifier
3129 * @see UCHAR_ID_START
3134 U_STABLE UBool U_EXPORT2
3135 u_isIDStart(UChar32 c
);
3138 * Determines if the specified character is permissible
3139 * in an identifier according to Java.
3140 * True for characters with general categories "L" (letters),
3141 * "Nl" (letter numbers), "Nd" (decimal digits),
3142 * "Mc" and "Mn" (combining marks), "Pc" (connecting punctuation), and
3143 * u_isIDIgnorable(c).
3145 * Same as java.lang.Character.isUnicodeIdentifierPart().
3146 * Almost the same as Unicode's ID_Continue (UCHAR_ID_CONTINUE)
3147 * except that Unicode recommends to ignore Cf which is less than
3148 * u_isIDIgnorable(c).
3150 * @param c the code point to be tested
3151 * @return TRUE if the code point may occur in an identifier according to Java
3153 * @see UCHAR_ID_CONTINUE
3155 * @see u_isIDIgnorable
3158 U_STABLE UBool U_EXPORT2
3159 u_isIDPart(UChar32 c
);
3162 * Determines if the specified character should be regarded
3163 * as an ignorable character in an identifier,
3164 * according to Java.
3165 * True for characters with general category "Cf" (format controls) as well as
3166 * non-whitespace ISO controls
3167 * (U+0000..U+0008, U+000E..U+001B, U+007F..U+009F).
3169 * Same as java.lang.Character.isIdentifierIgnorable().
3171 * Note that Unicode just recommends to ignore Cf (format controls).
3173 * @param c the code point to be tested
3174 * @return TRUE if the code point is ignorable in identifiers according to Java
3176 * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
3181 U_STABLE UBool U_EXPORT2
3182 u_isIDIgnorable(UChar32 c
);
3185 * Determines if the specified character is permissible as the
3186 * first character in a Java identifier.
3187 * In addition to u_isIDStart(c), true for characters with
3188 * general categories "Sc" (currency symbols) and "Pc" (connecting punctuation).
3190 * Same as java.lang.Character.isJavaIdentifierStart().
3192 * @param c the code point to be tested
3193 * @return TRUE if the code point may start a Java identifier
3195 * @see u_isJavaIDPart
3200 U_STABLE UBool U_EXPORT2
3201 u_isJavaIDStart(UChar32 c
);
3204 * Determines if the specified character is permissible
3205 * in a Java identifier.
3206 * In addition to u_isIDPart(c), true for characters with
3207 * general category "Sc" (currency symbols).
3209 * Same as java.lang.Character.isJavaIdentifierPart().
3211 * @param c the code point to be tested
3212 * @return TRUE if the code point may occur in a Java identifier
3214 * @see u_isIDIgnorable
3215 * @see u_isJavaIDStart
3221 U_STABLE UBool U_EXPORT2
3222 u_isJavaIDPart(UChar32 c
);
3225 * The given character is mapped to its lowercase equivalent according to
3226 * UnicodeData.txt; if the character has no lowercase equivalent, the character
3227 * itself is returned.
3229 * Same as java.lang.Character.toLowerCase().
3231 * This function only returns the simple, single-code point case mapping.
3232 * Full case mappings should be used whenever possible because they produce
3233 * better results by working on whole strings.
3234 * They take into account the string context and the language and can map
3235 * to a result string with a different length as appropriate.
3236 * Full case mappings are applied by the string case mapping functions,
3237 * see ustring.h and the UnicodeString class.
3238 * See also the User Guide chapter on C/POSIX migration:
3239 * http://icu-project.org/userguide/posix.html#case_mappings
3241 * @param c the code point to be mapped
3242 * @return the Simple_Lowercase_Mapping of the code point, if any;
3243 * otherwise the code point itself.
3246 U_STABLE UChar32 U_EXPORT2
3247 u_tolower(UChar32 c
);
3250 * The given character is mapped to its uppercase equivalent according to UnicodeData.txt;
3251 * if the character has no uppercase equivalent, the character itself is
3254 * Same as java.lang.Character.toUpperCase().
3256 * This function only returns the simple, single-code point case mapping.
3257 * Full case mappings should be used whenever possible because they produce
3258 * better results by working on whole strings.
3259 * They take into account the string context and the language and can map
3260 * to a result string with a different length as appropriate.
3261 * Full case mappings are applied by the string case mapping functions,
3262 * see ustring.h and the UnicodeString class.
3263 * See also the User Guide chapter on C/POSIX migration:
3264 * http://icu-project.org/userguide/posix.html#case_mappings
3266 * @param c the code point to be mapped
3267 * @return the Simple_Uppercase_Mapping of the code point, if any;
3268 * otherwise the code point itself.
3271 U_STABLE UChar32 U_EXPORT2
3272 u_toupper(UChar32 c
);
3275 * The given character is mapped to its titlecase equivalent
3276 * according to UnicodeData.txt;
3277 * if none is defined, the character itself is returned.
3279 * Same as java.lang.Character.toTitleCase().
3281 * This function only returns the simple, single-code point case mapping.
3282 * Full case mappings should be used whenever possible because they produce
3283 * better results by working on whole strings.
3284 * They take into account the string context and the language and can map
3285 * to a result string with a different length as appropriate.
3286 * Full case mappings are applied by the string case mapping functions,
3287 * see ustring.h and the UnicodeString class.
3288 * See also the User Guide chapter on C/POSIX migration:
3289 * http://icu-project.org/userguide/posix.html#case_mappings
3291 * @param c the code point to be mapped
3292 * @return the Simple_Titlecase_Mapping of the code point, if any;
3293 * otherwise the code point itself.
3296 U_STABLE UChar32 U_EXPORT2
3297 u_totitle(UChar32 c
);
3299 /** Option value for case folding: use default mappings defined in CaseFolding.txt. @stable ICU 2.0 */
3300 #define U_FOLD_CASE_DEFAULT 0
3303 * Option value for case folding:
3305 * Use the modified set of mappings provided in CaseFolding.txt to handle dotted I
3306 * and dotless i appropriately for Turkic languages (tr, az).
3308 * Before Unicode 3.2, CaseFolding.txt contains mappings marked with 'I' that
3309 * are to be included for default mappings and
3310 * excluded for the Turkic-specific mappings.
3312 * Unicode 3.2 CaseFolding.txt instead contains mappings marked with 'T' that
3313 * are to be excluded for default mappings and
3314 * included for the Turkic-specific mappings.
3318 #define U_FOLD_CASE_EXCLUDE_SPECIAL_I 1
3321 * The given character is mapped to its case folding equivalent according to
3322 * UnicodeData.txt and CaseFolding.txt;
3323 * if the character has no case folding equivalent, the character
3324 * itself is returned.
3326 * This function only returns the simple, single-code point case mapping.
3327 * Full case mappings should be used whenever possible because they produce
3328 * better results by working on whole strings.
3329 * They take into account the string context and the language and can map
3330 * to a result string with a different length as appropriate.
3331 * Full case mappings are applied by the string case mapping functions,
3332 * see ustring.h and the UnicodeString class.
3333 * See also the User Guide chapter on C/POSIX migration:
3334 * http://icu-project.org/userguide/posix.html#case_mappings
3336 * @param c the code point to be mapped
3337 * @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I
3338 * @return the Simple_Case_Folding of the code point, if any;
3339 * otherwise the code point itself.
3342 U_STABLE UChar32 U_EXPORT2
3343 u_foldCase(UChar32 c
, uint32_t options
);
3346 * Returns the decimal digit value of the code point in the
3349 * If the radix is not in the range <code>2<=radix<=36</code> or if the
3350 * value of <code>c</code> is not a valid digit in the specified
3351 * radix, <code>-1</code> is returned. A character is a valid digit
3352 * if at least one of the following is true:
3354 * <li>The character has a decimal digit value.
3355 * Such characters have the general category "Nd" (decimal digit numbers)
3356 * and a Numeric_Type of Decimal.
3357 * In this case the value is the character's decimal digit value.</li>
3358 * <li>The character is one of the uppercase Latin letters
3359 * <code>'A'</code> through <code>'Z'</code>.
3360 * In this case the value is <code>c-'A'+10</code>.</li>
3361 * <li>The character is one of the lowercase Latin letters
3362 * <code>'a'</code> through <code>'z'</code>.
3363 * In this case the value is <code>ch-'a'+10</code>.</li>
3364 * <li>Latin letters from both the ASCII range (0061..007A, 0041..005A)
3365 * as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A)
3366 * are recognized.</li>
3369 * Same as java.lang.Character.digit().
3371 * @param ch the code point to be tested.
3372 * @param radix the radix.
3373 * @return the numeric value represented by the character in the
3375 * or -1 if there is no value or if the value exceeds the radix.
3377 * @see UCHAR_NUMERIC_TYPE
3379 * @see u_charDigitValue
3383 U_STABLE
int32_t U_EXPORT2
3384 u_digit(UChar32 ch
, int8_t radix
);
3387 * Determines the character representation for a specific digit in
3388 * the specified radix. If the value of <code>radix</code> is not a
3389 * valid radix, or the value of <code>digit</code> is not a valid
3390 * digit in the specified radix, the null character
3391 * (<code>U+0000</code>) is returned.
3393 * The <code>radix</code> argument is valid if it is greater than or
3394 * equal to 2 and less than or equal to 36.
3395 * The <code>digit</code> argument is valid if
3396 * <code>0 <= digit < radix</code>.
3398 * If the digit is less than 10, then
3399 * <code>'0' + digit</code> is returned. Otherwise, the value
3400 * <code>'a' + digit - 10</code> is returned.
3402 * Same as java.lang.Character.forDigit().
3404 * @param digit the number to convert to a character.
3405 * @param radix the radix.
3406 * @return the <code>char</code> representation of the specified digit
3407 * in the specified radix.
3410 * @see u_charDigitValue
3414 U_STABLE UChar32 U_EXPORT2
3415 u_forDigit(int32_t digit
, int8_t radix
);
3418 * Get the "age" of the code point.
3419 * The "age" is the Unicode version when the code point was first
3420 * designated (as a non-character or for Private Use)
3421 * or assigned a character.
3422 * This can be useful to avoid emitting code points to receiving
3423 * processes that do not accept newer characters.
3424 * The data is from the UCD file DerivedAge.txt.
3426 * @param c The code point.
3427 * @param versionArray The Unicode version number array, to be filled in.
3431 U_STABLE
void U_EXPORT2
3432 u_charAge(UChar32 c
, UVersionInfo versionArray
);
3435 * Gets the Unicode version information.
3436 * The version array is filled in with the version information
3437 * for the Unicode standard that is currently used by ICU.
3438 * For example, Unicode version 3.1.1 is represented as an array with
3439 * the values { 3, 1, 1, 0 }.
3441 * @param versionArray an output array that will be filled in with
3442 * the Unicode version number
3445 U_STABLE
void U_EXPORT2
3446 u_getUnicodeVersion(UVersionInfo versionArray
);
3448 #if !UCONFIG_NO_NORMALIZATION
3450 * Get the FC_NFKC_Closure property string for a character.
3451 * See Unicode Standard Annex #15 for details, search for "FC_NFKC_Closure"
3452 * or for "FNC": http://www.unicode.org/reports/tr15/
3454 * @param c The character (code point) for which to get the FC_NFKC_Closure string.
3455 * It must be <code>0<=c<=0x10ffff</code>.
3456 * @param dest Destination address for copying the string.
3457 * The string will be zero-terminated if possible.
3458 * If there is no FC_NFKC_Closure string,
3459 * then the buffer will be set to the empty string.
3460 * @param destCapacity <code>==sizeof(dest)</code>
3461 * @param pErrorCode Pointer to a UErrorCode variable.
3462 * @return The length of the string, or 0 if there is no FC_NFKC_Closure string for this character.
3463 * If the destCapacity is less than or equal to the length, then the buffer
3464 * contains the truncated name and the returned length indicates the full
3465 * length of the name.
3466 * The length does not include the zero-termination.
3470 U_STABLE
int32_t U_EXPORT2
3471 u_getFC_NFKC_Closure(UChar32 c
, UChar
*dest
, int32_t destCapacity
, UErrorCode
*pErrorCode
);