Path: blob/jdk8u272-b10-aarch32-20201026/jdk/src/share/native/common/unicode/uchar.h
48729 views
// © 2016 and later: Unicode, Inc. and others.1// License & terms of use: http://www.unicode.org/copyright.html2/*3**********************************************************************4* Copyright (C) 1997-2016, International Business Machines5* Corporation and others. All Rights Reserved.6**********************************************************************7*8* File UCHAR.H9*10* Modification History:11*12* Date Name Description13* 04/02/97 aliu Creation.14* 03/29/99 helena Updated for C APIs.15* 4/15/99 Madhu Updated for C Implementation and Javadoc16* 5/20/99 Madhu Added the function u_getVersion()17* 8/19/1999 srl Upgraded scripts to Unicode 3.018* 8/27/1999 schererm UCharDirection constants: U_...19* 11/11/1999 weiv added u_isalnum(), cleaned comments20* 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion().21******************************************************************************22*/2324#ifndef UCHAR_H25#define UCHAR_H2627#include "unicode/utypes.h"28#include "unicode/stringoptions.h"29#include "unicode/ucpmap.h"3031#if !defined(USET_DEFINED) && !defined(U_IN_DOXYGEN)3233#define USET_DEFINED3435/**36* USet is the C API type corresponding to C++ class UnicodeSet.37* It is forward-declared here to avoid including unicode/uset.h file if related38* APIs are not used.39*40* @see ucnv_getUnicodeSet41* @stable ICU 2.442*/43typedef struct USet USet;4445#endif464748U_CDECL_BEGIN4950/*==========================================================================*/51/* Unicode version number */52/*==========================================================================*/53/**54* Unicode version number, default for the current ICU version.55* The actual Unicode Character Database (UCD) data is stored in uprops.dat56* and may be generated from UCD files from a different Unicode version.57* Call u_getUnicodeVersion to get the actual Unicode version of the data.58*59* @see u_getUnicodeVersion60* @stable ICU 2.061*/62#define U_UNICODE_VERSION "12.1"6364/**65* \file66* \brief C API: Unicode Properties67*68* This C API provides low-level access to the Unicode Character Database.69* In addition to raw property values, some convenience functions calculate70* derived properties, for example for Java-style programming.71*72* Unicode assigns each code point (not just assigned character) values for73* many properties.74* Most of them are simple boolean flags, or constants from a small enumerated list.75* For some properties, values are strings or other relatively more complex types.76*77* For more information see78* "About the Unicode Character Database" (http://www.unicode.org/ucd/)79* and the ICU User Guide chapter on Properties (http://icu-project.org/userguide/properties.html).80*81* Many properties are accessible via generic functions that take a UProperty selector.82* - u_hasBinaryProperty() returns a binary value (TRUE/FALSE) per property and code point.83* - u_getIntPropertyValue() returns an integer value per property and code point.84* For each supported enumerated or catalog property, there is85* an enum type for all of the property's values, and86* u_getIntPropertyValue() returns the numeric values of those constants.87* - u_getBinaryPropertySet() returns a set for each ICU-supported binary property with88* all code points for which the property is true.89* - u_getIntPropertyMap() returns a map for each90* ICU-supported enumerated/catalog/int-valued property which91* maps all Unicode code points to their values for that property.92*93* Many functions are designed to match java.lang.Character functions.94* See the individual function documentation,95* and see the JDK 1.4 java.lang.Character documentation96* at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html97*98* There are also functions that provide easy migration from C/POSIX functions99* like isblank(). Their use is generally discouraged because the C/POSIX100* standards do not define their semantics beyond the ASCII range, which means101* that different implementations exhibit very different behavior.102* Instead, Unicode properties should be used directly.103*104* There are also only a few, broad C/POSIX character classes, and they tend105* to be used for conflicting purposes. For example, the "isalpha()" class106* is sometimes used to determine word boundaries, while a more sophisticated107* approach would at least distinguish initial letters from continuation108* characters (the latter including combining marks).109* (In ICU, BreakIterator is the most sophisticated API for word boundaries.)110* Another example: There is no "istitle()" class for titlecase characters.111*112* ICU 3.4 and later provides API access for all twelve C/POSIX character classes.113* ICU implements them according to the Standard Recommendations in114* Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions115* (http://www.unicode.org/reports/tr18/#Compatibility_Properties).116*117* API access for C/POSIX character classes is as follows:118* - alpha: u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC)119* - lower: u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE)120* - upper: u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE)121* - punct: u_ispunct(c)122* - digit: u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER123* - xdigit: u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT)124* - alnum: u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM)125* - space: u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE)126* - blank: u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK)127* - cntrl: u_charType(c)==U_CONTROL_CHAR128* - graph: u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH)129* - print: u_hasBinaryProperty(c, UCHAR_POSIX_PRINT)130*131* Note: Some of the u_isxyz() functions in uchar.h predate, and do not match,132* the Standard Recommendations in UTS #18. Instead, they match Java133* functions according to their API documentation.134*135* \htmlonly136* The C/POSIX character classes are also available in UnicodeSet patterns,137* using patterns like [:graph:] or \p{graph}.138* \endhtmlonly139*140* Note: There are several ICU whitespace functions.141* Comparison:142* - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property;143* most of general categories "Z" (separators) + most whitespace ISO controls144* (including no-break spaces, but excluding IS1..IS4)145* - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces146* - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces)147* - u_isspace: Z + whitespace ISO controls (including no-break spaces)148* - u_isblank: "horizontal spaces" = TAB + Zs149*/150151/**152* Constants.153*/154155/** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */156#define UCHAR_MIN_VALUE 0157158/**159* The highest Unicode code point value (scalar value) according to160* The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up).161* For a single character, UChar32 is a simple type that can hold any code point value.162*163* @see UChar32164* @stable ICU 2.0165*/166#define UCHAR_MAX_VALUE 0x10ffff167168/**169* Get a single-bit bit set (a flag) from a bit number 0..31.170* @stable ICU 2.1171*/172#define U_MASK(x) ((uint32_t)1<<(x))173174/**175* Selection constants for Unicode properties.176* These constants are used in functions like u_hasBinaryProperty to select177* one of the Unicode properties.178*179* The properties APIs are intended to reflect Unicode properties as defined180* in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).181*182* For details about the properties see183* UAX #44: Unicode Character Database (http://www.unicode.org/reports/tr44/).184*185* Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2,186* then properties marked with "new in Unicode 3.2" are not or not fully available.187* Check u_getUnicodeVersion to be sure.188*189* @see u_hasBinaryProperty190* @see u_getIntPropertyValue191* @see u_getUnicodeVersion192* @stable ICU 2.1193*/194typedef enum UProperty {195/*196* Note: UProperty constants are parsed by preparseucd.py.197* It matches lines like198* UCHAR_<Unicode property name>=<integer>,199*/200201/* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that202debuggers display UCHAR_ALPHABETIC as the symbolic name for 0,203rather than UCHAR_BINARY_START. Likewise for other *_START204identifiers. */205206/** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha.207Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */208UCHAR_ALPHABETIC=0,209/** First constant for binary Unicode properties. @stable ICU 2.1 */210UCHAR_BINARY_START=UCHAR_ALPHABETIC,211/** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */212UCHAR_ASCII_HEX_DIGIT=1,213/** Binary property Bidi_Control.214Format controls which have specific functions215in the Bidi Algorithm. @stable ICU 2.1 */216UCHAR_BIDI_CONTROL=2,217/** Binary property Bidi_Mirrored.218Characters that may change display in RTL text.219Same as u_isMirrored.220See Bidi Algorithm, UTR 9. @stable ICU 2.1 */221UCHAR_BIDI_MIRRORED=3,222/** Binary property Dash. Variations of dashes. @stable ICU 2.1 */223UCHAR_DASH=4,224/** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2).225Ignorable in most processing.226<2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */227UCHAR_DEFAULT_IGNORABLE_CODE_POINT=5,228/** Binary property Deprecated (new in Unicode 3.2).229The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */230UCHAR_DEPRECATED=6,231/** Binary property Diacritic. Characters that linguistically modify232the meaning of another character to which they apply. @stable ICU 2.1 */233UCHAR_DIACRITIC=7,234/** Binary property Extender.235Extend the value or shape of a preceding alphabetic character,236e.g., length and iteration marks. @stable ICU 2.1 */237UCHAR_EXTENDER=8,238/** Binary property Full_Composition_Exclusion.239CompositionExclusions.txt+Singleton Decompositions+240Non-Starter Decompositions. @stable ICU 2.1 */241UCHAR_FULL_COMPOSITION_EXCLUSION=9,242/** Binary property Grapheme_Base (new in Unicode 3.2).243For programmatic determination of grapheme cluster boundaries.244[0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */245UCHAR_GRAPHEME_BASE=10,246/** Binary property Grapheme_Extend (new in Unicode 3.2).247For programmatic determination of grapheme cluster boundaries.248Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */249UCHAR_GRAPHEME_EXTEND=11,250/** Binary property Grapheme_Link (new in Unicode 3.2).251For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */252UCHAR_GRAPHEME_LINK=12,253/** Binary property Hex_Digit.254Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */255UCHAR_HEX_DIGIT=13,256/** Binary property Hyphen. Dashes used to mark connections257between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */258UCHAR_HYPHEN=14,259/** Binary property ID_Continue.260Characters that can continue an identifier.261DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out."262ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */263UCHAR_ID_CONTINUE=15,264/** Binary property ID_Start.265Characters that can start an identifier.266Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */267UCHAR_ID_START=16,268/** Binary property Ideographic.269CJKV ideographs. @stable ICU 2.1 */270UCHAR_IDEOGRAPHIC=17,271/** Binary property IDS_Binary_Operator (new in Unicode 3.2).272For programmatic determination of273Ideographic Description Sequences. @stable ICU 2.1 */274UCHAR_IDS_BINARY_OPERATOR=18,275/** Binary property IDS_Trinary_Operator (new in Unicode 3.2).276For programmatic determination of277Ideographic Description Sequences. @stable ICU 2.1 */278UCHAR_IDS_TRINARY_OPERATOR=19,279/** Binary property Join_Control.280Format controls for cursive joining and ligation. @stable ICU 2.1 */281UCHAR_JOIN_CONTROL=20,282/** Binary property Logical_Order_Exception (new in Unicode 3.2).283Characters that do not use logical order and284require special handling in most processing. @stable ICU 2.1 */285UCHAR_LOGICAL_ORDER_EXCEPTION=21,286/** Binary property Lowercase. Same as u_isULowercase, different from u_islower.287Ll+Other_Lowercase @stable ICU 2.1 */288UCHAR_LOWERCASE=22,289/** Binary property Math. Sm+Other_Math @stable ICU 2.1 */290UCHAR_MATH=23,291/** Binary property Noncharacter_Code_Point.292Code points that are explicitly defined as illegal293for the encoding of characters. @stable ICU 2.1 */294UCHAR_NONCHARACTER_CODE_POINT=24,295/** Binary property Quotation_Mark. @stable ICU 2.1 */296UCHAR_QUOTATION_MARK=25,297/** Binary property Radical (new in Unicode 3.2).298For programmatic determination of299Ideographic Description Sequences. @stable ICU 2.1 */300UCHAR_RADICAL=26,301/** Binary property Soft_Dotted (new in Unicode 3.2).302Characters with a "soft dot", like i or j.303An accent placed on these characters causes304the dot to disappear. @stable ICU 2.1 */305UCHAR_SOFT_DOTTED=27,306/** Binary property Terminal_Punctuation.307Punctuation characters that generally mark308the end of textual units. @stable ICU 2.1 */309UCHAR_TERMINAL_PUNCTUATION=28,310/** Binary property Unified_Ideograph (new in Unicode 3.2).311For programmatic determination of312Ideographic Description Sequences. @stable ICU 2.1 */313UCHAR_UNIFIED_IDEOGRAPH=29,314/** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper.315Lu+Other_Uppercase @stable ICU 2.1 */316UCHAR_UPPERCASE=30,317/** Binary property White_Space.318Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace.319Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */320UCHAR_WHITE_SPACE=31,321/** Binary property XID_Continue.322ID_Continue modified to allow closure under323normalization forms NFKC and NFKD. @stable ICU 2.1 */324UCHAR_XID_CONTINUE=32,325/** Binary property XID_Start. ID_Start modified to allow326closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */327UCHAR_XID_START=33,328/** Binary property Case_Sensitive. Either the source of a case329mapping or _in_ the target of a case mapping. Not the same as330the general category Cased_Letter. @stable ICU 2.6 */331UCHAR_CASE_SENSITIVE=34,332/** Binary property STerm (new in Unicode 4.0.1).333Sentence Terminal. Used in UAX #29: Text Boundaries334(http://www.unicode.org/reports/tr29/)335@stable ICU 3.0 */336UCHAR_S_TERM=35,337/** Binary property Variation_Selector (new in Unicode 4.0.1).338Indicates all those characters that qualify as Variation Selectors.339For details on the behavior of these characters,340see StandardizedVariants.html and 15.6 Variation Selectors.341@stable ICU 3.0 */342UCHAR_VARIATION_SELECTOR=36,343/** Binary property NFD_Inert.344ICU-specific property for characters that are inert under NFD,345i.e., they do not interact with adjacent characters.346See the documentation for the Normalizer2 class and the347Normalizer2::isInert() method.348@stable ICU 3.0 */349UCHAR_NFD_INERT=37,350/** Binary property NFKD_Inert.351ICU-specific property for characters that are inert under NFKD,352i.e., they do not interact with adjacent characters.353See the documentation for the Normalizer2 class and the354Normalizer2::isInert() method.355@stable ICU 3.0 */356UCHAR_NFKD_INERT=38,357/** Binary property NFC_Inert.358ICU-specific property for characters that are inert under NFC,359i.e., they do not interact with adjacent characters.360See the documentation for the Normalizer2 class and the361Normalizer2::isInert() method.362@stable ICU 3.0 */363UCHAR_NFC_INERT=39,364/** Binary property NFKC_Inert.365ICU-specific property for characters that are inert under NFKC,366i.e., they do not interact with adjacent characters.367See the documentation for the Normalizer2 class and the368Normalizer2::isInert() method.369@stable ICU 3.0 */370UCHAR_NFKC_INERT=40,371/** Binary Property Segment_Starter.372ICU-specific property for characters that are starters in terms of373Unicode normalization and combining character sequences.374They have ccc=0 and do not occur in non-initial position of the375canonical decomposition of any character376(like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)).377ICU uses this property for segmenting a string for generating a set of378canonically equivalent strings, e.g. for canonical closure while379processing collation tailoring rules.380@stable ICU 3.0 */381UCHAR_SEGMENT_STARTER=41,382/** Binary property Pattern_Syntax (new in Unicode 4.1).383See UAX #31 Identifier and Pattern Syntax384(http://www.unicode.org/reports/tr31/)385@stable ICU 3.4 */386UCHAR_PATTERN_SYNTAX=42,387/** Binary property Pattern_White_Space (new in Unicode 4.1).388See UAX #31 Identifier and Pattern Syntax389(http://www.unicode.org/reports/tr31/)390@stable ICU 3.4 */391UCHAR_PATTERN_WHITE_SPACE=43,392/** Binary property alnum (a C/POSIX character class).393Implemented according to the UTS #18 Annex C Standard Recommendation.394See the uchar.h file documentation.395@stable ICU 3.4 */396UCHAR_POSIX_ALNUM=44,397/** Binary property blank (a C/POSIX character class).398Implemented according to the UTS #18 Annex C Standard Recommendation.399See the uchar.h file documentation.400@stable ICU 3.4 */401UCHAR_POSIX_BLANK=45,402/** Binary property graph (a C/POSIX character class).403Implemented according to the UTS #18 Annex C Standard Recommendation.404See the uchar.h file documentation.405@stable ICU 3.4 */406UCHAR_POSIX_GRAPH=46,407/** Binary property print (a C/POSIX character class).408Implemented according to the UTS #18 Annex C Standard Recommendation.409See the uchar.h file documentation.410@stable ICU 3.4 */411UCHAR_POSIX_PRINT=47,412/** Binary property xdigit (a C/POSIX character class).413Implemented according to the UTS #18 Annex C Standard Recommendation.414See the uchar.h file documentation.415@stable ICU 3.4 */416UCHAR_POSIX_XDIGIT=48,417/** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */418UCHAR_CASED=49,419/** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */420UCHAR_CASE_IGNORABLE=50,421/** Binary property Changes_When_Lowercased. @stable ICU 4.4 */422UCHAR_CHANGES_WHEN_LOWERCASED=51,423/** Binary property Changes_When_Uppercased. @stable ICU 4.4 */424UCHAR_CHANGES_WHEN_UPPERCASED=52,425/** Binary property Changes_When_Titlecased. @stable ICU 4.4 */426UCHAR_CHANGES_WHEN_TITLECASED=53,427/** Binary property Changes_When_Casefolded. @stable ICU 4.4 */428UCHAR_CHANGES_WHEN_CASEFOLDED=54,429/** Binary property Changes_When_Casemapped. @stable ICU 4.4 */430UCHAR_CHANGES_WHEN_CASEMAPPED=55,431/** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */432UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED=56,433/**434* Binary property Emoji.435* See http://www.unicode.org/reports/tr51/#Emoji_Properties436*437* @stable ICU 57438*/439UCHAR_EMOJI=57,440/**441* Binary property Emoji_Presentation.442* See http://www.unicode.org/reports/tr51/#Emoji_Properties443*444* @stable ICU 57445*/446UCHAR_EMOJI_PRESENTATION=58,447/**448* Binary property Emoji_Modifier.449* See http://www.unicode.org/reports/tr51/#Emoji_Properties450*451* @stable ICU 57452*/453UCHAR_EMOJI_MODIFIER=59,454/**455* Binary property Emoji_Modifier_Base.456* See http://www.unicode.org/reports/tr51/#Emoji_Properties457*458* @stable ICU 57459*/460UCHAR_EMOJI_MODIFIER_BASE=60,461/**462* Binary property Emoji_Component.463* See http://www.unicode.org/reports/tr51/#Emoji_Properties464*465* @stable ICU 60466*/467UCHAR_EMOJI_COMPONENT=61,468/**469* Binary property Regional_Indicator.470* @stable ICU 60471*/472UCHAR_REGIONAL_INDICATOR=62,473/**474* Binary property Prepended_Concatenation_Mark.475* @stable ICU 60476*/477UCHAR_PREPENDED_CONCATENATION_MARK=63,478/**479* Binary property Extended_Pictographic.480* See http://www.unicode.org/reports/tr51/#Emoji_Properties481*482* @stable ICU 62483*/484UCHAR_EXTENDED_PICTOGRAPHIC=64,485#ifndef U_HIDE_DEPRECATED_API486/**487* One more than the last constant for binary Unicode properties.488* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.489*/490UCHAR_BINARY_LIMIT,491#endif // U_HIDE_DEPRECATED_API492493/** Enumerated property Bidi_Class.494Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */495UCHAR_BIDI_CLASS=0x1000,496/** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */497UCHAR_INT_START=UCHAR_BIDI_CLASS,498/** Enumerated property Block.499Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */500UCHAR_BLOCK=0x1001,501/** Enumerated property Canonical_Combining_Class.502Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */503UCHAR_CANONICAL_COMBINING_CLASS=0x1002,504/** Enumerated property Decomposition_Type.505Returns UDecompositionType values. @stable ICU 2.2 */506UCHAR_DECOMPOSITION_TYPE=0x1003,507/** Enumerated property East_Asian_Width.508See http://www.unicode.org/reports/tr11/509Returns UEastAsianWidth values. @stable ICU 2.2 */510UCHAR_EAST_ASIAN_WIDTH=0x1004,511/** Enumerated property General_Category.512Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */513UCHAR_GENERAL_CATEGORY=0x1005,514/** Enumerated property Joining_Group.515Returns UJoiningGroup values. @stable ICU 2.2 */516UCHAR_JOINING_GROUP=0x1006,517/** Enumerated property Joining_Type.518Returns UJoiningType values. @stable ICU 2.2 */519UCHAR_JOINING_TYPE=0x1007,520/** Enumerated property Line_Break.521Returns ULineBreak values. @stable ICU 2.2 */522UCHAR_LINE_BREAK=0x1008,523/** Enumerated property Numeric_Type.524Returns UNumericType values. @stable ICU 2.2 */525UCHAR_NUMERIC_TYPE=0x1009,526/** Enumerated property Script.527Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */528UCHAR_SCRIPT=0x100A,529/** Enumerated property Hangul_Syllable_Type, new in Unicode 4.530Returns UHangulSyllableType values. @stable ICU 2.6 */531UCHAR_HANGUL_SYLLABLE_TYPE=0x100B,532/** Enumerated property NFD_Quick_Check.533Returns UNormalizationCheckResult values. @stable ICU 3.0 */534UCHAR_NFD_QUICK_CHECK=0x100C,535/** Enumerated property NFKD_Quick_Check.536Returns UNormalizationCheckResult values. @stable ICU 3.0 */537UCHAR_NFKD_QUICK_CHECK=0x100D,538/** Enumerated property NFC_Quick_Check.539Returns UNormalizationCheckResult values. @stable ICU 3.0 */540UCHAR_NFC_QUICK_CHECK=0x100E,541/** Enumerated property NFKC_Quick_Check.542Returns UNormalizationCheckResult values. @stable ICU 3.0 */543UCHAR_NFKC_QUICK_CHECK=0x100F,544/** Enumerated property Lead_Canonical_Combining_Class.545ICU-specific property for the ccc of the first code point546of the decomposition, or lccc(c)=ccc(NFD(c)[0]).547Useful for checking for canonically ordered text;548see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .549Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */550UCHAR_LEAD_CANONICAL_COMBINING_CLASS=0x1010,551/** Enumerated property Trail_Canonical_Combining_Class.552ICU-specific property for the ccc of the last code point553of the decomposition, or tccc(c)=ccc(NFD(c)[last]).554Useful for checking for canonically ordered text;555see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .556Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */557UCHAR_TRAIL_CANONICAL_COMBINING_CLASS=0x1011,558/** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1).559Used in UAX #29: Text Boundaries560(http://www.unicode.org/reports/tr29/)561Returns UGraphemeClusterBreak values. @stable ICU 3.4 */562UCHAR_GRAPHEME_CLUSTER_BREAK=0x1012,563/** Enumerated property Sentence_Break (new in Unicode 4.1).564Used in UAX #29: Text Boundaries565(http://www.unicode.org/reports/tr29/)566Returns USentenceBreak values. @stable ICU 3.4 */567UCHAR_SENTENCE_BREAK=0x1013,568/** Enumerated property Word_Break (new in Unicode 4.1).569Used in UAX #29: Text Boundaries570(http://www.unicode.org/reports/tr29/)571Returns UWordBreakValues values. @stable ICU 3.4 */572UCHAR_WORD_BREAK=0x1014,573/** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3).574Used in UAX #9: Unicode Bidirectional Algorithm575(http://www.unicode.org/reports/tr9/)576Returns UBidiPairedBracketType values. @stable ICU 52 */577UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015,578/**579* Enumerated property Indic_Positional_Category.580* New in Unicode 6.0 as provisional property Indic_Matra_Category;581* renamed and changed to informative in Unicode 8.0.582* See http://www.unicode.org/reports/tr44/#IndicPositionalCategory.txt583* @stable ICU 63584*/585UCHAR_INDIC_POSITIONAL_CATEGORY=0x1016,586/**587* Enumerated property Indic_Syllabic_Category.588* New in Unicode 6.0 as provisional; informative since Unicode 8.0.589* See http://www.unicode.org/reports/tr44/#IndicSyllabicCategory.txt590* @stable ICU 63591*/592UCHAR_INDIC_SYLLABIC_CATEGORY=0x1017,593/**594* Enumerated property Vertical_Orientation.595* Used for UAX #50 Unicode Vertical Text Layout (https://www.unicode.org/reports/tr50/).596* New as a UCD property in Unicode 10.0.597* @stable ICU 63598*/599UCHAR_VERTICAL_ORIENTATION=0x1018,600#ifndef U_HIDE_DEPRECATED_API601/**602* One more than the last constant for enumerated/integer Unicode properties.603* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.604*/605UCHAR_INT_LIMIT=0x1019,606#endif // U_HIDE_DEPRECATED_API607608/** Bitmask property General_Category_Mask.609This is the General_Category property returned as a bit mask.610When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)),611returns bit masks for UCharCategory values where exactly one bit is set.612When used with u_getPropertyValueName() and u_getPropertyValueEnum(),613a multi-bit mask is used for sets of categories like "Letters".614Mask values should be cast to uint32_t.615@stable ICU 2.4 */616UCHAR_GENERAL_CATEGORY_MASK=0x2000,617/** First constant for bit-mask Unicode properties. @stable ICU 2.4 */618UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK,619#ifndef U_HIDE_DEPRECATED_API620/**621* One more than the last constant for bit-mask Unicode properties.622* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.623*/624UCHAR_MASK_LIMIT=0x2001,625#endif // U_HIDE_DEPRECATED_API626627/** Double property Numeric_Value.628Corresponds to u_getNumericValue. @stable ICU 2.4 */629UCHAR_NUMERIC_VALUE=0x3000,630/** First constant for double Unicode properties. @stable ICU 2.4 */631UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE,632#ifndef U_HIDE_DEPRECATED_API633/**634* One more than the last constant for double Unicode properties.635* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.636*/637UCHAR_DOUBLE_LIMIT=0x3001,638#endif // U_HIDE_DEPRECATED_API639640/** String property Age.641Corresponds to u_charAge. @stable ICU 2.4 */642UCHAR_AGE=0x4000,643/** First constant for string Unicode properties. @stable ICU 2.4 */644UCHAR_STRING_START=UCHAR_AGE,645/** String property Bidi_Mirroring_Glyph.646Corresponds to u_charMirror. @stable ICU 2.4 */647UCHAR_BIDI_MIRRORING_GLYPH=0x4001,648/** String property Case_Folding.649Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */650UCHAR_CASE_FOLDING=0x4002,651#ifndef U_HIDE_DEPRECATED_API652/** Deprecated string property ISO_Comment.653Corresponds to u_getISOComment. @deprecated ICU 49 */654UCHAR_ISO_COMMENT=0x4003,655#endif /* U_HIDE_DEPRECATED_API */656/** String property Lowercase_Mapping.657Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */658UCHAR_LOWERCASE_MAPPING=0x4004,659/** String property Name.660Corresponds to u_charName. @stable ICU 2.4 */661UCHAR_NAME=0x4005,662/** String property Simple_Case_Folding.663Corresponds to u_foldCase. @stable ICU 2.4 */664UCHAR_SIMPLE_CASE_FOLDING=0x4006,665/** String property Simple_Lowercase_Mapping.666Corresponds to u_tolower. @stable ICU 2.4 */667UCHAR_SIMPLE_LOWERCASE_MAPPING=0x4007,668/** String property Simple_Titlecase_Mapping.669Corresponds to u_totitle. @stable ICU 2.4 */670UCHAR_SIMPLE_TITLECASE_MAPPING=0x4008,671/** String property Simple_Uppercase_Mapping.672Corresponds to u_toupper. @stable ICU 2.4 */673UCHAR_SIMPLE_UPPERCASE_MAPPING=0x4009,674/** String property Titlecase_Mapping.675Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */676UCHAR_TITLECASE_MAPPING=0x400A,677#ifndef U_HIDE_DEPRECATED_API678/** String property Unicode_1_Name.679This property is of little practical value.680Beginning with ICU 49, ICU APIs return an empty string for this property.681Corresponds to u_charName(U_UNICODE_10_CHAR_NAME). @deprecated ICU 49 */682UCHAR_UNICODE_1_NAME=0x400B,683#endif /* U_HIDE_DEPRECATED_API */684/** String property Uppercase_Mapping.685Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */686UCHAR_UPPERCASE_MAPPING=0x400C,687/** String property Bidi_Paired_Bracket (new in Unicode 6.3).688Corresponds to u_getBidiPairedBracket. @stable ICU 52 */689UCHAR_BIDI_PAIRED_BRACKET=0x400D,690#ifndef U_HIDE_DEPRECATED_API691/**692* One more than the last constant for string Unicode properties.693* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.694*/695UCHAR_STRING_LIMIT=0x400E,696#endif // U_HIDE_DEPRECATED_API697698/** Miscellaneous property Script_Extensions (new in Unicode 6.0).699Some characters are commonly used in multiple scripts.700For more information, see UAX #24: http://www.unicode.org/reports/tr24/.701Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h.702@stable ICU 4.6 */703UCHAR_SCRIPT_EXTENSIONS=0x7000,704/** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */705UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS,706#ifndef U_HIDE_DEPRECATED_API707/**708* One more than the last constant for Unicode properties with unusual value types.709* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.710*/711UCHAR_OTHER_PROPERTY_LIMIT=0x7001,712#endif // U_HIDE_DEPRECATED_API713714/** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */715UCHAR_INVALID_CODE = -1716} UProperty;717718/**719* Data for enumerated Unicode general category types.720* See http://www.unicode.org/Public/UNIDATA/UnicodeData.html .721* @stable ICU 2.0722*/723typedef enum UCharCategory724{725/*726* Note: UCharCategory constants and their API comments are parsed by preparseucd.py.727* It matches pairs of lines like728* / ** <Unicode 2-letter General_Category value> comment... * /729* U_<[A-Z_]+> = <integer>,730*/731732/** Non-category for unassigned and non-character code points. @stable ICU 2.0 */733U_UNASSIGNED = 0,734/** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */735U_GENERAL_OTHER_TYPES = 0,736/** Lu @stable ICU 2.0 */737U_UPPERCASE_LETTER = 1,738/** Ll @stable ICU 2.0 */739U_LOWERCASE_LETTER = 2,740/** Lt @stable ICU 2.0 */741U_TITLECASE_LETTER = 3,742/** Lm @stable ICU 2.0 */743U_MODIFIER_LETTER = 4,744/** Lo @stable ICU 2.0 */745U_OTHER_LETTER = 5,746/** Mn @stable ICU 2.0 */747U_NON_SPACING_MARK = 6,748/** Me @stable ICU 2.0 */749U_ENCLOSING_MARK = 7,750/** Mc @stable ICU 2.0 */751U_COMBINING_SPACING_MARK = 8,752/** Nd @stable ICU 2.0 */753U_DECIMAL_DIGIT_NUMBER = 9,754/** Nl @stable ICU 2.0 */755U_LETTER_NUMBER = 10,756/** No @stable ICU 2.0 */757U_OTHER_NUMBER = 11,758/** Zs @stable ICU 2.0 */759U_SPACE_SEPARATOR = 12,760/** Zl @stable ICU 2.0 */761U_LINE_SEPARATOR = 13,762/** Zp @stable ICU 2.0 */763U_PARAGRAPH_SEPARATOR = 14,764/** Cc @stable ICU 2.0 */765U_CONTROL_CHAR = 15,766/** Cf @stable ICU 2.0 */767U_FORMAT_CHAR = 16,768/** Co @stable ICU 2.0 */769U_PRIVATE_USE_CHAR = 17,770/** Cs @stable ICU 2.0 */771U_SURROGATE = 18,772/** Pd @stable ICU 2.0 */773U_DASH_PUNCTUATION = 19,774/** Ps @stable ICU 2.0 */775U_START_PUNCTUATION = 20,776/** Pe @stable ICU 2.0 */777U_END_PUNCTUATION = 21,778/** Pc @stable ICU 2.0 */779U_CONNECTOR_PUNCTUATION = 22,780/** Po @stable ICU 2.0 */781U_OTHER_PUNCTUATION = 23,782/** Sm @stable ICU 2.0 */783U_MATH_SYMBOL = 24,784/** Sc @stable ICU 2.0 */785U_CURRENCY_SYMBOL = 25,786/** Sk @stable ICU 2.0 */787U_MODIFIER_SYMBOL = 26,788/** So @stable ICU 2.0 */789U_OTHER_SYMBOL = 27,790/** Pi @stable ICU 2.0 */791U_INITIAL_PUNCTUATION = 28,792/** Pf @stable ICU 2.0 */793U_FINAL_PUNCTUATION = 29,794/**795* One higher than the last enum UCharCategory constant.796* This numeric value is stable (will not change), see797* http://www.unicode.org/policies/stability_policy.html#Property_Value798*799* @stable ICU 2.0800*/801U_CHAR_CATEGORY_COUNT802} UCharCategory;803804/**805* U_GC_XX_MASK constants are bit flags corresponding to Unicode806* general category values.807* For each category, the nth bit is set if the numeric value of the808* corresponding UCharCategory constant is n.809*810* There are also some U_GC_Y_MASK constants for groups of general categories811* like L for all letter categories.812*813* @see u_charType814* @see U_GET_GC_MASK815* @see UCharCategory816* @stable ICU 2.1817*/818#define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES)819820/** Mask constant for a UCharCategory. @stable ICU 2.1 */821#define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER)822/** Mask constant for a UCharCategory. @stable ICU 2.1 */823#define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER)824/** Mask constant for a UCharCategory. @stable ICU 2.1 */825#define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER)826/** Mask constant for a UCharCategory. @stable ICU 2.1 */827#define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER)828/** Mask constant for a UCharCategory. @stable ICU 2.1 */829#define U_GC_LO_MASK U_MASK(U_OTHER_LETTER)830831/** Mask constant for a UCharCategory. @stable ICU 2.1 */832#define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK)833/** Mask constant for a UCharCategory. @stable ICU 2.1 */834#define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK)835/** Mask constant for a UCharCategory. @stable ICU 2.1 */836#define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK)837838/** Mask constant for a UCharCategory. @stable ICU 2.1 */839#define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER)840/** Mask constant for a UCharCategory. @stable ICU 2.1 */841#define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER)842/** Mask constant for a UCharCategory. @stable ICU 2.1 */843#define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER)844845/** Mask constant for a UCharCategory. @stable ICU 2.1 */846#define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR)847/** Mask constant for a UCharCategory. @stable ICU 2.1 */848#define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR)849/** Mask constant for a UCharCategory. @stable ICU 2.1 */850#define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR)851852/** Mask constant for a UCharCategory. @stable ICU 2.1 */853#define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR)854/** Mask constant for a UCharCategory. @stable ICU 2.1 */855#define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR)856/** Mask constant for a UCharCategory. @stable ICU 2.1 */857#define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR)858/** Mask constant for a UCharCategory. @stable ICU 2.1 */859#define U_GC_CS_MASK U_MASK(U_SURROGATE)860861/** Mask constant for a UCharCategory. @stable ICU 2.1 */862#define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION)863/** Mask constant for a UCharCategory. @stable ICU 2.1 */864#define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION)865/** Mask constant for a UCharCategory. @stable ICU 2.1 */866#define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION)867/** Mask constant for a UCharCategory. @stable ICU 2.1 */868#define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION)869/** Mask constant for a UCharCategory. @stable ICU 2.1 */870#define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION)871872/** Mask constant for a UCharCategory. @stable ICU 2.1 */873#define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL)874/** Mask constant for a UCharCategory. @stable ICU 2.1 */875#define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL)876/** Mask constant for a UCharCategory. @stable ICU 2.1 */877#define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL)878/** Mask constant for a UCharCategory. @stable ICU 2.1 */879#define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL)880881/** Mask constant for a UCharCategory. @stable ICU 2.1 */882#define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION)883/** Mask constant for a UCharCategory. @stable ICU 2.1 */884#define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION)885886887/** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */888#define U_GC_L_MASK \889(U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK)890891/** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */892#define U_GC_LC_MASK \893(U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK)894895/** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */896#define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK)897898/** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */899#define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK)900901/** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */902#define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK)903904/** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */905#define U_GC_C_MASK \906(U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK)907908/** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */909#define U_GC_P_MASK \910(U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \911U_GC_PI_MASK|U_GC_PF_MASK)912913/** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */914#define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK)915916/**917* This specifies the language directional property of a character set.918* @stable ICU 2.0919*/920typedef enum UCharDirection {921/*922* Note: UCharDirection constants and their API comments are parsed by preparseucd.py.923* It matches pairs of lines like924* / ** <Unicode 1..3-letter Bidi_Class value> comment... * /925* U_<[A-Z_]+> = <integer>,926*/927928/** L @stable ICU 2.0 */929U_LEFT_TO_RIGHT = 0,930/** R @stable ICU 2.0 */931U_RIGHT_TO_LEFT = 1,932/** EN @stable ICU 2.0 */933U_EUROPEAN_NUMBER = 2,934/** ES @stable ICU 2.0 */935U_EUROPEAN_NUMBER_SEPARATOR = 3,936/** ET @stable ICU 2.0 */937U_EUROPEAN_NUMBER_TERMINATOR = 4,938/** AN @stable ICU 2.0 */939U_ARABIC_NUMBER = 5,940/** CS @stable ICU 2.0 */941U_COMMON_NUMBER_SEPARATOR = 6,942/** B @stable ICU 2.0 */943U_BLOCK_SEPARATOR = 7,944/** S @stable ICU 2.0 */945U_SEGMENT_SEPARATOR = 8,946/** WS @stable ICU 2.0 */947U_WHITE_SPACE_NEUTRAL = 9,948/** ON @stable ICU 2.0 */949U_OTHER_NEUTRAL = 10,950/** LRE @stable ICU 2.0 */951U_LEFT_TO_RIGHT_EMBEDDING = 11,952/** LRO @stable ICU 2.0 */953U_LEFT_TO_RIGHT_OVERRIDE = 12,954/** AL @stable ICU 2.0 */955U_RIGHT_TO_LEFT_ARABIC = 13,956/** RLE @stable ICU 2.0 */957U_RIGHT_TO_LEFT_EMBEDDING = 14,958/** RLO @stable ICU 2.0 */959U_RIGHT_TO_LEFT_OVERRIDE = 15,960/** PDF @stable ICU 2.0 */961U_POP_DIRECTIONAL_FORMAT = 16,962/** NSM @stable ICU 2.0 */963U_DIR_NON_SPACING_MARK = 17,964/** BN @stable ICU 2.0 */965U_BOUNDARY_NEUTRAL = 18,966/** FSI @stable ICU 52 */967U_FIRST_STRONG_ISOLATE = 19,968/** LRI @stable ICU 52 */969U_LEFT_TO_RIGHT_ISOLATE = 20,970/** RLI @stable ICU 52 */971U_RIGHT_TO_LEFT_ISOLATE = 21,972/** PDI @stable ICU 52 */973U_POP_DIRECTIONAL_ISOLATE = 22,974#ifndef U_HIDE_DEPRECATED_API975/**976* One more than the highest UCharDirection value.977* The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_CLASS).978*979* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.980*/981U_CHAR_DIRECTION_COUNT982#endif // U_HIDE_DEPRECATED_API983} UCharDirection;984985/**986* Bidi Paired Bracket Type constants.987*988* @see UCHAR_BIDI_PAIRED_BRACKET_TYPE989* @stable ICU 52990*/991typedef enum UBidiPairedBracketType {992/*993* Note: UBidiPairedBracketType constants are parsed by preparseucd.py.994* It matches lines like995* U_BPT_<Unicode Bidi_Paired_Bracket_Type value name>996*/997998/** Not a paired bracket. @stable ICU 52 */999U_BPT_NONE,1000/** Open paired bracket. @stable ICU 52 */1001U_BPT_OPEN,1002/** Close paired bracket. @stable ICU 52 */1003U_BPT_CLOSE,1004#ifndef U_HIDE_DEPRECATED_API1005/**1006* One more than the highest normal UBidiPairedBracketType value.1007* The highest value is available via u_getIntPropertyMaxValue(UCHAR_BIDI_PAIRED_BRACKET_TYPE).1008*1009* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1010*/1011U_BPT_COUNT /* 3 */1012#endif // U_HIDE_DEPRECATED_API1013} UBidiPairedBracketType;10141015/**1016* Constants for Unicode blocks, see the Unicode Data file Blocks.txt1017* @stable ICU 2.01018*/1019enum UBlockCode {1020/*1021* Note: UBlockCode constants are parsed by preparseucd.py.1022* It matches lines like1023* UBLOCK_<Unicode Block value name> = <integer>,1024*/10251026/** New No_Block value in Unicode 4. @stable ICU 2.6 */1027UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */10281029/** @stable ICU 2.0 */1030UBLOCK_BASIC_LATIN = 1, /*[0000]*/10311032/** @stable ICU 2.0 */1033UBLOCK_LATIN_1_SUPPLEMENT=2, /*[0080]*/10341035/** @stable ICU 2.0 */1036UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/10371038/** @stable ICU 2.0 */1039UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/10401041/** @stable ICU 2.0 */1042UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/10431044/** @stable ICU 2.0 */1045UBLOCK_SPACING_MODIFIER_LETTERS =6, /*[02B0]*/10461047/** @stable ICU 2.0 */1048UBLOCK_COMBINING_DIACRITICAL_MARKS =7, /*[0300]*/10491050/**1051* Unicode 3.2 renames this block to "Greek and Coptic".1052* @stable ICU 2.01053*/1054UBLOCK_GREEK =8, /*[0370]*/10551056/** @stable ICU 2.0 */1057UBLOCK_CYRILLIC =9, /*[0400]*/10581059/** @stable ICU 2.0 */1060UBLOCK_ARMENIAN =10, /*[0530]*/10611062/** @stable ICU 2.0 */1063UBLOCK_HEBREW =11, /*[0590]*/10641065/** @stable ICU 2.0 */1066UBLOCK_ARABIC =12, /*[0600]*/10671068/** @stable ICU 2.0 */1069UBLOCK_SYRIAC =13, /*[0700]*/10701071/** @stable ICU 2.0 */1072UBLOCK_THAANA =14, /*[0780]*/10731074/** @stable ICU 2.0 */1075UBLOCK_DEVANAGARI =15, /*[0900]*/10761077/** @stable ICU 2.0 */1078UBLOCK_BENGALI =16, /*[0980]*/10791080/** @stable ICU 2.0 */1081UBLOCK_GURMUKHI =17, /*[0A00]*/10821083/** @stable ICU 2.0 */1084UBLOCK_GUJARATI =18, /*[0A80]*/10851086/** @stable ICU 2.0 */1087UBLOCK_ORIYA =19, /*[0B00]*/10881089/** @stable ICU 2.0 */1090UBLOCK_TAMIL =20, /*[0B80]*/10911092/** @stable ICU 2.0 */1093UBLOCK_TELUGU =21, /*[0C00]*/10941095/** @stable ICU 2.0 */1096UBLOCK_KANNADA =22, /*[0C80]*/10971098/** @stable ICU 2.0 */1099UBLOCK_MALAYALAM =23, /*[0D00]*/11001101/** @stable ICU 2.0 */1102UBLOCK_SINHALA =24, /*[0D80]*/11031104/** @stable ICU 2.0 */1105UBLOCK_THAI =25, /*[0E00]*/11061107/** @stable ICU 2.0 */1108UBLOCK_LAO =26, /*[0E80]*/11091110/** @stable ICU 2.0 */1111UBLOCK_TIBETAN =27, /*[0F00]*/11121113/** @stable ICU 2.0 */1114UBLOCK_MYANMAR =28, /*[1000]*/11151116/** @stable ICU 2.0 */1117UBLOCK_GEORGIAN =29, /*[10A0]*/11181119/** @stable ICU 2.0 */1120UBLOCK_HANGUL_JAMO =30, /*[1100]*/11211122/** @stable ICU 2.0 */1123UBLOCK_ETHIOPIC =31, /*[1200]*/11241125/** @stable ICU 2.0 */1126UBLOCK_CHEROKEE =32, /*[13A0]*/11271128/** @stable ICU 2.0 */1129UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =33, /*[1400]*/11301131/** @stable ICU 2.0 */1132UBLOCK_OGHAM =34, /*[1680]*/11331134/** @stable ICU 2.0 */1135UBLOCK_RUNIC =35, /*[16A0]*/11361137/** @stable ICU 2.0 */1138UBLOCK_KHMER =36, /*[1780]*/11391140/** @stable ICU 2.0 */1141UBLOCK_MONGOLIAN =37, /*[1800]*/11421143/** @stable ICU 2.0 */1144UBLOCK_LATIN_EXTENDED_ADDITIONAL =38, /*[1E00]*/11451146/** @stable ICU 2.0 */1147UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/11481149/** @stable ICU 2.0 */1150UBLOCK_GENERAL_PUNCTUATION =40, /*[2000]*/11511152/** @stable ICU 2.0 */1153UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS =41, /*[2070]*/11541155/** @stable ICU 2.0 */1156UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/11571158/**1159* Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols".1160* @stable ICU 2.01161*/1162UBLOCK_COMBINING_MARKS_FOR_SYMBOLS =43, /*[20D0]*/11631164/** @stable ICU 2.0 */1165UBLOCK_LETTERLIKE_SYMBOLS =44, /*[2100]*/11661167/** @stable ICU 2.0 */1168UBLOCK_NUMBER_FORMS =45, /*[2150]*/11691170/** @stable ICU 2.0 */1171UBLOCK_ARROWS =46, /*[2190]*/11721173/** @stable ICU 2.0 */1174UBLOCK_MATHEMATICAL_OPERATORS =47, /*[2200]*/11751176/** @stable ICU 2.0 */1177UBLOCK_MISCELLANEOUS_TECHNICAL =48, /*[2300]*/11781179/** @stable ICU 2.0 */1180UBLOCK_CONTROL_PICTURES =49, /*[2400]*/11811182/** @stable ICU 2.0 */1183UBLOCK_OPTICAL_CHARACTER_RECOGNITION =50, /*[2440]*/11841185/** @stable ICU 2.0 */1186UBLOCK_ENCLOSED_ALPHANUMERICS =51, /*[2460]*/11871188/** @stable ICU 2.0 */1189UBLOCK_BOX_DRAWING =52, /*[2500]*/11901191/** @stable ICU 2.0 */1192UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/11931194/** @stable ICU 2.0 */1195UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/11961197/** @stable ICU 2.0 */1198UBLOCK_MISCELLANEOUS_SYMBOLS =55, /*[2600]*/11991200/** @stable ICU 2.0 */1201UBLOCK_DINGBATS =56, /*[2700]*/12021203/** @stable ICU 2.0 */1204UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/12051206/** @stable ICU 2.0 */1207UBLOCK_CJK_RADICALS_SUPPLEMENT =58, /*[2E80]*/12081209/** @stable ICU 2.0 */1210UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/12111212/** @stable ICU 2.0 */1213UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS =60, /*[2FF0]*/12141215/** @stable ICU 2.0 */1216UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION =61, /*[3000]*/12171218/** @stable ICU 2.0 */1219UBLOCK_HIRAGANA =62, /*[3040]*/12201221/** @stable ICU 2.0 */1222UBLOCK_KATAKANA =63, /*[30A0]*/12231224/** @stable ICU 2.0 */1225UBLOCK_BOPOMOFO =64, /*[3100]*/12261227/** @stable ICU 2.0 */1228UBLOCK_HANGUL_COMPATIBILITY_JAMO =65, /*[3130]*/12291230/** @stable ICU 2.0 */1231UBLOCK_KANBUN =66, /*[3190]*/12321233/** @stable ICU 2.0 */1234UBLOCK_BOPOMOFO_EXTENDED =67, /*[31A0]*/12351236/** @stable ICU 2.0 */1237UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS =68, /*[3200]*/12381239/** @stable ICU 2.0 */1240UBLOCK_CJK_COMPATIBILITY =69, /*[3300]*/12411242/** @stable ICU 2.0 */1243UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =70, /*[3400]*/12441245/** @stable ICU 2.0 */1246UBLOCK_CJK_UNIFIED_IDEOGRAPHS =71, /*[4E00]*/12471248/** @stable ICU 2.0 */1249UBLOCK_YI_SYLLABLES =72, /*[A000]*/12501251/** @stable ICU 2.0 */1252UBLOCK_YI_RADICALS =73, /*[A490]*/12531254/** @stable ICU 2.0 */1255UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/12561257/** @stable ICU 2.0 */1258UBLOCK_HIGH_SURROGATES =75, /*[D800]*/12591260/** @stable ICU 2.0 */1261UBLOCK_HIGH_PRIVATE_USE_SURROGATES =76, /*[DB80]*/12621263/** @stable ICU 2.0 */1264UBLOCK_LOW_SURROGATES =77, /*[DC00]*/12651266/**1267* Same as UBLOCK_PRIVATE_USE.1268* Until Unicode 3.1.1, the corresponding block name was "Private Use",1269* and multiple code point ranges had this block.1270* Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and1271* adds separate blocks for the supplementary PUAs.1272*1273* @stable ICU 2.01274*/1275UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/1276/**1277* Same as UBLOCK_PRIVATE_USE_AREA.1278* Until Unicode 3.1.1, the corresponding block name was "Private Use",1279* and multiple code point ranges had this block.1280* Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and1281* adds separate blocks for the supplementary PUAs.1282*1283* @stable ICU 2.01284*/1285UBLOCK_PRIVATE_USE = UBLOCK_PRIVATE_USE_AREA,12861287/** @stable ICU 2.0 */1288UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS =79, /*[F900]*/12891290/** @stable ICU 2.0 */1291UBLOCK_ALPHABETIC_PRESENTATION_FORMS =80, /*[FB00]*/12921293/** @stable ICU 2.0 */1294UBLOCK_ARABIC_PRESENTATION_FORMS_A =81, /*[FB50]*/12951296/** @stable ICU 2.0 */1297UBLOCK_COMBINING_HALF_MARKS =82, /*[FE20]*/12981299/** @stable ICU 2.0 */1300UBLOCK_CJK_COMPATIBILITY_FORMS =83, /*[FE30]*/13011302/** @stable ICU 2.0 */1303UBLOCK_SMALL_FORM_VARIANTS =84, /*[FE50]*/13041305/** @stable ICU 2.0 */1306UBLOCK_ARABIC_PRESENTATION_FORMS_B =85, /*[FE70]*/13071308/** @stable ICU 2.0 */1309UBLOCK_SPECIALS =86, /*[FFF0]*/13101311/** @stable ICU 2.0 */1312UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS =87, /*[FF00]*/13131314/* New blocks in Unicode 3.1 */13151316/** @stable ICU 2.0 */1317UBLOCK_OLD_ITALIC = 88, /*[10300]*/1318/** @stable ICU 2.0 */1319UBLOCK_GOTHIC = 89, /*[10330]*/1320/** @stable ICU 2.0 */1321UBLOCK_DESERET = 90, /*[10400]*/1322/** @stable ICU 2.0 */1323UBLOCK_BYZANTINE_MUSICAL_SYMBOLS = 91, /*[1D000]*/1324/** @stable ICU 2.0 */1325UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/1326/** @stable ICU 2.0 */1327UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93, /*[1D400]*/1328/** @stable ICU 2.0 */1329UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B = 94, /*[20000]*/1330/** @stable ICU 2.0 */1331UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95, /*[2F800]*/1332/** @stable ICU 2.0 */1333UBLOCK_TAGS = 96, /*[E0000]*/13341335/* New blocks in Unicode 3.2 */13361337/** @stable ICU 3.0 */1338UBLOCK_CYRILLIC_SUPPLEMENT = 97, /*[0500]*/1339/**1340* Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".1341* @stable ICU 2.21342*/1343UBLOCK_CYRILLIC_SUPPLEMENTARY = UBLOCK_CYRILLIC_SUPPLEMENT,1344/** @stable ICU 2.2 */1345UBLOCK_TAGALOG = 98, /*[1700]*/1346/** @stable ICU 2.2 */1347UBLOCK_HANUNOO = 99, /*[1720]*/1348/** @stable ICU 2.2 */1349UBLOCK_BUHID = 100, /*[1740]*/1350/** @stable ICU 2.2 */1351UBLOCK_TAGBANWA = 101, /*[1760]*/1352/** @stable ICU 2.2 */1353UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102, /*[27C0]*/1354/** @stable ICU 2.2 */1355UBLOCK_SUPPLEMENTAL_ARROWS_A = 103, /*[27F0]*/1356/** @stable ICU 2.2 */1357UBLOCK_SUPPLEMENTAL_ARROWS_B = 104, /*[2900]*/1358/** @stable ICU 2.2 */1359UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105, /*[2980]*/1360/** @stable ICU 2.2 */1361UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106, /*[2A00]*/1362/** @stable ICU 2.2 */1363UBLOCK_KATAKANA_PHONETIC_EXTENSIONS = 107, /*[31F0]*/1364/** @stable ICU 2.2 */1365UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/1366/** @stable ICU 2.2 */1367UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109, /*[F0000]*/1368/** @stable ICU 2.2 */1369UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110, /*[100000]*/13701371/* New blocks in Unicode 4 */13721373/** @stable ICU 2.6 */1374UBLOCK_LIMBU = 111, /*[1900]*/1375/** @stable ICU 2.6 */1376UBLOCK_TAI_LE = 112, /*[1950]*/1377/** @stable ICU 2.6 */1378UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/1379/** @stable ICU 2.6 */1380UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/1381/** @stable ICU 2.6 */1382UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115, /*[2B00]*/1383/** @stable ICU 2.6 */1384UBLOCK_YIJING_HEXAGRAM_SYMBOLS = 116, /*[4DC0]*/1385/** @stable ICU 2.6 */1386UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/1387/** @stable ICU 2.6 */1388UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/1389/** @stable ICU 2.6 */1390UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/1391/** @stable ICU 2.6 */1392UBLOCK_UGARITIC = 120, /*[10380]*/1393/** @stable ICU 2.6 */1394UBLOCK_SHAVIAN = 121, /*[10450]*/1395/** @stable ICU 2.6 */1396UBLOCK_OSMANYA = 122, /*[10480]*/1397/** @stable ICU 2.6 */1398UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/1399/** @stable ICU 2.6 */1400UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/1401/** @stable ICU 2.6 */1402UBLOCK_VARIATION_SELECTORS_SUPPLEMENT = 125, /*[E0100]*/14031404/* New blocks in Unicode 4.1 */14051406/** @stable ICU 3.4 */1407UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION = 126, /*[1D200]*/1408/** @stable ICU 3.4 */1409UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/1410/** @stable ICU 3.4 */1411UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/1412/** @stable ICU 3.4 */1413UBLOCK_BUGINESE = 129, /*[1A00]*/1414/** @stable ICU 3.4 */1415UBLOCK_CJK_STROKES = 130, /*[31C0]*/1416/** @stable ICU 3.4 */1417UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131, /*[1DC0]*/1418/** @stable ICU 3.4 */1419UBLOCK_COPTIC = 132, /*[2C80]*/1420/** @stable ICU 3.4 */1421UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/1422/** @stable ICU 3.4 */1423UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/1424/** @stable ICU 3.4 */1425UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/1426/** @stable ICU 3.4 */1427UBLOCK_GLAGOLITIC = 136, /*[2C00]*/1428/** @stable ICU 3.4 */1429UBLOCK_KHAROSHTHI = 137, /*[10A00]*/1430/** @stable ICU 3.4 */1431UBLOCK_MODIFIER_TONE_LETTERS = 138, /*[A700]*/1432/** @stable ICU 3.4 */1433UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/1434/** @stable ICU 3.4 */1435UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/1436/** @stable ICU 3.4 */1437UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT = 141, /*[1D80]*/1438/** @stable ICU 3.4 */1439UBLOCK_SUPPLEMENTAL_PUNCTUATION = 142, /*[2E00]*/1440/** @stable ICU 3.4 */1441UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/1442/** @stable ICU 3.4 */1443UBLOCK_TIFINAGH = 144, /*[2D30]*/1444/** @stable ICU 3.4 */1445UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/14461447/* New blocks in Unicode 5.0 */14481449/** @stable ICU 3.6 */1450UBLOCK_NKO = 146, /*[07C0]*/1451/** @stable ICU 3.6 */1452UBLOCK_BALINESE = 147, /*[1B00]*/1453/** @stable ICU 3.6 */1454UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/1455/** @stable ICU 3.6 */1456UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/1457/** @stable ICU 3.6 */1458UBLOCK_PHAGS_PA = 150, /*[A840]*/1459/** @stable ICU 3.6 */1460UBLOCK_PHOENICIAN = 151, /*[10900]*/1461/** @stable ICU 3.6 */1462UBLOCK_CUNEIFORM = 152, /*[12000]*/1463/** @stable ICU 3.6 */1464UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153, /*[12400]*/1465/** @stable ICU 3.6 */1466UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/14671468/* New blocks in Unicode 5.1 */14691470/** @stable ICU 4.0 */1471UBLOCK_SUNDANESE = 155, /*[1B80]*/1472/** @stable ICU 4.0 */1473UBLOCK_LEPCHA = 156, /*[1C00]*/1474/** @stable ICU 4.0 */1475UBLOCK_OL_CHIKI = 157, /*[1C50]*/1476/** @stable ICU 4.0 */1477UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/1478/** @stable ICU 4.0 */1479UBLOCK_VAI = 159, /*[A500]*/1480/** @stable ICU 4.0 */1481UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/1482/** @stable ICU 4.0 */1483UBLOCK_SAURASHTRA = 161, /*[A880]*/1484/** @stable ICU 4.0 */1485UBLOCK_KAYAH_LI = 162, /*[A900]*/1486/** @stable ICU 4.0 */1487UBLOCK_REJANG = 163, /*[A930]*/1488/** @stable ICU 4.0 */1489UBLOCK_CHAM = 164, /*[AA00]*/1490/** @stable ICU 4.0 */1491UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/1492/** @stable ICU 4.0 */1493UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/1494/** @stable ICU 4.0 */1495UBLOCK_LYCIAN = 167, /*[10280]*/1496/** @stable ICU 4.0 */1497UBLOCK_CARIAN = 168, /*[102A0]*/1498/** @stable ICU 4.0 */1499UBLOCK_LYDIAN = 169, /*[10920]*/1500/** @stable ICU 4.0 */1501UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/1502/** @stable ICU 4.0 */1503UBLOCK_DOMINO_TILES = 171, /*[1F030]*/15041505/* New blocks in Unicode 5.2 */15061507/** @stable ICU 4.4 */1508UBLOCK_SAMARITAN = 172, /*[0800]*/1509/** @stable ICU 4.4 */1510UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/1511/** @stable ICU 4.4 */1512UBLOCK_TAI_THAM = 174, /*[1A20]*/1513/** @stable ICU 4.4 */1514UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/1515/** @stable ICU 4.4 */1516UBLOCK_LISU = 176, /*[A4D0]*/1517/** @stable ICU 4.4 */1518UBLOCK_BAMUM = 177, /*[A6A0]*/1519/** @stable ICU 4.4 */1520UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/1521/** @stable ICU 4.4 */1522UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/1523/** @stable ICU 4.4 */1524UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/1525/** @stable ICU 4.4 */1526UBLOCK_JAVANESE = 181, /*[A980]*/1527/** @stable ICU 4.4 */1528UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/1529/** @stable ICU 4.4 */1530UBLOCK_TAI_VIET = 183, /*[AA80]*/1531/** @stable ICU 4.4 */1532UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/1533/** @stable ICU 4.4 */1534UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/1535/** @stable ICU 4.4 */1536UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/1537/** @stable ICU 4.4 */1538UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/1539/** @stable ICU 4.4 */1540UBLOCK_AVESTAN = 188, /*[10B00]*/1541/** @stable ICU 4.4 */1542UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/1543/** @stable ICU 4.4 */1544UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/1545/** @stable ICU 4.4 */1546UBLOCK_OLD_TURKIC = 191, /*[10C00]*/1547/** @stable ICU 4.4 */1548UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/1549/** @stable ICU 4.4 */1550UBLOCK_KAITHI = 193, /*[11080]*/1551/** @stable ICU 4.4 */1552UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/1553/** @stable ICU 4.4 */1554UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/1555/** @stable ICU 4.4 */1556UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/1557/** @stable ICU 4.4 */1558UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/15591560/* New blocks in Unicode 6.0 */15611562/** @stable ICU 4.6 */1563UBLOCK_MANDAIC = 198, /*[0840]*/1564/** @stable ICU 4.6 */1565UBLOCK_BATAK = 199, /*[1BC0]*/1566/** @stable ICU 4.6 */1567UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/1568/** @stable ICU 4.6 */1569UBLOCK_BRAHMI = 201, /*[11000]*/1570/** @stable ICU 4.6 */1571UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/1572/** @stable ICU 4.6 */1573UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/1574/** @stable ICU 4.6 */1575UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/1576/** @stable ICU 4.6 */1577UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205, /*[1F300]*/1578/** @stable ICU 4.6 */1579UBLOCK_EMOTICONS = 206, /*[1F600]*/1580/** @stable ICU 4.6 */1581UBLOCK_TRANSPORT_AND_MAP_SYMBOLS = 207, /*[1F680]*/1582/** @stable ICU 4.6 */1583UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/1584/** @stable ICU 4.6 */1585UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209, /*[2B740]*/15861587/* New blocks in Unicode 6.1 */15881589/** @stable ICU 49 */1590UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/1591/** @stable ICU 49 */1592UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211, /*[1EE00]*/1593/** @stable ICU 49 */1594UBLOCK_CHAKMA = 212, /*[11100]*/1595/** @stable ICU 49 */1596UBLOCK_MEETEI_MAYEK_EXTENSIONS = 213, /*[AAE0]*/1597/** @stable ICU 49 */1598UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/1599/** @stable ICU 49 */1600UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/1601/** @stable ICU 49 */1602UBLOCK_MIAO = 216, /*[16F00]*/1603/** @stable ICU 49 */1604UBLOCK_SHARADA = 217, /*[11180]*/1605/** @stable ICU 49 */1606UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/1607/** @stable ICU 49 */1608UBLOCK_SUNDANESE_SUPPLEMENT = 219, /*[1CC0]*/1609/** @stable ICU 49 */1610UBLOCK_TAKRI = 220, /*[11680]*/16111612/* New blocks in Unicode 7.0 */16131614/** @stable ICU 54 */1615UBLOCK_BASSA_VAH = 221, /*[16AD0]*/1616/** @stable ICU 54 */1617UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/1618/** @stable ICU 54 */1619UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/1620/** @stable ICU 54 */1621UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/1622/** @stable ICU 54 */1623UBLOCK_DUPLOYAN = 225, /*[1BC00]*/1624/** @stable ICU 54 */1625UBLOCK_ELBASAN = 226, /*[10500]*/1626/** @stable ICU 54 */1627UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/1628/** @stable ICU 54 */1629UBLOCK_GRANTHA = 228, /*[11300]*/1630/** @stable ICU 54 */1631UBLOCK_KHOJKI = 229, /*[11200]*/1632/** @stable ICU 54 */1633UBLOCK_KHUDAWADI = 230, /*[112B0]*/1634/** @stable ICU 54 */1635UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/1636/** @stable ICU 54 */1637UBLOCK_LINEAR_A = 232, /*[10600]*/1638/** @stable ICU 54 */1639UBLOCK_MAHAJANI = 233, /*[11150]*/1640/** @stable ICU 54 */1641UBLOCK_MANICHAEAN = 234, /*[10AC0]*/1642/** @stable ICU 54 */1643UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/1644/** @stable ICU 54 */1645UBLOCK_MODI = 236, /*[11600]*/1646/** @stable ICU 54 */1647UBLOCK_MRO = 237, /*[16A40]*/1648/** @stable ICU 54 */1649UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/1650/** @stable ICU 54 */1651UBLOCK_NABATAEAN = 239, /*[10880]*/1652/** @stable ICU 54 */1653UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/1654/** @stable ICU 54 */1655UBLOCK_OLD_PERMIC = 241, /*[10350]*/1656/** @stable ICU 54 */1657UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/1658/** @stable ICU 54 */1659UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/1660/** @stable ICU 54 */1661UBLOCK_PALMYRENE = 244, /*[10860]*/1662/** @stable ICU 54 */1663UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/1664/** @stable ICU 54 */1665UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/1666/** @stable ICU 54 */1667UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/1668/** @stable ICU 54 */1669UBLOCK_SIDDHAM = 248, /*[11580]*/1670/** @stable ICU 54 */1671UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/1672/** @stable ICU 54 */1673UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/1674/** @stable ICU 54 */1675UBLOCK_TIRHUTA = 251, /*[11480]*/1676/** @stable ICU 54 */1677UBLOCK_WARANG_CITI = 252, /*[118A0]*/16781679/* New blocks in Unicode 8.0 */16801681/** @stable ICU 56 */1682UBLOCK_AHOM = 253, /*[11700]*/1683/** @stable ICU 56 */1684UBLOCK_ANATOLIAN_HIEROGLYPHS = 254, /*[14400]*/1685/** @stable ICU 56 */1686UBLOCK_CHEROKEE_SUPPLEMENT = 255, /*[AB70]*/1687/** @stable ICU 56 */1688UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E = 256, /*[2B820]*/1689/** @stable ICU 56 */1690UBLOCK_EARLY_DYNASTIC_CUNEIFORM = 257, /*[12480]*/1691/** @stable ICU 56 */1692UBLOCK_HATRAN = 258, /*[108E0]*/1693/** @stable ICU 56 */1694UBLOCK_MULTANI = 259, /*[11280]*/1695/** @stable ICU 56 */1696UBLOCK_OLD_HUNGARIAN = 260, /*[10C80]*/1697/** @stable ICU 56 */1698UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS = 261, /*[1F900]*/1699/** @stable ICU 56 */1700UBLOCK_SUTTON_SIGNWRITING = 262, /*[1D800]*/17011702/* New blocks in Unicode 9.0 */17031704/** @stable ICU 58 */1705UBLOCK_ADLAM = 263, /*[1E900]*/1706/** @stable ICU 58 */1707UBLOCK_BHAIKSUKI = 264, /*[11C00]*/1708/** @stable ICU 58 */1709UBLOCK_CYRILLIC_EXTENDED_C = 265, /*[1C80]*/1710/** @stable ICU 58 */1711UBLOCK_GLAGOLITIC_SUPPLEMENT = 266, /*[1E000]*/1712/** @stable ICU 58 */1713UBLOCK_IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION = 267, /*[16FE0]*/1714/** @stable ICU 58 */1715UBLOCK_MARCHEN = 268, /*[11C70]*/1716/** @stable ICU 58 */1717UBLOCK_MONGOLIAN_SUPPLEMENT = 269, /*[11660]*/1718/** @stable ICU 58 */1719UBLOCK_NEWA = 270, /*[11400]*/1720/** @stable ICU 58 */1721UBLOCK_OSAGE = 271, /*[104B0]*/1722/** @stable ICU 58 */1723UBLOCK_TANGUT = 272, /*[17000]*/1724/** @stable ICU 58 */1725UBLOCK_TANGUT_COMPONENTS = 273, /*[18800]*/17261727// New blocks in Unicode 10.017281729/** @stable ICU 60 */1730UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F = 274, /*[2CEB0]*/1731/** @stable ICU 60 */1732UBLOCK_KANA_EXTENDED_A = 275, /*[1B100]*/1733/** @stable ICU 60 */1734UBLOCK_MASARAM_GONDI = 276, /*[11D00]*/1735/** @stable ICU 60 */1736UBLOCK_NUSHU = 277, /*[1B170]*/1737/** @stable ICU 60 */1738UBLOCK_SOYOMBO = 278, /*[11A50]*/1739/** @stable ICU 60 */1740UBLOCK_SYRIAC_SUPPLEMENT = 279, /*[0860]*/1741/** @stable ICU 60 */1742UBLOCK_ZANABAZAR_SQUARE = 280, /*[11A00]*/17431744// New blocks in Unicode 11.017451746/** @stable ICU 62 */1747UBLOCK_CHESS_SYMBOLS = 281, /*[1FA00]*/1748/** @stable ICU 62 */1749UBLOCK_DOGRA = 282, /*[11800]*/1750/** @stable ICU 62 */1751UBLOCK_GEORGIAN_EXTENDED = 283, /*[1C90]*/1752/** @stable ICU 62 */1753UBLOCK_GUNJALA_GONDI = 284, /*[11D60]*/1754/** @stable ICU 62 */1755UBLOCK_HANIFI_ROHINGYA = 285, /*[10D00]*/1756/** @stable ICU 62 */1757UBLOCK_INDIC_SIYAQ_NUMBERS = 286, /*[1EC70]*/1758/** @stable ICU 62 */1759UBLOCK_MAKASAR = 287, /*[11EE0]*/1760/** @stable ICU 62 */1761UBLOCK_MAYAN_NUMERALS = 288, /*[1D2E0]*/1762/** @stable ICU 62 */1763UBLOCK_MEDEFAIDRIN = 289, /*[16E40]*/1764/** @stable ICU 62 */1765UBLOCK_OLD_SOGDIAN = 290, /*[10F00]*/1766/** @stable ICU 62 */1767UBLOCK_SOGDIAN = 291, /*[10F30]*/17681769// New blocks in Unicode 12.017701771/** @stable ICU 64 */1772UBLOCK_EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS = 292, /*[13430]*/1773/** @stable ICU 64 */1774UBLOCK_ELYMAIC = 293, /*[10FE0]*/1775/** @stable ICU 64 */1776UBLOCK_NANDINAGARI = 294, /*[119A0]*/1777/** @stable ICU 64 */1778UBLOCK_NYIAKENG_PUACHUE_HMONG = 295, /*[1E100]*/1779/** @stable ICU 64 */1780UBLOCK_OTTOMAN_SIYAQ_NUMBERS = 296, /*[1ED00]*/1781/** @stable ICU 64 */1782UBLOCK_SMALL_KANA_EXTENSION = 297, /*[1B130]*/1783/** @stable ICU 64 */1784UBLOCK_SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A = 298, /*[1FA70]*/1785/** @stable ICU 64 */1786UBLOCK_TAMIL_SUPPLEMENT = 299, /*[11FC0]*/1787/** @stable ICU 64 */1788UBLOCK_WANCHO = 300, /*[1E2C0]*/17891790#ifndef U_HIDE_DEPRECATED_API1791/**1792* One more than the highest normal UBlockCode value.1793* The highest value is available via u_getIntPropertyMaxValue(UCHAR_BLOCK).1794*1795* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1796*/1797UBLOCK_COUNT = 301,1798#endif // U_HIDE_DEPRECATED_API17991800/** @stable ICU 2.0 */1801UBLOCK_INVALID_CODE=-11802};18031804/** @stable ICU 2.0 */1805typedef enum UBlockCode UBlockCode;18061807/**1808* East Asian Width constants.1809*1810* @see UCHAR_EAST_ASIAN_WIDTH1811* @see u_getIntPropertyValue1812* @stable ICU 2.21813*/1814typedef enum UEastAsianWidth {1815/*1816* Note: UEastAsianWidth constants are parsed by preparseucd.py.1817* It matches lines like1818* U_EA_<Unicode East_Asian_Width value name>1819*/18201821U_EA_NEUTRAL, /*[N]*/1822U_EA_AMBIGUOUS, /*[A]*/1823U_EA_HALFWIDTH, /*[H]*/1824U_EA_FULLWIDTH, /*[F]*/1825U_EA_NARROW, /*[Na]*/1826U_EA_WIDE, /*[W]*/1827#ifndef U_HIDE_DEPRECATED_API1828/**1829* One more than the highest normal UEastAsianWidth value.1830* The highest value is available via u_getIntPropertyMaxValue(UCHAR_EAST_ASIAN_WIDTH).1831*1832* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1833*/1834U_EA_COUNT1835#endif // U_HIDE_DEPRECATED_API1836} UEastAsianWidth;18371838/**1839* Selector constants for u_charName().1840* u_charName() returns the "modern" name of a1841* Unicode character; or the name that was defined in1842* Unicode version 1.0, before the Unicode standard merged1843* with ISO-10646; or an "extended" name that gives each1844* Unicode code point a unique name.1845*1846* @see u_charName1847* @stable ICU 2.01848*/1849typedef enum UCharNameChoice {1850/** Unicode character name (Name property). @stable ICU 2.0 */1851U_UNICODE_CHAR_NAME,1852#ifndef U_HIDE_DEPRECATED_API1853/**1854* The Unicode_1_Name property value which is of little practical value.1855* Beginning with ICU 49, ICU APIs return an empty string for this name choice.1856* @deprecated ICU 491857*/1858U_UNICODE_10_CHAR_NAME,1859#endif /* U_HIDE_DEPRECATED_API */1860/** Standard or synthetic character name. @stable ICU 2.0 */1861U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2,1862/** Corrected name from NameAliases.txt. @stable ICU 4.4 */1863U_CHAR_NAME_ALIAS,1864#ifndef U_HIDE_DEPRECATED_API1865/**1866* One more than the highest normal UCharNameChoice value.1867* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1868*/1869U_CHAR_NAME_CHOICE_COUNT1870#endif // U_HIDE_DEPRECATED_API1871} UCharNameChoice;18721873/**1874* Selector constants for u_getPropertyName() and1875* u_getPropertyValueName(). These selectors are used to choose which1876* name is returned for a given property or value. All properties and1877* values have a long name. Most have a short name, but some do not.1878* Unicode allows for additional names, beyond the long and short1879* name, which would be indicated by U_LONG_PROPERTY_NAME + i, where1880* i=1, 2,...1881*1882* @see u_getPropertyName()1883* @see u_getPropertyValueName()1884* @stable ICU 2.41885*/1886typedef enum UPropertyNameChoice {1887U_SHORT_PROPERTY_NAME,1888U_LONG_PROPERTY_NAME,1889#ifndef U_HIDE_DEPRECATED_API1890/**1891* One more than the highest normal UPropertyNameChoice value.1892* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1893*/1894U_PROPERTY_NAME_CHOICE_COUNT1895#endif // U_HIDE_DEPRECATED_API1896} UPropertyNameChoice;18971898/**1899* Decomposition Type constants.1900*1901* @see UCHAR_DECOMPOSITION_TYPE1902* @stable ICU 2.21903*/1904typedef enum UDecompositionType {1905/*1906* Note: UDecompositionType constants are parsed by preparseucd.py.1907* It matches lines like1908* U_DT_<Unicode Decomposition_Type value name>1909*/19101911U_DT_NONE, /*[none]*/1912U_DT_CANONICAL, /*[can]*/1913U_DT_COMPAT, /*[com]*/1914U_DT_CIRCLE, /*[enc]*/1915U_DT_FINAL, /*[fin]*/1916U_DT_FONT, /*[font]*/1917U_DT_FRACTION, /*[fra]*/1918U_DT_INITIAL, /*[init]*/1919U_DT_ISOLATED, /*[iso]*/1920U_DT_MEDIAL, /*[med]*/1921U_DT_NARROW, /*[nar]*/1922U_DT_NOBREAK, /*[nb]*/1923U_DT_SMALL, /*[sml]*/1924U_DT_SQUARE, /*[sqr]*/1925U_DT_SUB, /*[sub]*/1926U_DT_SUPER, /*[sup]*/1927U_DT_VERTICAL, /*[vert]*/1928U_DT_WIDE, /*[wide]*/1929#ifndef U_HIDE_DEPRECATED_API1930/**1931* One more than the highest normal UDecompositionType value.1932* The highest value is available via u_getIntPropertyMaxValue(UCHAR_DECOMPOSITION_TYPE).1933*1934* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1935*/1936U_DT_COUNT /* 18 */1937#endif // U_HIDE_DEPRECATED_API1938} UDecompositionType;19391940/**1941* Joining Type constants.1942*1943* @see UCHAR_JOINING_TYPE1944* @stable ICU 2.21945*/1946typedef enum UJoiningType {1947/*1948* Note: UJoiningType constants are parsed by preparseucd.py.1949* It matches lines like1950* U_JT_<Unicode Joining_Type value name>1951*/19521953U_JT_NON_JOINING, /*[U]*/1954U_JT_JOIN_CAUSING, /*[C]*/1955U_JT_DUAL_JOINING, /*[D]*/1956U_JT_LEFT_JOINING, /*[L]*/1957U_JT_RIGHT_JOINING, /*[R]*/1958U_JT_TRANSPARENT, /*[T]*/1959#ifndef U_HIDE_DEPRECATED_API1960/**1961* One more than the highest normal UJoiningType value.1962* The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_TYPE).1963*1964* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.1965*/1966U_JT_COUNT /* 6 */1967#endif // U_HIDE_DEPRECATED_API1968} UJoiningType;19691970/**1971* Joining Group constants.1972*1973* @see UCHAR_JOINING_GROUP1974* @stable ICU 2.21975*/1976typedef enum UJoiningGroup {1977/*1978* Note: UJoiningGroup constants are parsed by preparseucd.py.1979* It matches lines like1980* U_JG_<Unicode Joining_Group value name>1981*/19821983U_JG_NO_JOINING_GROUP,1984U_JG_AIN,1985U_JG_ALAPH,1986U_JG_ALEF,1987U_JG_BEH,1988U_JG_BETH,1989U_JG_DAL,1990U_JG_DALATH_RISH,1991U_JG_E,1992U_JG_FEH,1993U_JG_FINAL_SEMKATH,1994U_JG_GAF,1995U_JG_GAMAL,1996U_JG_HAH,1997U_JG_TEH_MARBUTA_GOAL, /**< @stable ICU 4.6 */1998U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL,1999U_JG_HE,2000U_JG_HEH,2001U_JG_HEH_GOAL,2002U_JG_HETH,2003U_JG_KAF,2004U_JG_KAPH,2005U_JG_KNOTTED_HEH,2006U_JG_LAM,2007U_JG_LAMADH,2008U_JG_MEEM,2009U_JG_MIM,2010U_JG_NOON,2011U_JG_NUN,2012U_JG_PE,2013U_JG_QAF,2014U_JG_QAPH,2015U_JG_REH,2016U_JG_REVERSED_PE,2017U_JG_SAD,2018U_JG_SADHE,2019U_JG_SEEN,2020U_JG_SEMKATH,2021U_JG_SHIN,2022U_JG_SWASH_KAF,2023U_JG_SYRIAC_WAW,2024U_JG_TAH,2025U_JG_TAW,2026U_JG_TEH_MARBUTA,2027U_JG_TETH,2028U_JG_WAW,2029U_JG_YEH,2030U_JG_YEH_BARREE,2031U_JG_YEH_WITH_TAIL,2032U_JG_YUDH,2033U_JG_YUDH_HE,2034U_JG_ZAIN,2035U_JG_FE, /**< @stable ICU 2.6 */2036U_JG_KHAPH, /**< @stable ICU 2.6 */2037U_JG_ZHAIN, /**< @stable ICU 2.6 */2038U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */2039U_JG_FARSI_YEH, /**< @stable ICU 4.4 */2040U_JG_NYA, /**< @stable ICU 4.4 */2041U_JG_ROHINGYA_YEH, /**< @stable ICU 49 */2042U_JG_MANICHAEAN_ALEPH, /**< @stable ICU 54 */2043U_JG_MANICHAEAN_AYIN, /**< @stable ICU 54 */2044U_JG_MANICHAEAN_BETH, /**< @stable ICU 54 */2045U_JG_MANICHAEAN_DALETH, /**< @stable ICU 54 */2046U_JG_MANICHAEAN_DHAMEDH, /**< @stable ICU 54 */2047U_JG_MANICHAEAN_FIVE, /**< @stable ICU 54 */2048U_JG_MANICHAEAN_GIMEL, /**< @stable ICU 54 */2049U_JG_MANICHAEAN_HETH, /**< @stable ICU 54 */2050U_JG_MANICHAEAN_HUNDRED, /**< @stable ICU 54 */2051U_JG_MANICHAEAN_KAPH, /**< @stable ICU 54 */2052U_JG_MANICHAEAN_LAMEDH, /**< @stable ICU 54 */2053U_JG_MANICHAEAN_MEM, /**< @stable ICU 54 */2054U_JG_MANICHAEAN_NUN, /**< @stable ICU 54 */2055U_JG_MANICHAEAN_ONE, /**< @stable ICU 54 */2056U_JG_MANICHAEAN_PE, /**< @stable ICU 54 */2057U_JG_MANICHAEAN_QOPH, /**< @stable ICU 54 */2058U_JG_MANICHAEAN_RESH, /**< @stable ICU 54 */2059U_JG_MANICHAEAN_SADHE, /**< @stable ICU 54 */2060U_JG_MANICHAEAN_SAMEKH, /**< @stable ICU 54 */2061U_JG_MANICHAEAN_TAW, /**< @stable ICU 54 */2062U_JG_MANICHAEAN_TEN, /**< @stable ICU 54 */2063U_JG_MANICHAEAN_TETH, /**< @stable ICU 54 */2064U_JG_MANICHAEAN_THAMEDH, /**< @stable ICU 54 */2065U_JG_MANICHAEAN_TWENTY, /**< @stable ICU 54 */2066U_JG_MANICHAEAN_WAW, /**< @stable ICU 54 */2067U_JG_MANICHAEAN_YODH, /**< @stable ICU 54 */2068U_JG_MANICHAEAN_ZAYIN, /**< @stable ICU 54 */2069U_JG_STRAIGHT_WAW, /**< @stable ICU 54 */2070U_JG_AFRICAN_FEH, /**< @stable ICU 58 */2071U_JG_AFRICAN_NOON, /**< @stable ICU 58 */2072U_JG_AFRICAN_QAF, /**< @stable ICU 58 */20732074U_JG_MALAYALAM_BHA, /**< @stable ICU 60 */2075U_JG_MALAYALAM_JA, /**< @stable ICU 60 */2076U_JG_MALAYALAM_LLA, /**< @stable ICU 60 */2077U_JG_MALAYALAM_LLLA, /**< @stable ICU 60 */2078U_JG_MALAYALAM_NGA, /**< @stable ICU 60 */2079U_JG_MALAYALAM_NNA, /**< @stable ICU 60 */2080U_JG_MALAYALAM_NNNA, /**< @stable ICU 60 */2081U_JG_MALAYALAM_NYA, /**< @stable ICU 60 */2082U_JG_MALAYALAM_RA, /**< @stable ICU 60 */2083U_JG_MALAYALAM_SSA, /**< @stable ICU 60 */2084U_JG_MALAYALAM_TTA, /**< @stable ICU 60 */20852086U_JG_HANIFI_ROHINGYA_KINNA_YA, /**< @stable ICU 62 */2087U_JG_HANIFI_ROHINGYA_PA, /**< @stable ICU 62 */20882089#ifndef U_HIDE_DEPRECATED_API2090/**2091* One more than the highest normal UJoiningGroup value.2092* The highest value is available via u_getIntPropertyMaxValue(UCHAR_JOINING_GROUP).2093*2094* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2095*/2096U_JG_COUNT2097#endif // U_HIDE_DEPRECATED_API2098} UJoiningGroup;20992100/**2101* Grapheme Cluster Break constants.2102*2103* @see UCHAR_GRAPHEME_CLUSTER_BREAK2104* @stable ICU 3.42105*/2106typedef enum UGraphemeClusterBreak {2107/*2108* Note: UGraphemeClusterBreak constants are parsed by preparseucd.py.2109* It matches lines like2110* U_GCB_<Unicode Grapheme_Cluster_Break value name>2111*/21122113U_GCB_OTHER = 0, /*[XX]*/2114U_GCB_CONTROL = 1, /*[CN]*/2115U_GCB_CR = 2, /*[CR]*/2116U_GCB_EXTEND = 3, /*[EX]*/2117U_GCB_L = 4, /*[L]*/2118U_GCB_LF = 5, /*[LF]*/2119U_GCB_LV = 6, /*[LV]*/2120U_GCB_LVT = 7, /*[LVT]*/2121U_GCB_T = 8, /*[T]*/2122U_GCB_V = 9, /*[V]*/2123/** @stable ICU 4.0 */2124U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */2125/** @stable ICU 4.0 */2126U_GCB_PREPEND = 11, /*[PP]*/2127/** @stable ICU 50 */2128U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */2129/** @stable ICU 58 */2130U_GCB_E_BASE = 13, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */2131/** @stable ICU 58 */2132U_GCB_E_BASE_GAZ = 14, /*[EBG]*/2133/** @stable ICU 58 */2134U_GCB_E_MODIFIER = 15, /*[EM]*/2135/** @stable ICU 58 */2136U_GCB_GLUE_AFTER_ZWJ = 16, /*[GAZ]*/2137/** @stable ICU 58 */2138U_GCB_ZWJ = 17, /*[ZWJ]*/21392140#ifndef U_HIDE_DEPRECATED_API2141/**2142* One more than the highest normal UGraphemeClusterBreak value.2143* The highest value is available via u_getIntPropertyMaxValue(UCHAR_GRAPHEME_CLUSTER_BREAK).2144*2145* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2146*/2147U_GCB_COUNT = 182148#endif // U_HIDE_DEPRECATED_API2149} UGraphemeClusterBreak;21502151/**2152* Word Break constants.2153* (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.)2154*2155* @see UCHAR_WORD_BREAK2156* @stable ICU 3.42157*/2158typedef enum UWordBreakValues {2159/*2160* Note: UWordBreakValues constants are parsed by preparseucd.py.2161* It matches lines like2162* U_WB_<Unicode Word_Break value name>2163*/21642165U_WB_OTHER = 0, /*[XX]*/2166U_WB_ALETTER = 1, /*[LE]*/2167U_WB_FORMAT = 2, /*[FO]*/2168U_WB_KATAKANA = 3, /*[KA]*/2169U_WB_MIDLETTER = 4, /*[ML]*/2170U_WB_MIDNUM = 5, /*[MN]*/2171U_WB_NUMERIC = 6, /*[NU]*/2172U_WB_EXTENDNUMLET = 7, /*[EX]*/2173/** @stable ICU 4.0 */2174U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */2175/** @stable ICU 4.0 */2176U_WB_EXTEND = 9, /*[Extend]*/2177/** @stable ICU 4.0 */2178U_WB_LF = 10, /*[LF]*/2179/** @stable ICU 4.0 */2180U_WB_MIDNUMLET =11, /*[MB]*/2181/** @stable ICU 4.0 */2182U_WB_NEWLINE =12, /*[NL]*/2183/** @stable ICU 50 */2184U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */2185/** @stable ICU 52 */2186U_WB_HEBREW_LETTER = 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */2187/** @stable ICU 52 */2188U_WB_SINGLE_QUOTE = 15, /*[SQ]*/2189/** @stable ICU 52 */2190U_WB_DOUBLE_QUOTE = 16, /*[DQ]*/2191/** @stable ICU 58 */2192U_WB_E_BASE = 17, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */2193/** @stable ICU 58 */2194U_WB_E_BASE_GAZ = 18, /*[EBG]*/2195/** @stable ICU 58 */2196U_WB_E_MODIFIER = 19, /*[EM]*/2197/** @stable ICU 58 */2198U_WB_GLUE_AFTER_ZWJ = 20, /*[GAZ]*/2199/** @stable ICU 58 */2200U_WB_ZWJ = 21, /*[ZWJ]*/2201/** @stable ICU 62 */2202U_WB_WSEGSPACE = 22, /*[WSEGSPACE]*/22032204#ifndef U_HIDE_DEPRECATED_API2205/**2206* One more than the highest normal UWordBreakValues value.2207* The highest value is available via u_getIntPropertyMaxValue(UCHAR_WORD_BREAK).2208*2209* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2210*/2211U_WB_COUNT = 232212#endif // U_HIDE_DEPRECATED_API2213} UWordBreakValues;22142215/**2216* Sentence Break constants.2217*2218* @see UCHAR_SENTENCE_BREAK2219* @stable ICU 3.42220*/2221typedef enum USentenceBreak {2222/*2223* Note: USentenceBreak constants are parsed by preparseucd.py.2224* It matches lines like2225* U_SB_<Unicode Sentence_Break value name>2226*/22272228U_SB_OTHER = 0, /*[XX]*/2229U_SB_ATERM = 1, /*[AT]*/2230U_SB_CLOSE = 2, /*[CL]*/2231U_SB_FORMAT = 3, /*[FO]*/2232U_SB_LOWER = 4, /*[LO]*/2233U_SB_NUMERIC = 5, /*[NU]*/2234U_SB_OLETTER = 6, /*[LE]*/2235U_SB_SEP = 7, /*[SE]*/2236U_SB_SP = 8, /*[SP]*/2237U_SB_STERM = 9, /*[ST]*/2238U_SB_UPPER = 10, /*[UP]*/2239U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */2240U_SB_EXTEND = 12, /*[EX]*/2241U_SB_LF = 13, /*[LF]*/2242U_SB_SCONTINUE = 14, /*[SC]*/2243#ifndef U_HIDE_DEPRECATED_API2244/**2245* One more than the highest normal USentenceBreak value.2246* The highest value is available via u_getIntPropertyMaxValue(UCHAR_SENTENCE_BREAK).2247*2248* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2249*/2250U_SB_COUNT = 152251#endif // U_HIDE_DEPRECATED_API2252} USentenceBreak;22532254/**2255* Line Break constants.2256*2257* @see UCHAR_LINE_BREAK2258* @stable ICU 2.22259*/2260typedef enum ULineBreak {2261/*2262* Note: ULineBreak constants are parsed by preparseucd.py.2263* It matches lines like2264* U_LB_<Unicode Line_Break value name>2265*/22662267U_LB_UNKNOWN = 0, /*[XX]*/2268U_LB_AMBIGUOUS = 1, /*[AI]*/2269U_LB_ALPHABETIC = 2, /*[AL]*/2270U_LB_BREAK_BOTH = 3, /*[B2]*/2271U_LB_BREAK_AFTER = 4, /*[BA]*/2272U_LB_BREAK_BEFORE = 5, /*[BB]*/2273U_LB_MANDATORY_BREAK = 6, /*[BK]*/2274U_LB_CONTINGENT_BREAK = 7, /*[CB]*/2275U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/2276U_LB_COMBINING_MARK = 9, /*[CM]*/2277U_LB_CARRIAGE_RETURN = 10, /*[CR]*/2278U_LB_EXCLAMATION = 11, /*[EX]*/2279U_LB_GLUE = 12, /*[GL]*/2280U_LB_HYPHEN = 13, /*[HY]*/2281U_LB_IDEOGRAPHIC = 14, /*[ID]*/2282/** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */2283U_LB_INSEPARABLE = 15, /*[IN]*/2284U_LB_INSEPERABLE = U_LB_INSEPARABLE,2285U_LB_INFIX_NUMERIC = 16, /*[IS]*/2286U_LB_LINE_FEED = 17, /*[LF]*/2287U_LB_NONSTARTER = 18, /*[NS]*/2288U_LB_NUMERIC = 19, /*[NU]*/2289U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/2290U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/2291U_LB_PREFIX_NUMERIC = 22, /*[PR]*/2292U_LB_QUOTATION = 23, /*[QU]*/2293U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/2294U_LB_SURROGATE = 25, /*[SG]*/2295U_LB_SPACE = 26, /*[SP]*/2296U_LB_BREAK_SYMBOLS = 27, /*[SY]*/2297U_LB_ZWSPACE = 28, /*[ZW]*/2298/** @stable ICU 2.6 */2299U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */2300/** @stable ICU 2.6 */2301U_LB_WORD_JOINER = 30, /*[WJ]*/2302/** @stable ICU 3.4 */2303U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */2304/** @stable ICU 3.4 */2305U_LB_H3 = 32, /*[H3]*/2306/** @stable ICU 3.4 */2307U_LB_JL = 33, /*[JL]*/2308/** @stable ICU 3.4 */2309U_LB_JT = 34, /*[JT]*/2310/** @stable ICU 3.4 */2311U_LB_JV = 35, /*[JV]*/2312/** @stable ICU 4.4 */2313U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */2314/** @stable ICU 49 */2315U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */2316/** @stable ICU 49 */2317U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */2318/** @stable ICU 50 */2319U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */2320/** @stable ICU 58 */2321U_LB_E_BASE = 40, /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */2322/** @stable ICU 58 */2323U_LB_E_MODIFIER = 41, /*[EM]*/2324/** @stable ICU 58 */2325U_LB_ZWJ = 42, /*[ZWJ]*/2326#ifndef U_HIDE_DEPRECATED_API2327/**2328* One more than the highest normal ULineBreak value.2329* The highest value is available via u_getIntPropertyMaxValue(UCHAR_LINE_BREAK).2330*2331* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2332*/2333U_LB_COUNT = 432334#endif // U_HIDE_DEPRECATED_API2335} ULineBreak;23362337/**2338* Numeric Type constants.2339*2340* @see UCHAR_NUMERIC_TYPE2341* @stable ICU 2.22342*/2343typedef enum UNumericType {2344/*2345* Note: UNumericType constants are parsed by preparseucd.py.2346* It matches lines like2347* U_NT_<Unicode Numeric_Type value name>2348*/23492350U_NT_NONE, /*[None]*/2351U_NT_DECIMAL, /*[de]*/2352U_NT_DIGIT, /*[di]*/2353U_NT_NUMERIC, /*[nu]*/2354#ifndef U_HIDE_DEPRECATED_API2355/**2356* One more than the highest normal UNumericType value.2357* The highest value is available via u_getIntPropertyMaxValue(UCHAR_NUMERIC_TYPE).2358*2359* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2360*/2361U_NT_COUNT2362#endif // U_HIDE_DEPRECATED_API2363} UNumericType;23642365/**2366* Hangul Syllable Type constants.2367*2368* @see UCHAR_HANGUL_SYLLABLE_TYPE2369* @stable ICU 2.62370*/2371typedef enum UHangulSyllableType {2372/*2373* Note: UHangulSyllableType constants are parsed by preparseucd.py.2374* It matches lines like2375* U_HST_<Unicode Hangul_Syllable_Type value name>2376*/23772378U_HST_NOT_APPLICABLE, /*[NA]*/2379U_HST_LEADING_JAMO, /*[L]*/2380U_HST_VOWEL_JAMO, /*[V]*/2381U_HST_TRAILING_JAMO, /*[T]*/2382U_HST_LV_SYLLABLE, /*[LV]*/2383U_HST_LVT_SYLLABLE, /*[LVT]*/2384#ifndef U_HIDE_DEPRECATED_API2385/**2386* One more than the highest normal UHangulSyllableType value.2387* The highest value is available via u_getIntPropertyMaxValue(UCHAR_HANGUL_SYLLABLE_TYPE).2388*2389* @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.2390*/2391U_HST_COUNT2392#endif // U_HIDE_DEPRECATED_API2393} UHangulSyllableType;23942395/**2396* Indic Positional Category constants.2397*2398* @see UCHAR_INDIC_POSITIONAL_CATEGORY2399* @stable ICU 632400*/2401typedef enum UIndicPositionalCategory {2402/*2403* Note: UIndicPositionalCategory constants are parsed by preparseucd.py.2404* It matches lines like2405* U_INPC_<Unicode Indic_Positional_Category value name>2406*/24072408/** @stable ICU 63 */2409U_INPC_NA,2410/** @stable ICU 63 */2411U_INPC_BOTTOM,2412/** @stable ICU 63 */2413U_INPC_BOTTOM_AND_LEFT,2414/** @stable ICU 63 */2415U_INPC_BOTTOM_AND_RIGHT,2416/** @stable ICU 63 */2417U_INPC_LEFT,2418/** @stable ICU 63 */2419U_INPC_LEFT_AND_RIGHT,2420/** @stable ICU 63 */2421U_INPC_OVERSTRUCK,2422/** @stable ICU 63 */2423U_INPC_RIGHT,2424/** @stable ICU 63 */2425U_INPC_TOP,2426/** @stable ICU 63 */2427U_INPC_TOP_AND_BOTTOM,2428/** @stable ICU 63 */2429U_INPC_TOP_AND_BOTTOM_AND_RIGHT,2430/** @stable ICU 63 */2431U_INPC_TOP_AND_LEFT,2432/** @stable ICU 63 */2433U_INPC_TOP_AND_LEFT_AND_RIGHT,2434/** @stable ICU 63 */2435U_INPC_TOP_AND_RIGHT,2436/** @stable ICU 63 */2437U_INPC_VISUAL_ORDER_LEFT,2438} UIndicPositionalCategory;24392440/**2441* Indic Syllabic Category constants.2442*2443* @see UCHAR_INDIC_SYLLABIC_CATEGORY2444* @stable ICU 632445*/2446typedef enum UIndicSyllabicCategory {2447/*2448* Note: UIndicSyllabicCategory constants are parsed by preparseucd.py.2449* It matches lines like2450* U_INSC_<Unicode Indic_Syllabic_Category value name>2451*/24522453/** @stable ICU 63 */2454U_INSC_OTHER,2455/** @stable ICU 63 */2456U_INSC_AVAGRAHA,2457/** @stable ICU 63 */2458U_INSC_BINDU,2459/** @stable ICU 63 */2460U_INSC_BRAHMI_JOINING_NUMBER,2461/** @stable ICU 63 */2462U_INSC_CANTILLATION_MARK,2463/** @stable ICU 63 */2464U_INSC_CONSONANT,2465/** @stable ICU 63 */2466U_INSC_CONSONANT_DEAD,2467/** @stable ICU 63 */2468U_INSC_CONSONANT_FINAL,2469/** @stable ICU 63 */2470U_INSC_CONSONANT_HEAD_LETTER,2471/** @stable ICU 63 */2472U_INSC_CONSONANT_INITIAL_POSTFIXED,2473/** @stable ICU 63 */2474U_INSC_CONSONANT_KILLER,2475/** @stable ICU 63 */2476U_INSC_CONSONANT_MEDIAL,2477/** @stable ICU 63 */2478U_INSC_CONSONANT_PLACEHOLDER,2479/** @stable ICU 63 */2480U_INSC_CONSONANT_PRECEDING_REPHA,2481/** @stable ICU 63 */2482U_INSC_CONSONANT_PREFIXED,2483/** @stable ICU 63 */2484U_INSC_CONSONANT_SUBJOINED,2485/** @stable ICU 63 */2486U_INSC_CONSONANT_SUCCEEDING_REPHA,2487/** @stable ICU 63 */2488U_INSC_CONSONANT_WITH_STACKER,2489/** @stable ICU 63 */2490U_INSC_GEMINATION_MARK,2491/** @stable ICU 63 */2492U_INSC_INVISIBLE_STACKER,2493/** @stable ICU 63 */2494U_INSC_JOINER,2495/** @stable ICU 63 */2496U_INSC_MODIFYING_LETTER,2497/** @stable ICU 63 */2498U_INSC_NON_JOINER,2499/** @stable ICU 63 */2500U_INSC_NUKTA,2501/** @stable ICU 63 */2502U_INSC_NUMBER,2503/** @stable ICU 63 */2504U_INSC_NUMBER_JOINER,2505/** @stable ICU 63 */2506U_INSC_PURE_KILLER,2507/** @stable ICU 63 */2508U_INSC_REGISTER_SHIFTER,2509/** @stable ICU 63 */2510U_INSC_SYLLABLE_MODIFIER,2511/** @stable ICU 63 */2512U_INSC_TONE_LETTER,2513/** @stable ICU 63 */2514U_INSC_TONE_MARK,2515/** @stable ICU 63 */2516U_INSC_VIRAMA,2517/** @stable ICU 63 */2518U_INSC_VISARGA,2519/** @stable ICU 63 */2520U_INSC_VOWEL,2521/** @stable ICU 63 */2522U_INSC_VOWEL_DEPENDENT,2523/** @stable ICU 63 */2524U_INSC_VOWEL_INDEPENDENT,2525} UIndicSyllabicCategory;25262527/**2528* Vertical Orientation constants.2529*2530* @see UCHAR_VERTICAL_ORIENTATION2531* @stable ICU 632532*/2533typedef enum UVerticalOrientation {2534/*2535* Note: UVerticalOrientation constants are parsed by preparseucd.py.2536* It matches lines like2537* U_VO_<Unicode Vertical_Orientation value name>2538*/25392540/** @stable ICU 63 */2541U_VO_ROTATED,2542/** @stable ICU 63 */2543U_VO_TRANSFORMED_ROTATED,2544/** @stable ICU 63 */2545U_VO_TRANSFORMED_UPRIGHT,2546/** @stable ICU 63 */2547U_VO_UPRIGHT,2548} UVerticalOrientation;25492550/**2551* Check a binary Unicode property for a code point.2552*2553* Unicode, especially in version 3.2, defines many more properties than the2554* original set in UnicodeData.txt.2555*2556* The properties APIs are intended to reflect Unicode properties as defined2557* in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).2558* For details about the properties see http://www.unicode.org/ucd/ .2559* For names of Unicode properties see the UCD file PropertyAliases.txt.2560*2561* Important: If ICU is built with UCD files from Unicode versions below 3.2,2562* then properties marked with "new in Unicode 3.2" are not or not fully available.2563*2564* @param c Code point to test.2565* @param which UProperty selector constant, identifies which binary property to check.2566* Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT.2567* @return TRUE or FALSE according to the binary Unicode property value for c.2568* Also FALSE if 'which' is out of bounds or if the Unicode version2569* does not have data for the property at all, or not for this code point.2570*2571* @see UProperty2572* @see u_getBinaryPropertySet2573* @see u_getIntPropertyValue2574* @see u_getUnicodeVersion2575* @stable ICU 2.12576*/2577U_STABLE UBool U_EXPORT22578u_hasBinaryProperty(UChar32 c, UProperty which);25792580#ifndef U_HIDE_DRAFT_API25812582/**2583* Returns a frozen USet for a binary property.2584* The library retains ownership over the returned object.2585* Sets an error code if the property number is not one for a binary property.2586*2587* The returned set contains all code points for which the property is true.2588*2589* @param property UCHAR_BINARY_START..UCHAR_BINARY_LIMIT-12590* @param pErrorCode an in/out ICU UErrorCode2591* @return the property as a set2592* @see UProperty2593* @see u_hasBinaryProperty2594* @see Unicode::fromUSet2595* @draft ICU 632596*/2597U_CAPI const USet * U_EXPORT22598u_getBinaryPropertySet(UProperty property, UErrorCode *pErrorCode);25992600#endif // U_HIDE_DRAFT_API26012602/**2603* Check if a code point has the Alphabetic Unicode property.2604* Same as u_hasBinaryProperty(c, UCHAR_ALPHABETIC).2605* This is different from u_isalpha!2606* @param c Code point to test2607* @return true if the code point has the Alphabetic Unicode property, false otherwise2608*2609* @see UCHAR_ALPHABETIC2610* @see u_isalpha2611* @see u_hasBinaryProperty2612* @stable ICU 2.12613*/2614U_STABLE UBool U_EXPORT22615u_isUAlphabetic(UChar32 c);26162617/**2618* Check if a code point has the Lowercase Unicode property.2619* Same as u_hasBinaryProperty(c, UCHAR_LOWERCASE).2620* This is different from u_islower!2621* @param c Code point to test2622* @return true if the code point has the Lowercase Unicode property, false otherwise2623*2624* @see UCHAR_LOWERCASE2625* @see u_islower2626* @see u_hasBinaryProperty2627* @stable ICU 2.12628*/2629U_STABLE UBool U_EXPORT22630u_isULowercase(UChar32 c);26312632/**2633* Check if a code point has the Uppercase Unicode property.2634* Same as u_hasBinaryProperty(c, UCHAR_UPPERCASE).2635* This is different from u_isupper!2636* @param c Code point to test2637* @return true if the code point has the Uppercase Unicode property, false otherwise2638*2639* @see UCHAR_UPPERCASE2640* @see u_isupper2641* @see u_hasBinaryProperty2642* @stable ICU 2.12643*/2644U_STABLE UBool U_EXPORT22645u_isUUppercase(UChar32 c);26462647/**2648* Check if a code point has the White_Space Unicode property.2649* Same as u_hasBinaryProperty(c, UCHAR_WHITE_SPACE).2650* This is different from both u_isspace and u_isWhitespace!2651*2652* Note: There are several ICU whitespace functions; please see the uchar.h2653* file documentation for a detailed comparison.2654*2655* @param c Code point to test2656* @return true if the code point has the White_Space Unicode property, false otherwise.2657*2658* @see UCHAR_WHITE_SPACE2659* @see u_isWhitespace2660* @see u_isspace2661* @see u_isJavaSpaceChar2662* @see u_hasBinaryProperty2663* @stable ICU 2.12664*/2665U_STABLE UBool U_EXPORT22666u_isUWhiteSpace(UChar32 c);26672668/**2669* Get the property value for an enumerated or integer Unicode property for a code point.2670* Also returns binary and mask property values.2671*2672* Unicode, especially in version 3.2, defines many more properties than the2673* original set in UnicodeData.txt.2674*2675* The properties APIs are intended to reflect Unicode properties as defined2676* in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).2677* For details about the properties see http://www.unicode.org/ .2678* For names of Unicode properties see the UCD file PropertyAliases.txt.2679*2680* Sample usage:2681* UEastAsianWidth ea=(UEastAsianWidth)u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH);2682* UBool b=(UBool)u_getIntPropertyValue(c, UCHAR_IDEOGRAPHIC);2683*2684* @param c Code point to test.2685* @param which UProperty selector constant, identifies which property to check.2686* Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT2687* or UCHAR_INT_START<=which<UCHAR_INT_LIMIT2688* or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.2689* @return Numeric value that is directly the property value or,2690* for enumerated properties, corresponds to the numeric value of the enumerated2691* constant of the respective property value enumeration type2692* (cast to enum type if necessary).2693* Returns 0 or 1 (for FALSE/TRUE) for binary Unicode properties.2694* Returns a bit-mask for mask properties.2695* Returns 0 if 'which' is out of bounds or if the Unicode version2696* does not have data for the property at all, or not for this code point.2697*2698* @see UProperty2699* @see u_hasBinaryProperty2700* @see u_getIntPropertyMinValue2701* @see u_getIntPropertyMaxValue2702* @see u_getIntPropertyMap2703* @see u_getUnicodeVersion2704* @stable ICU 2.22705*/2706U_STABLE int32_t U_EXPORT22707u_getIntPropertyValue(UChar32 c, UProperty which);27082709/**2710* Get the minimum value for an enumerated/integer/binary Unicode property.2711* Can be used together with u_getIntPropertyMaxValue2712* to allocate arrays of UnicodeSet or similar.2713*2714* @param which UProperty selector constant, identifies which binary property to check.2715* Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT2716* or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.2717* @return Minimum value returned by u_getIntPropertyValue for a Unicode property.2718* 0 if the property selector is out of range.2719*2720* @see UProperty2721* @see u_hasBinaryProperty2722* @see u_getUnicodeVersion2723* @see u_getIntPropertyMaxValue2724* @see u_getIntPropertyValue2725* @stable ICU 2.22726*/2727U_STABLE int32_t U_EXPORT22728u_getIntPropertyMinValue(UProperty which);27292730/**2731* Get the maximum value for an enumerated/integer/binary Unicode property.2732* Can be used together with u_getIntPropertyMinValue2733* to allocate arrays of UnicodeSet or similar.2734*2735* Examples for min/max values (for Unicode 3.2):2736*2737* - UCHAR_BIDI_CLASS: 0/18 (U_LEFT_TO_RIGHT/U_BOUNDARY_NEUTRAL)2738* - UCHAR_SCRIPT: 0/45 (USCRIPT_COMMON/USCRIPT_TAGBANWA)2739* - UCHAR_IDEOGRAPHIC: 0/1 (FALSE/TRUE)2740*2741* For undefined UProperty constant values, min/max values will be 0/-1.2742*2743* @param which UProperty selector constant, identifies which binary property to check.2744* Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT2745* or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.2746* @return Maximum value returned by u_getIntPropertyValue for a Unicode property.2747* <=0 if the property selector is out of range.2748*2749* @see UProperty2750* @see u_hasBinaryProperty2751* @see u_getUnicodeVersion2752* @see u_getIntPropertyMaxValue2753* @see u_getIntPropertyValue2754* @stable ICU 2.22755*/2756U_STABLE int32_t U_EXPORT22757u_getIntPropertyMaxValue(UProperty which);27582759#ifndef U_HIDE_DRAFT_API27602761/**2762* Returns an immutable UCPMap for an enumerated/catalog/int-valued property.2763* The library retains ownership over the returned object.2764* Sets an error code if the property number is not one for an "int property".2765*2766* The returned object maps all Unicode code points to their values for that property.2767* For documentation of the integer values see u_getIntPropertyValue().2768*2769* @param property UCHAR_INT_START..UCHAR_INT_LIMIT-12770* @param pErrorCode an in/out ICU UErrorCode2771* @return the property as a map2772* @see UProperty2773* @see u_getIntPropertyValue2774* @draft ICU 632775*/2776U_CAPI const UCPMap * U_EXPORT22777u_getIntPropertyMap(UProperty property, UErrorCode *pErrorCode);27782779#endif // U_HIDE_DRAFT_API27802781/**2782* Get the numeric value for a Unicode code point as defined in the2783* Unicode Character Database.2784*2785* A "double" return type is necessary because2786* some numeric values are fractions, negative, or too large for int32_t.2787*2788* For characters without any numeric values in the Unicode Character Database,2789* this function will return U_NO_NUMERIC_VALUE.2790* Note: This is different from the Unicode Standard which specifies NaN as the default value.2791* (NaN is not available on all platforms.)2792*2793* Similar to java.lang.Character.getNumericValue(), but u_getNumericValue()2794* also supports negative values, large values, and fractions,2795* while Java's getNumericValue() returns values 10..35 for ASCII letters.2796*2797* @param c Code point to get the numeric value for.2798* @return Numeric value of c, or U_NO_NUMERIC_VALUE if none is defined.2799*2800* @see U_NO_NUMERIC_VALUE2801* @stable ICU 2.22802*/2803U_STABLE double U_EXPORT22804u_getNumericValue(UChar32 c);28052806/**2807* Special value that is returned by u_getNumericValue when2808* no numeric value is defined for a code point.2809*2810* @see u_getNumericValue2811* @stable ICU 2.22812*/2813#define U_NO_NUMERIC_VALUE ((double)-123456789.)28142815/**2816* Determines whether the specified code point has the general category "Ll"2817* (lowercase letter).2818*2819* Same as java.lang.Character.isLowerCase().2820*2821* This misses some characters that are also lowercase but2822* have a different general category value.2823* In order to include those, use UCHAR_LOWERCASE.2824*2825* In addition to being equivalent to a Java function, this also serves2826* as a C/POSIX migration function.2827* See the comments about C/POSIX character classification functions in the2828* documentation at the top of this header file.2829*2830* @param c the code point to be tested2831* @return TRUE if the code point is an Ll lowercase letter2832*2833* @see UCHAR_LOWERCASE2834* @see u_isupper2835* @see u_istitle2836* @stable ICU 2.02837*/2838U_STABLE UBool U_EXPORT22839u_islower(UChar32 c);28402841/**2842* Determines whether the specified code point has the general category "Lu"2843* (uppercase letter).2844*2845* Same as java.lang.Character.isUpperCase().2846*2847* This misses some characters that are also uppercase but2848* have a different general category value.2849* In order to include those, use UCHAR_UPPERCASE.2850*2851* In addition to being equivalent to a Java function, this also serves2852* as a C/POSIX migration function.2853* See the comments about C/POSIX character classification functions in the2854* documentation at the top of this header file.2855*2856* @param c the code point to be tested2857* @return TRUE if the code point is an Lu uppercase letter2858*2859* @see UCHAR_UPPERCASE2860* @see u_islower2861* @see u_istitle2862* @see u_tolower2863* @stable ICU 2.02864*/2865U_STABLE UBool U_EXPORT22866u_isupper(UChar32 c);28672868/**2869* Determines whether the specified code point is a titlecase letter.2870* True for general category "Lt" (titlecase letter).2871*2872* Same as java.lang.Character.isTitleCase().2873*2874* @param c the code point to be tested2875* @return TRUE if the code point is an Lt titlecase letter2876*2877* @see u_isupper2878* @see u_islower2879* @see u_totitle2880* @stable ICU 2.02881*/2882U_STABLE UBool U_EXPORT22883u_istitle(UChar32 c);28842885/**2886* Determines whether the specified code point is a digit character according to Java.2887* True for characters with general category "Nd" (decimal digit numbers).2888* Beginning with Unicode 4, this is the same as2889* testing for the Numeric_Type of Decimal.2890*2891* Same as java.lang.Character.isDigit().2892*2893* In addition to being equivalent to a Java function, this also serves2894* as a C/POSIX migration function.2895* See the comments about C/POSIX character classification functions in the2896* documentation at the top of this header file.2897*2898* @param c the code point to be tested2899* @return TRUE if the code point is a digit character according to Character.isDigit()2900*2901* @stable ICU 2.02902*/2903U_STABLE UBool U_EXPORT22904u_isdigit(UChar32 c);29052906/**2907* Determines whether the specified code point is a letter character.2908* True for general categories "L" (letters).2909*2910* Same as java.lang.Character.isLetter().2911*2912* In addition to being equivalent to a Java function, this also serves2913* as a C/POSIX migration function.2914* See the comments about C/POSIX character classification functions in the2915* documentation at the top of this header file.2916*2917* @param c the code point to be tested2918* @return TRUE if the code point is a letter character2919*2920* @see u_isdigit2921* @see u_isalnum2922* @stable ICU 2.02923*/2924U_STABLE UBool U_EXPORT22925u_isalpha(UChar32 c);29262927/**2928* Determines whether the specified code point is an alphanumeric character2929* (letter or digit) according to Java.2930* True for characters with general categories2931* "L" (letters) and "Nd" (decimal digit numbers).2932*2933* Same as java.lang.Character.isLetterOrDigit().2934*2935* In addition to being equivalent to a Java function, this also serves2936* as a C/POSIX migration function.2937* See the comments about C/POSIX character classification functions in the2938* documentation at the top of this header file.2939*2940* @param c the code point to be tested2941* @return TRUE if the code point is an alphanumeric character according to Character.isLetterOrDigit()2942*2943* @stable ICU 2.02944*/2945U_STABLE UBool U_EXPORT22946u_isalnum(UChar32 c);29472948/**2949* Determines whether the specified code point is a hexadecimal digit.2950* This is equivalent to u_digit(c, 16)>=0.2951* True for characters with general category "Nd" (decimal digit numbers)2952* as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII.2953* (That is, for letters with code points2954* 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)2955*2956* In order to narrow the definition of hexadecimal digits to only ASCII2957* characters, use (c<=0x7f && u_isxdigit(c)).2958*2959* This is a C/POSIX migration function.2960* See the comments about C/POSIX character classification functions in the2961* documentation at the top of this header file.2962*2963* @param c the code point to be tested2964* @return TRUE if the code point is a hexadecimal digit2965*2966* @stable ICU 2.62967*/2968U_STABLE UBool U_EXPORT22969u_isxdigit(UChar32 c);29702971/**2972* Determines whether the specified code point is a punctuation character.2973* True for characters with general categories "P" (punctuation).2974*2975* This is a C/POSIX migration function.2976* See the comments about C/POSIX character classification functions in the2977* documentation at the top of this header file.2978*2979* @param c the code point to be tested2980* @return TRUE if the code point is a punctuation character2981*2982* @stable ICU 2.62983*/2984U_STABLE UBool U_EXPORT22985u_ispunct(UChar32 c);29862987/**2988* Determines whether the specified code point is a "graphic" character2989* (printable, excluding spaces).2990* TRUE for all characters except those with general categories2991* "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates),2992* "Cn" (unassigned), and "Z" (separators).2993*2994* This is a C/POSIX migration function.2995* See the comments about C/POSIX character classification functions in the2996* documentation at the top of this header file.2997*2998* @param c the code point to be tested2999* @return TRUE if the code point is a "graphic" character3000*3001* @stable ICU 2.63002*/3003U_STABLE UBool U_EXPORT23004u_isgraph(UChar32 c);30053006/**3007* Determines whether the specified code point is a "blank" or "horizontal space",3008* a character that visibly separates words on a line.3009* The following are equivalent definitions:3010*3011* TRUE for Unicode White_Space characters except for "vertical space controls"3012* where "vertical space controls" are the following characters:3013* U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS)3014*3015* same as3016*3017* TRUE for U+0009 (TAB) and characters with general category "Zs" (space separators).3018*3019* Note: There are several ICU whitespace functions; please see the uchar.h3020* file documentation for a detailed comparison.3021*3022* This is a C/POSIX migration function.3023* See the comments about C/POSIX character classification functions in the3024* documentation at the top of this header file.3025*3026* @param c the code point to be tested3027* @return TRUE if the code point is a "blank"3028*3029* @stable ICU 2.63030*/3031U_STABLE UBool U_EXPORT23032u_isblank(UChar32 c);30333034/**3035* Determines whether the specified code point is "defined",3036* which usually means that it is assigned a character.3037* True for general categories other than "Cn" (other, not assigned),3038* i.e., true for all code points mentioned in UnicodeData.txt.3039*3040* Note that non-character code points (e.g., U+FDD0) are not "defined"3041* (they are Cn), but surrogate code points are "defined" (Cs).3042*3043* Same as java.lang.Character.isDefined().3044*3045* @param c the code point to be tested3046* @return TRUE if the code point is assigned a character3047*3048* @see u_isdigit3049* @see u_isalpha3050* @see u_isalnum3051* @see u_isupper3052* @see u_islower3053* @see u_istitle3054* @stable ICU 2.03055*/3056U_STABLE UBool U_EXPORT23057u_isdefined(UChar32 c);30583059/**3060* Determines if the specified character is a space character or not.3061*3062* Note: There are several ICU whitespace functions; please see the uchar.h3063* file documentation for a detailed comparison.3064*3065* This is a C/POSIX migration function.3066* See the comments about C/POSIX character classification functions in the3067* documentation at the top of this header file.3068*3069* @param c the character to be tested3070* @return true if the character is a space character; false otherwise.3071*3072* @see u_isJavaSpaceChar3073* @see u_isWhitespace3074* @see u_isUWhiteSpace3075* @stable ICU 2.03076*/3077U_STABLE UBool U_EXPORT23078u_isspace(UChar32 c);30793080/**3081* Determine if the specified code point is a space character according to Java.3082* True for characters with general categories "Z" (separators),3083* which does not include control codes (e.g., TAB or Line Feed).3084*3085* Same as java.lang.Character.isSpaceChar().3086*3087* Note: There are several ICU whitespace functions; please see the uchar.h3088* file documentation for a detailed comparison.3089*3090* @param c the code point to be tested3091* @return TRUE if the code point is a space character according to Character.isSpaceChar()3092*3093* @see u_isspace3094* @see u_isWhitespace3095* @see u_isUWhiteSpace3096* @stable ICU 2.63097*/3098U_STABLE UBool U_EXPORT23099u_isJavaSpaceChar(UChar32 c);31003101/**3102* Determines if the specified code point is a whitespace character according to Java/ICU.3103* A character is considered to be a Java whitespace character if and only3104* if it satisfies one of the following criteria:3105*3106* - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not3107* also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP).3108* - It is U+0009 HORIZONTAL TABULATION.3109* - It is U+000A LINE FEED.3110* - It is U+000B VERTICAL TABULATION.3111* - It is U+000C FORM FEED.3112* - It is U+000D CARRIAGE RETURN.3113* - It is U+001C FILE SEPARATOR.3114* - It is U+001D GROUP SEPARATOR.3115* - It is U+001E RECORD SEPARATOR.3116* - It is U+001F UNIT SEPARATOR.3117*3118* This API tries to sync with the semantics of Java's3119* java.lang.Character.isWhitespace(), but it may not return3120* the exact same results because of the Unicode version3121* difference.3122*3123* Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs)3124* to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false.3125* See http://www.unicode.org/versions/Unicode4.0.1/3126*3127* Note: There are several ICU whitespace functions; please see the uchar.h3128* file documentation for a detailed comparison.3129*3130* @param c the code point to be tested3131* @return TRUE if the code point is a whitespace character according to Java/ICU3132*3133* @see u_isspace3134* @see u_isJavaSpaceChar3135* @see u_isUWhiteSpace3136* @stable ICU 2.03137*/3138U_STABLE UBool U_EXPORT23139u_isWhitespace(UChar32 c);31403141/**3142* Determines whether the specified code point is a control character3143* (as defined by this function).3144* A control character is one of the following:3145* - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f)3146* - U_CONTROL_CHAR (Cc)3147* - U_FORMAT_CHAR (Cf)3148* - U_LINE_SEPARATOR (Zl)3149* - U_PARAGRAPH_SEPARATOR (Zp)3150*3151* This is a C/POSIX migration function.3152* See the comments about C/POSIX character classification functions in the3153* documentation at the top of this header file.3154*3155* @param c the code point to be tested3156* @return TRUE if the code point is a control character3157*3158* @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT3159* @see u_isprint3160* @stable ICU 2.03161*/3162U_STABLE UBool U_EXPORT23163u_iscntrl(UChar32 c);31643165/**3166* Determines whether the specified code point is an ISO control code.3167* True for U+0000..U+001f and U+007f..U+009f (general category "Cc").3168*3169* Same as java.lang.Character.isISOControl().3170*3171* @param c the code point to be tested3172* @return TRUE if the code point is an ISO control code3173*3174* @see u_iscntrl3175* @stable ICU 2.63176*/3177U_STABLE UBool U_EXPORT23178u_isISOControl(UChar32 c);31793180/**3181* Determines whether the specified code point is a printable character.3182* True for general categories <em>other</em> than "C" (controls).3183*3184* This is a C/POSIX migration function.3185* See the comments about C/POSIX character classification functions in the3186* documentation at the top of this header file.3187*3188* @param c the code point to be tested3189* @return TRUE if the code point is a printable character3190*3191* @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT3192* @see u_iscntrl3193* @stable ICU 2.03194*/3195U_STABLE UBool U_EXPORT23196u_isprint(UChar32 c);31973198/**3199* Determines whether the specified code point is a base character.3200* True for general categories "L" (letters), "N" (numbers),3201* "Mc" (spacing combining marks), and "Me" (enclosing marks).3202*3203* Note that this is different from the Unicode definition in3204* chapter 3.5, conformance clause D13,3205* which defines base characters to be all characters (not Cn)3206* that do not graphically combine with preceding characters (M)3207* and that are neither control (Cc) or format (Cf) characters.3208*3209* @param c the code point to be tested3210* @return TRUE if the code point is a base character according to this function3211*3212* @see u_isalpha3213* @see u_isdigit3214* @stable ICU 2.03215*/3216U_STABLE UBool U_EXPORT23217u_isbase(UChar32 c);32183219/**3220* Returns the bidirectional category value for the code point,3221* which is used in the Unicode bidirectional algorithm3222* (UAX #9 http://www.unicode.org/reports/tr9/).3223* Note that some <em>unassigned</em> code points have bidi values3224* of R or AL because they are in blocks that are reserved3225* for Right-To-Left scripts.3226*3227* Same as java.lang.Character.getDirectionality()3228*3229* @param c the code point to be tested3230* @return the bidirectional category (UCharDirection) value3231*3232* @see UCharDirection3233* @stable ICU 2.03234*/3235U_STABLE UCharDirection U_EXPORT23236u_charDirection(UChar32 c);32373238/**3239* Determines whether the code point has the Bidi_Mirrored property.3240* This property is set for characters that are commonly used in3241* Right-To-Left contexts and need to be displayed with a "mirrored"3242* glyph.3243*3244* Same as java.lang.Character.isMirrored().3245* Same as UCHAR_BIDI_MIRRORED3246*3247* @param c the code point to be tested3248* @return TRUE if the character has the Bidi_Mirrored property3249*3250* @see UCHAR_BIDI_MIRRORED3251* @stable ICU 2.03252*/3253U_STABLE UBool U_EXPORT23254u_isMirrored(UChar32 c);32553256/**3257* Maps the specified character to a "mirror-image" character.3258* For characters with the Bidi_Mirrored property, implementations3259* sometimes need a "poor man's" mapping to another Unicode3260* character (code point) such that the default glyph may serve3261* as the mirror-image of the default glyph of the specified3262* character. This is useful for text conversion to and from3263* codepages with visual order, and for displays without glyph3264* selection capabilities.3265*3266* @param c the code point to be mapped3267* @return another Unicode code point that may serve as a mirror-image3268* substitute, or c itself if there is no such mapping or c3269* does not have the Bidi_Mirrored property3270*3271* @see UCHAR_BIDI_MIRRORED3272* @see u_isMirrored3273* @stable ICU 2.03274*/3275U_STABLE UChar32 U_EXPORT23276u_charMirror(UChar32 c);32773278/**3279* Maps the specified character to its paired bracket character.3280* For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror().3281* Otherwise c itself is returned.3282* See http://www.unicode.org/reports/tr9/3283*3284* @param c the code point to be mapped3285* @return the paired bracket code point,3286* or c itself if there is no such mapping3287* (Bidi_Paired_Bracket_Type=None)3288*3289* @see UCHAR_BIDI_PAIRED_BRACKET3290* @see UCHAR_BIDI_PAIRED_BRACKET_TYPE3291* @see u_charMirror3292* @stable ICU 523293*/3294U_STABLE UChar32 U_EXPORT23295u_getBidiPairedBracket(UChar32 c);32963297/**3298* Returns the general category value for the code point.3299*3300* Same as java.lang.Character.getType().3301*3302* @param c the code point to be tested3303* @return the general category (UCharCategory) value3304*3305* @see UCharCategory3306* @stable ICU 2.03307*/3308U_STABLE int8_t U_EXPORT23309u_charType(UChar32 c);33103311/**3312* Get a single-bit bit set for the general category of a character.3313* This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc.3314* Same as U_MASK(u_charType(c)).3315*3316* @param c the code point to be tested3317* @return a single-bit mask corresponding to the general category (UCharCategory) value3318*3319* @see u_charType3320* @see UCharCategory3321* @see U_GC_CN_MASK3322* @stable ICU 2.13323*/3324#define U_GET_GC_MASK(c) U_MASK(u_charType(c))33253326/**3327* Callback from u_enumCharTypes(), is called for each contiguous range3328* of code points c (where start<=c<limit)3329* with the same Unicode general category ("character type").3330*3331* The callback function can stop the enumeration by returning FALSE.3332*3333* @param context an opaque pointer, as passed into utrie_enum()3334* @param start the first code point in a contiguous range with value3335* @param limit one past the last code point in a contiguous range with value3336* @param type the general category for all code points in [start..limit[3337* @return FALSE to stop the enumeration3338*3339* @stable ICU 2.13340* @see UCharCategory3341* @see u_enumCharTypes3342*/3343typedef UBool U_CALLCONV3344UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type);33453346/**3347* Enumerate efficiently all code points with their Unicode general categories.3348*3349* This is useful for building data structures (e.g., UnicodeSet's),3350* for enumerating all assigned code points (type!=U_UNASSIGNED), etc.3351*3352* For each contiguous range of code points with a given general category ("character type"),3353* the UCharEnumTypeRange function is called.3354* Adjacent ranges have different types.3355* The Unicode Standard guarantees that the numeric value of the type is 0..31.3356*3357* @param enumRange a pointer to a function that is called for each contiguous range3358* of code points with the same general category3359* @param context an opaque pointer that is passed on to the callback function3360*3361* @stable ICU 2.13362* @see UCharCategory3363* @see UCharEnumTypeRange3364*/3365U_STABLE void U_EXPORT23366u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);33673368#if !UCONFIG_NO_NORMALIZATION33693370/**3371* Returns the combining class of the code point as specified in UnicodeData.txt.3372*3373* @param c the code point of the character3374* @return the combining class of the character3375* @stable ICU 2.03376*/3377U_STABLE uint8_t U_EXPORT23378u_getCombiningClass(UChar32 c);33793380#endif33813382/**3383* Returns the decimal digit value of a decimal digit character.3384* Such characters have the general category "Nd" (decimal digit numbers)3385* and a Numeric_Type of Decimal.3386*3387* Unlike ICU releases before 2.6, no digit values are returned for any3388* Han characters because Han number characters are often used with a special3389* Chinese-style number format (with characters for powers of 10 in between)3390* instead of in decimal-positional notation.3391* Unicode 4 explicitly assigns Han number characters the Numeric_Type3392* Numeric instead of Decimal.3393* See Jitterbug 1483 for more details.3394*3395* Use u_getIntPropertyValue(c, UCHAR_NUMERIC_TYPE) and u_getNumericValue()3396* for complete numeric Unicode properties.3397*3398* @param c the code point for which to get the decimal digit value3399* @return the decimal digit value of c,3400* or -1 if c is not a decimal digit character3401*3402* @see u_getNumericValue3403* @stable ICU 2.03404*/3405U_STABLE int32_t U_EXPORT23406u_charDigitValue(UChar32 c);34073408/**3409* Returns the Unicode allocation block that contains the character.3410*3411* @param c the code point to be tested3412* @return the block value (UBlockCode) for c3413*3414* @see UBlockCode3415* @stable ICU 2.03416*/3417U_STABLE UBlockCode U_EXPORT23418ublock_getCode(UChar32 c);34193420/**3421* Retrieve the name of a Unicode character.3422* Depending on <code>nameChoice</code>, the character name written3423* into the buffer is the "modern" name or the name that was defined3424* in Unicode version 1.0.3425* The name contains only "invariant" characters3426* like A-Z, 0-9, space, and '-'.3427* Unicode 1.0 names are only retrieved if they are different from the modern3428* names and if the data file contains the data for them. gennames may or may3429* not be called with a command line option to include 1.0 names in unames.dat.3430*3431* @param code The character (code point) for which to get the name.3432* It must be <code>0<=code<=0x10ffff</code>.3433* @param nameChoice Selector for which name to get.3434* @param buffer Destination address for copying the name.3435* The name will always be zero-terminated.3436* If there is no name, then the buffer will be set to the empty string.3437* @param bufferLength <code>==sizeof(buffer)</code>3438* @param pErrorCode Pointer to a UErrorCode variable;3439* check for <code>U_SUCCESS()</code> after <code>u_charName()</code>3440* returns.3441* @return The length of the name, or 0 if there is no name for this character.3442* If the bufferLength is less than or equal to the length, then the buffer3443* contains the truncated name and the returned length indicates the full3444* length of the name.3445* The length does not include the zero-termination.3446*3447* @see UCharNameChoice3448* @see u_charFromName3449* @see u_enumCharNames3450* @stable ICU 2.03451*/3452U_STABLE int32_t U_EXPORT23453u_charName(UChar32 code, UCharNameChoice nameChoice,3454char *buffer, int32_t bufferLength,3455UErrorCode *pErrorCode);34563457#ifndef U_HIDE_DEPRECATED_API3458/**3459* Returns an empty string.3460* Used to return the ISO 10646 comment for a character.3461* The Unicode ISO_Comment property is deprecated and has no values.3462*3463* @param c The character (code point) for which to get the ISO comment.3464* It must be <code>0<=c<=0x10ffff</code>.3465* @param dest Destination address for copying the comment.3466* The comment will be zero-terminated if possible.3467* If there is no comment, then the buffer will be set to the empty string.3468* @param destCapacity <code>==sizeof(dest)</code>3469* @param pErrorCode Pointer to a UErrorCode variable;3470* check for <code>U_SUCCESS()</code> after <code>u_getISOComment()</code>3471* returns.3472* @return 03473*3474* @deprecated ICU 493475*/3476U_DEPRECATED int32_t U_EXPORT23477u_getISOComment(UChar32 c,3478char *dest, int32_t destCapacity,3479UErrorCode *pErrorCode);3480#endif /* U_HIDE_DEPRECATED_API */34813482/**3483* Find a Unicode character by its name and return its code point value.3484* The name is matched exactly and completely.3485* If the name does not correspond to a code point, <i>pErrorCode</i>3486* is set to <code>U_INVALID_CHAR_FOUND</code>.3487* A Unicode 1.0 name is matched only if it differs from the modern name.3488* Unicode names are all uppercase. Extended names are lowercase followed3489* by an uppercase hexadecimal number, and within angle brackets.3490*3491* @param nameChoice Selector for which name to match.3492* @param name The name to match.3493* @param pErrorCode Pointer to a UErrorCode variable3494* @return The Unicode value of the code point with the given name,3495* or an undefined value if there is no such code point.3496*3497* @see UCharNameChoice3498* @see u_charName3499* @see u_enumCharNames3500* @stable ICU 1.73501*/3502U_STABLE UChar32 U_EXPORT23503u_charFromName(UCharNameChoice nameChoice,3504const char *name,3505UErrorCode *pErrorCode);35063507/**3508* Type of a callback function for u_enumCharNames() that gets called3509* for each Unicode character with the code point value and3510* the character name.3511* If such a function returns FALSE, then the enumeration is stopped.3512*3513* @param context The context pointer that was passed to u_enumCharNames().3514* @param code The Unicode code point for the character with this name.3515* @param nameChoice Selector for which kind of names is enumerated.3516* @param name The character's name, zero-terminated.3517* @param length The length of the name.3518* @return TRUE if the enumeration should continue, FALSE to stop it.3519*3520* @see UCharNameChoice3521* @see u_enumCharNames3522* @stable ICU 1.73523*/3524typedef UBool U_CALLCONV UEnumCharNamesFn(void *context,3525UChar32 code,3526UCharNameChoice nameChoice,3527const char *name,3528int32_t length);35293530/**3531* Enumerate all assigned Unicode characters between the start and limit3532* code points (start inclusive, limit exclusive) and call a function3533* for each, passing the code point value and the character name.3534* For Unicode 1.0 names, only those are enumerated that differ from the3535* modern names.3536*3537* @param start The first code point in the enumeration range.3538* @param limit One more than the last code point in the enumeration range3539* (the first one after the range).3540* @param fn The function that is to be called for each character name.3541* @param context An arbitrary pointer that is passed to the function.3542* @param nameChoice Selector for which kind of names to enumerate.3543* @param pErrorCode Pointer to a UErrorCode variable3544*3545* @see UCharNameChoice3546* @see UEnumCharNamesFn3547* @see u_charName3548* @see u_charFromName3549* @stable ICU 1.73550*/3551U_STABLE void U_EXPORT23552u_enumCharNames(UChar32 start, UChar32 limit,3553UEnumCharNamesFn *fn,3554void *context,3555UCharNameChoice nameChoice,3556UErrorCode *pErrorCode);35573558/**3559* Return the Unicode name for a given property, as given in the3560* Unicode database file PropertyAliases.txt.3561*3562* In addition, this function maps the property3563* UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" /3564* "General_Category_Mask". These names are not in3565* PropertyAliases.txt.3566*3567* @param property UProperty selector other than UCHAR_INVALID_CODE.3568* If out of range, NULL is returned.3569*3570* @param nameChoice selector for which name to get. If out of range,3571* NULL is returned. All properties have a long name. Most3572* have a short name, but some do not. Unicode allows for3573* additional names; if present these will be returned by3574* U_LONG_PROPERTY_NAME + i, where i=1, 2,...3575*3576* @return a pointer to the name, or NULL if either the3577* property or the nameChoice is out of range. If a given3578* nameChoice returns NULL, then all larger values of3579* nameChoice will return NULL, with one exception: if NULL is3580* returned for U_SHORT_PROPERTY_NAME, then3581* U_LONG_PROPERTY_NAME (and higher) may still return a3582* non-NULL value. The returned pointer is valid until3583* u_cleanup() is called.3584*3585* @see UProperty3586* @see UPropertyNameChoice3587* @stable ICU 2.43588*/3589U_STABLE const char* U_EXPORT23590u_getPropertyName(UProperty property,3591UPropertyNameChoice nameChoice);35923593/**3594* Return the UProperty enum for a given property name, as specified3595* in the Unicode database file PropertyAliases.txt. Short, long, and3596* any other variants are recognized.3597*3598* In addition, this function maps the synthetic names "gcm" /3599* "General_Category_Mask" to the property3600* UCHAR_GENERAL_CATEGORY_MASK. These names are not in3601* PropertyAliases.txt.3602*3603* @param alias the property name to be matched. The name is compared3604* using "loose matching" as described in PropertyAliases.txt.3605*3606* @return a UProperty enum, or UCHAR_INVALID_CODE if the given name3607* does not match any property.3608*3609* @see UProperty3610* @stable ICU 2.43611*/3612U_STABLE UProperty U_EXPORT23613u_getPropertyEnum(const char* alias);36143615/**3616* Return the Unicode name for a given property value, as given in the3617* Unicode database file PropertyValueAliases.txt.3618*3619* Note: Some of the names in PropertyValueAliases.txt can only be3620* retrieved using UCHAR_GENERAL_CATEGORY_MASK, not3621* UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" /3622* "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"3623* / "Punctuation", "S" / "Symbol", and "Z" / "Separator".3624*3625* @param property UProperty selector constant.3626* Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT3627* or UCHAR_INT_START<=which<UCHAR_INT_LIMIT3628* or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.3629* If out of range, NULL is returned.3630*3631* @param value selector for a value for the given property. If out3632* of range, NULL is returned. In general, valid values range3633* from 0 up to some maximum. There are a few exceptions:3634* (1.) UCHAR_BLOCK values begin at the non-zero value3635* UBLOCK_BASIC_LATIN. (2.) UCHAR_CANONICAL_COMBINING_CLASS3636* values are not contiguous and range from 0..240. (3.)3637* UCHAR_GENERAL_CATEGORY_MASK values are not values of3638* UCharCategory, but rather mask values produced by3639* U_GET_GC_MASK(). This allows grouped categories such as3640* [:L:] to be represented. Mask values range3641* non-contiguously from 1..U_GC_P_MASK.3642*3643* @param nameChoice selector for which name to get. If out of range,3644* NULL is returned. All values have a long name. Most have3645* a short name, but some do not. Unicode allows for3646* additional names; if present these will be returned by3647* U_LONG_PROPERTY_NAME + i, where i=1, 2,...36483649* @return a pointer to the name, or NULL if either the3650* property or the nameChoice is out of range. If a given3651* nameChoice returns NULL, then all larger values of3652* nameChoice will return NULL, with one exception: if NULL is3653* returned for U_SHORT_PROPERTY_NAME, then3654* U_LONG_PROPERTY_NAME (and higher) may still return a3655* non-NULL value. The returned pointer is valid until3656* u_cleanup() is called.3657*3658* @see UProperty3659* @see UPropertyNameChoice3660* @stable ICU 2.43661*/3662U_STABLE const char* U_EXPORT23663u_getPropertyValueName(UProperty property,3664int32_t value,3665UPropertyNameChoice nameChoice);36663667/**3668* Return the property value integer for a given value name, as3669* specified in the Unicode database file PropertyValueAliases.txt.3670* Short, long, and any other variants are recognized.3671*3672* Note: Some of the names in PropertyValueAliases.txt will only be3673* recognized with UCHAR_GENERAL_CATEGORY_MASK, not3674* UCHAR_GENERAL_CATEGORY. These include: "C" / "Other", "L" /3675* "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"3676* / "Punctuation", "S" / "Symbol", and "Z" / "Separator".3677*3678* @param property UProperty selector constant.3679* Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT3680* or UCHAR_INT_START<=which<UCHAR_INT_LIMIT3681* or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.3682* If out of range, UCHAR_INVALID_CODE is returned.3683*3684* @param alias the value name to be matched. The name is compared3685* using "loose matching" as described in3686* PropertyValueAliases.txt.3687*3688* @return a value integer or UCHAR_INVALID_CODE if the given name3689* does not match any value of the given property, or if the3690* property is invalid. Note: UCHAR_GENERAL_CATEGORY_MASK values3691* are not values of UCharCategory, but rather mask values3692* produced by U_GET_GC_MASK(). This allows grouped3693* categories such as [:L:] to be represented.3694*3695* @see UProperty3696* @stable ICU 2.43697*/3698U_STABLE int32_t U_EXPORT23699u_getPropertyValueEnum(UProperty property,3700const char* alias);37013702/**3703* Determines if the specified character is permissible as the3704* first character in an identifier according to Unicode3705* (The Unicode Standard, Version 3.0, chapter 5.16 Identifiers).3706* True for characters with general categories "L" (letters) and "Nl" (letter numbers).3707*3708* Same as java.lang.Character.isUnicodeIdentifierStart().3709* Same as UCHAR_ID_START3710*3711* @param c the code point to be tested3712* @return TRUE if the code point may start an identifier3713*3714* @see UCHAR_ID_START3715* @see u_isalpha3716* @see u_isIDPart3717* @stable ICU 2.03718*/3719U_STABLE UBool U_EXPORT23720u_isIDStart(UChar32 c);37213722/**3723* Determines if the specified character is permissible3724* in an identifier according to Java.3725* True for characters with general categories "L" (letters),3726* "Nl" (letter numbers), "Nd" (decimal digits),3727* "Mc" and "Mn" (combining marks), "Pc" (connecting punctuation), and3728* u_isIDIgnorable(c).3729*3730* Same as java.lang.Character.isUnicodeIdentifierPart().3731* Almost the same as Unicode's ID_Continue (UCHAR_ID_CONTINUE)3732* except that Unicode recommends to ignore Cf which is less than3733* u_isIDIgnorable(c).3734*3735* @param c the code point to be tested3736* @return TRUE if the code point may occur in an identifier according to Java3737*3738* @see UCHAR_ID_CONTINUE3739* @see u_isIDStart3740* @see u_isIDIgnorable3741* @stable ICU 2.03742*/3743U_STABLE UBool U_EXPORT23744u_isIDPart(UChar32 c);37453746/**3747* Determines if the specified character should be regarded3748* as an ignorable character in an identifier,3749* according to Java.3750* True for characters with general category "Cf" (format controls) as well as3751* non-whitespace ISO controls3752* (U+0000..U+0008, U+000E..U+001B, U+007F..U+009F).3753*3754* Same as java.lang.Character.isIdentifierIgnorable().3755*3756* Note that Unicode just recommends to ignore Cf (format controls).3757*3758* @param c the code point to be tested3759* @return TRUE if the code point is ignorable in identifiers according to Java3760*3761* @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT3762* @see u_isIDStart3763* @see u_isIDPart3764* @stable ICU 2.03765*/3766U_STABLE UBool U_EXPORT23767u_isIDIgnorable(UChar32 c);37683769/**3770* Determines if the specified character is permissible as the3771* first character in a Java identifier.3772* In addition to u_isIDStart(c), true for characters with3773* general categories "Sc" (currency symbols) and "Pc" (connecting punctuation).3774*3775* Same as java.lang.Character.isJavaIdentifierStart().3776*3777* @param c the code point to be tested3778* @return TRUE if the code point may start a Java identifier3779*3780* @see u_isJavaIDPart3781* @see u_isalpha3782* @see u_isIDStart3783* @stable ICU 2.03784*/3785U_STABLE UBool U_EXPORT23786u_isJavaIDStart(UChar32 c);37873788/**3789* Determines if the specified character is permissible3790* in a Java identifier.3791* In addition to u_isIDPart(c), true for characters with3792* general category "Sc" (currency symbols).3793*3794* Same as java.lang.Character.isJavaIdentifierPart().3795*3796* @param c the code point to be tested3797* @return TRUE if the code point may occur in a Java identifier3798*3799* @see u_isIDIgnorable3800* @see u_isJavaIDStart3801* @see u_isalpha3802* @see u_isdigit3803* @see u_isIDPart3804* @stable ICU 2.03805*/3806U_STABLE UBool U_EXPORT23807u_isJavaIDPart(UChar32 c);38083809/**3810* The given character is mapped to its lowercase equivalent according to3811* UnicodeData.txt; if the character has no lowercase equivalent, the character3812* itself is returned.3813*3814* Same as java.lang.Character.toLowerCase().3815*3816* This function only returns the simple, single-code point case mapping.3817* Full case mappings should be used whenever possible because they produce3818* better results by working on whole strings.3819* They take into account the string context and the language and can map3820* to a result string with a different length as appropriate.3821* Full case mappings are applied by the string case mapping functions,3822* see ustring.h and the UnicodeString class.3823* See also the User Guide chapter on C/POSIX migration:3824* http://icu-project.org/userguide/posix.html#case_mappings3825*3826* @param c the code point to be mapped3827* @return the Simple_Lowercase_Mapping of the code point, if any;3828* otherwise the code point itself.3829* @stable ICU 2.03830*/3831U_STABLE UChar32 U_EXPORT23832u_tolower(UChar32 c);38333834/**3835* The given character is mapped to its uppercase equivalent according to UnicodeData.txt;3836* if the character has no uppercase equivalent, the character itself is3837* returned.3838*3839* Same as java.lang.Character.toUpperCase().3840*3841* This function only returns the simple, single-code point case mapping.3842* Full case mappings should be used whenever possible because they produce3843* better results by working on whole strings.3844* They take into account the string context and the language and can map3845* to a result string with a different length as appropriate.3846* Full case mappings are applied by the string case mapping functions,3847* see ustring.h and the UnicodeString class.3848* See also the User Guide chapter on C/POSIX migration:3849* http://icu-project.org/userguide/posix.html#case_mappings3850*3851* @param c the code point to be mapped3852* @return the Simple_Uppercase_Mapping of the code point, if any;3853* otherwise the code point itself.3854* @stable ICU 2.03855*/3856U_STABLE UChar32 U_EXPORT23857u_toupper(UChar32 c);38583859/**3860* The given character is mapped to its titlecase equivalent3861* according to UnicodeData.txt;3862* if none is defined, the character itself is returned.3863*3864* Same as java.lang.Character.toTitleCase().3865*3866* This function only returns the simple, single-code point case mapping.3867* Full case mappings should be used whenever possible because they produce3868* better results by working on whole strings.3869* They take into account the string context and the language and can map3870* to a result string with a different length as appropriate.3871* Full case mappings are applied by the string case mapping functions,3872* see ustring.h and the UnicodeString class.3873* See also the User Guide chapter on C/POSIX migration:3874* http://icu-project.org/userguide/posix.html#case_mappings3875*3876* @param c the code point to be mapped3877* @return the Simple_Titlecase_Mapping of the code point, if any;3878* otherwise the code point itself.3879* @stable ICU 2.03880*/3881U_STABLE UChar32 U_EXPORT23882u_totitle(UChar32 c);38833884/**3885* The given character is mapped to its case folding equivalent according to3886* UnicodeData.txt and CaseFolding.txt;3887* if the character has no case folding equivalent, the character3888* itself is returned.3889*3890* This function only returns the simple, single-code point case mapping.3891* Full case mappings should be used whenever possible because they produce3892* better results by working on whole strings.3893* They take into account the string context and the language and can map3894* to a result string with a different length as appropriate.3895* Full case mappings are applied by the string case mapping functions,3896* see ustring.h and the UnicodeString class.3897* See also the User Guide chapter on C/POSIX migration:3898* http://icu-project.org/userguide/posix.html#case_mappings3899*3900* @param c the code point to be mapped3901* @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I3902* @return the Simple_Case_Folding of the code point, if any;3903* otherwise the code point itself.3904* @stable ICU 2.03905*/3906U_STABLE UChar32 U_EXPORT23907u_foldCase(UChar32 c, uint32_t options);39083909/**3910* Returns the decimal digit value of the code point in the3911* specified radix.3912*3913* If the radix is not in the range <code>2<=radix<=36</code> or if the3914* value of <code>c</code> is not a valid digit in the specified3915* radix, <code>-1</code> is returned. A character is a valid digit3916* if at least one of the following is true:3917* <ul>3918* <li>The character has a decimal digit value.3919* Such characters have the general category "Nd" (decimal digit numbers)3920* and a Numeric_Type of Decimal.3921* In this case the value is the character's decimal digit value.</li>3922* <li>The character is one of the uppercase Latin letters3923* <code>'A'</code> through <code>'Z'</code>.3924* In this case the value is <code>c-'A'+10</code>.</li>3925* <li>The character is one of the lowercase Latin letters3926* <code>'a'</code> through <code>'z'</code>.3927* In this case the value is <code>ch-'a'+10</code>.</li>3928* <li>Latin letters from both the ASCII range (0061..007A, 0041..005A)3929* as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A)3930* are recognized.</li>3931* </ul>3932*3933* Same as java.lang.Character.digit().3934*3935* @param ch the code point to be tested.3936* @param radix the radix.3937* @return the numeric value represented by the character in the3938* specified radix,3939* or -1 if there is no value or if the value exceeds the radix.3940*3941* @see UCHAR_NUMERIC_TYPE3942* @see u_forDigit3943* @see u_charDigitValue3944* @see u_isdigit3945* @stable ICU 2.03946*/3947U_STABLE int32_t U_EXPORT23948u_digit(UChar32 ch, int8_t radix);39493950/**3951* Determines the character representation for a specific digit in3952* the specified radix. If the value of <code>radix</code> is not a3953* valid radix, or the value of <code>digit</code> is not a valid3954* digit in the specified radix, the null character3955* (<code>U+0000</code>) is returned.3956* <p>3957* The <code>radix</code> argument is valid if it is greater than or3958* equal to 2 and less than or equal to 36.3959* The <code>digit</code> argument is valid if3960* <code>0 <= digit < radix</code>.3961* <p>3962* If the digit is less than 10, then3963* <code>'0' + digit</code> is returned. Otherwise, the value3964* <code>'a' + digit - 10</code> is returned.3965*3966* Same as java.lang.Character.forDigit().3967*3968* @param digit the number to convert to a character.3969* @param radix the radix.3970* @return the <code>char</code> representation of the specified digit3971* in the specified radix.3972*3973* @see u_digit3974* @see u_charDigitValue3975* @see u_isdigit3976* @stable ICU 2.03977*/3978U_STABLE UChar32 U_EXPORT23979u_forDigit(int32_t digit, int8_t radix);39803981/**3982* Get the "age" of the code point.3983* The "age" is the Unicode version when the code point was first3984* designated (as a non-character or for Private Use)3985* or assigned a character.3986* This can be useful to avoid emitting code points to receiving3987* processes that do not accept newer characters.3988* The data is from the UCD file DerivedAge.txt.3989*3990* @param c The code point.3991* @param versionArray The Unicode version number array, to be filled in.3992*3993* @stable ICU 2.13994*/3995U_STABLE void U_EXPORT23996u_charAge(UChar32 c, UVersionInfo versionArray);39973998/**3999* Gets the Unicode version information.4000* The version array is filled in with the version information4001* for the Unicode standard that is currently used by ICU.4002* For example, Unicode version 3.1.1 is represented as an array with4003* the values { 3, 1, 1, 0 }.4004*4005* @param versionArray an output array that will be filled in with4006* the Unicode version number4007* @stable ICU 2.04008*/4009U_STABLE void U_EXPORT24010u_getUnicodeVersion(UVersionInfo versionArray);40114012#if !UCONFIG_NO_NORMALIZATION4013/**4014* Get the FC_NFKC_Closure property string for a character.4015* See Unicode Standard Annex #15 for details, search for "FC_NFKC_Closure"4016* or for "FNC": http://www.unicode.org/reports/tr15/4017*4018* @param c The character (code point) for which to get the FC_NFKC_Closure string.4019* It must be <code>0<=c<=0x10ffff</code>.4020* @param dest Destination address for copying the string.4021* The string will be zero-terminated if possible.4022* If there is no FC_NFKC_Closure string,4023* then the buffer will be set to the empty string.4024* @param destCapacity <code>==sizeof(dest)</code>4025* @param pErrorCode Pointer to a UErrorCode variable.4026* @return The length of the string, or 0 if there is no FC_NFKC_Closure string for this character.4027* If the destCapacity is less than or equal to the length, then the buffer4028* contains the truncated name and the returned length indicates the full4029* length of the name.4030* The length does not include the zero-termination.4031*4032* @stable ICU 2.24033*/4034U_STABLE int32_t U_EXPORT24035u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);40364037#endif403840394040U_CDECL_END40414042#endif /*_UCHAR*/4043/*eof*/404440454046