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