Debian Codegraph @

intl/icu/source/common/unicode/uchar.h

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