17777dab0Sopenharmony_ci// © 2016 and later: Unicode, Inc. and others.
27777dab0Sopenharmony_ci// License & terms of use: http://www.unicode.org/copyright.html
37777dab0Sopenharmony_ci/*
47777dab0Sopenharmony_ci**********************************************************************
57777dab0Sopenharmony_ci*   Copyright (C) 1997-2016, International Business Machines
67777dab0Sopenharmony_ci*   Corporation and others.  All Rights Reserved.
77777dab0Sopenharmony_ci**********************************************************************
87777dab0Sopenharmony_ci*
97777dab0Sopenharmony_ci* File UCHAR.H
107777dab0Sopenharmony_ci*
117777dab0Sopenharmony_ci* Modification History:
127777dab0Sopenharmony_ci*
137777dab0Sopenharmony_ci*   Date        Name        Description
147777dab0Sopenharmony_ci*   04/02/97    aliu        Creation.
157777dab0Sopenharmony_ci*   03/29/99    helena      Updated for C APIs.
167777dab0Sopenharmony_ci*   4/15/99     Madhu       Updated for C Implementation and Javadoc
177777dab0Sopenharmony_ci*   5/20/99     Madhu       Added the function u_getVersion()
187777dab0Sopenharmony_ci*   8/19/1999   srl         Upgraded scripts to Unicode 3.0
197777dab0Sopenharmony_ci*   8/27/1999   schererm    UCharDirection constants: U_...
207777dab0Sopenharmony_ci*   11/11/1999  weiv        added u_isalnum(), cleaned comments
217777dab0Sopenharmony_ci*   01/11/2000  helena      Renamed u_getVersion to u_getUnicodeVersion().
227777dab0Sopenharmony_ci******************************************************************************
237777dab0Sopenharmony_ci*/
247777dab0Sopenharmony_ci
257777dab0Sopenharmony_ci#ifndef UCHAR_H
267777dab0Sopenharmony_ci#define UCHAR_H
277777dab0Sopenharmony_ci
287777dab0Sopenharmony_ci#include "unicode/utypes.h"
297777dab0Sopenharmony_ci#include "unicode/stringoptions.h"
307777dab0Sopenharmony_ci
317777dab0Sopenharmony_ci#if !defined(USET_DEFINED) && !defined(U_IN_DOXYGEN)
327777dab0Sopenharmony_ci
337777dab0Sopenharmony_ci#define USET_DEFINED
347777dab0Sopenharmony_ci
357777dab0Sopenharmony_ci/**
367777dab0Sopenharmony_ci * USet is the C API type corresponding to C++ class UnicodeSet.
377777dab0Sopenharmony_ci * It is forward-declared here to avoid including unicode/uset.h file if related
387777dab0Sopenharmony_ci * APIs are not used.
397777dab0Sopenharmony_ci *
407777dab0Sopenharmony_ci * @see ucnv_getUnicodeSet
417777dab0Sopenharmony_ci * @stable ICU 2.4
427777dab0Sopenharmony_ci */
437777dab0Sopenharmony_citypedef struct USet USet;
447777dab0Sopenharmony_ci
457777dab0Sopenharmony_ci#endif
467777dab0Sopenharmony_ci
477777dab0Sopenharmony_ci
487777dab0Sopenharmony_ciU_CDECL_BEGIN
497777dab0Sopenharmony_ci
507777dab0Sopenharmony_ci/*==========================================================================*/
517777dab0Sopenharmony_ci/* Unicode version number                                                   */
527777dab0Sopenharmony_ci/*==========================================================================*/
537777dab0Sopenharmony_ci/**
547777dab0Sopenharmony_ci * Unicode version number, default for the current ICU version.
557777dab0Sopenharmony_ci * The actual Unicode Character Database (UCD) data is stored in uprops.dat
567777dab0Sopenharmony_ci * and may be generated from UCD files from a different Unicode version.
577777dab0Sopenharmony_ci * Call u_getUnicodeVersion to get the actual Unicode version of the data.
587777dab0Sopenharmony_ci *
597777dab0Sopenharmony_ci * @see u_getUnicodeVersion
607777dab0Sopenharmony_ci * @stable ICU 2.0
617777dab0Sopenharmony_ci */
627777dab0Sopenharmony_ci#define U_UNICODE_VERSION "15.0"
637777dab0Sopenharmony_ci
647777dab0Sopenharmony_ci/**
657777dab0Sopenharmony_ci * \file
667777dab0Sopenharmony_ci * \brief C API: Unicode Properties
677777dab0Sopenharmony_ci *
687777dab0Sopenharmony_ci * This C API provides low-level access to the Unicode Character Database.
697777dab0Sopenharmony_ci * In addition to raw property values, some convenience functions calculate
707777dab0Sopenharmony_ci * derived properties, for example for Java-style programming.
717777dab0Sopenharmony_ci *
727777dab0Sopenharmony_ci * Unicode assigns each code point (not just assigned character) values for
737777dab0Sopenharmony_ci * many properties.
747777dab0Sopenharmony_ci * Most of them are simple boolean flags, or constants from a small enumerated list.
757777dab0Sopenharmony_ci * For some properties, values are strings or other relatively more complex types.
767777dab0Sopenharmony_ci *
777777dab0Sopenharmony_ci * For more information see
787777dab0Sopenharmony_ci * "About the Unicode Character Database" (http://www.unicode.org/ucd/)
797777dab0Sopenharmony_ci * and the ICU User Guide chapter on Properties (https://unicode-org.github.io/icu/userguide/strings/properties).
807777dab0Sopenharmony_ci *
817777dab0Sopenharmony_ci * Many properties are accessible via generic functions that take a UProperty selector.
827777dab0Sopenharmony_ci * - u_hasBinaryProperty() returns a binary value (true/false) per property and code point.
837777dab0Sopenharmony_ci * - u_getIntPropertyValue() returns an integer value per property and code point.
847777dab0Sopenharmony_ci *   For each supported enumerated or catalog property, there is
857777dab0Sopenharmony_ci *   an enum type for all of the property's values, and
867777dab0Sopenharmony_ci *   u_getIntPropertyValue() returns the numeric values of those constants.
877777dab0Sopenharmony_ci * - u_getBinaryPropertySet() returns a set for each ICU-supported binary property with
887777dab0Sopenharmony_ci *   all code points for which the property is true.
897777dab0Sopenharmony_ci * - u_getIntPropertyMap() returns a map for each
907777dab0Sopenharmony_ci *   ICU-supported enumerated/catalog/int-valued property which
917777dab0Sopenharmony_ci *   maps all Unicode code points to their values for that property.
927777dab0Sopenharmony_ci *
937777dab0Sopenharmony_ci * Many functions are designed to match java.lang.Character functions.
947777dab0Sopenharmony_ci * See the individual function documentation,
957777dab0Sopenharmony_ci * and see the JDK 1.4 java.lang.Character documentation
967777dab0Sopenharmony_ci * at http://java.sun.com/j2se/1.4/docs/api/java/lang/Character.html
977777dab0Sopenharmony_ci *
987777dab0Sopenharmony_ci * There are also functions that provide easy migration from C/POSIX functions
997777dab0Sopenharmony_ci * like isblank(). Their use is generally discouraged because the C/POSIX
1007777dab0Sopenharmony_ci * standards do not define their semantics beyond the ASCII range, which means
1017777dab0Sopenharmony_ci * that different implementations exhibit very different behavior.
1027777dab0Sopenharmony_ci * Instead, Unicode properties should be used directly.
1037777dab0Sopenharmony_ci *
1047777dab0Sopenharmony_ci * There are also only a few, broad C/POSIX character classes, and they tend
1057777dab0Sopenharmony_ci * to be used for conflicting purposes. For example, the "isalpha()" class
1067777dab0Sopenharmony_ci * is sometimes used to determine word boundaries, while a more sophisticated
1077777dab0Sopenharmony_ci * approach would at least distinguish initial letters from continuation
1087777dab0Sopenharmony_ci * characters (the latter including combining marks).
1097777dab0Sopenharmony_ci * (In ICU, BreakIterator is the most sophisticated API for word boundaries.)
1107777dab0Sopenharmony_ci * Another example: There is no "istitle()" class for titlecase characters.
1117777dab0Sopenharmony_ci *
1127777dab0Sopenharmony_ci * ICU 3.4 and later provides API access for all twelve C/POSIX character classes.
1137777dab0Sopenharmony_ci * ICU implements them according to the Standard Recommendations in
1147777dab0Sopenharmony_ci * Annex C: Compatibility Properties of UTS #18 Unicode Regular Expressions
1157777dab0Sopenharmony_ci * (http://www.unicode.org/reports/tr18/#Compatibility_Properties).
1167777dab0Sopenharmony_ci *
1177777dab0Sopenharmony_ci * API access for C/POSIX character classes is as follows:
1187777dab0Sopenharmony_ci * - alpha:     u_isUAlphabetic(c) or u_hasBinaryProperty(c, UCHAR_ALPHABETIC)
1197777dab0Sopenharmony_ci * - lower:     u_isULowercase(c) or u_hasBinaryProperty(c, UCHAR_LOWERCASE)
1207777dab0Sopenharmony_ci * - upper:     u_isUUppercase(c) or u_hasBinaryProperty(c, UCHAR_UPPERCASE)
1217777dab0Sopenharmony_ci * - punct:     u_ispunct(c)
1227777dab0Sopenharmony_ci * - digit:     u_isdigit(c) or u_charType(c)==U_DECIMAL_DIGIT_NUMBER
1237777dab0Sopenharmony_ci * - xdigit:    u_isxdigit(c) or u_hasBinaryProperty(c, UCHAR_POSIX_XDIGIT)
1247777dab0Sopenharmony_ci * - alnum:     u_hasBinaryProperty(c, UCHAR_POSIX_ALNUM)
1257777dab0Sopenharmony_ci * - space:     u_isUWhiteSpace(c) or u_hasBinaryProperty(c, UCHAR_WHITE_SPACE)
1267777dab0Sopenharmony_ci * - blank:     u_isblank(c) or u_hasBinaryProperty(c, UCHAR_POSIX_BLANK)
1277777dab0Sopenharmony_ci * - cntrl:     u_charType(c)==U_CONTROL_CHAR
1287777dab0Sopenharmony_ci * - graph:     u_hasBinaryProperty(c, UCHAR_POSIX_GRAPH)
1297777dab0Sopenharmony_ci * - print:     u_hasBinaryProperty(c, UCHAR_POSIX_PRINT)
1307777dab0Sopenharmony_ci *
1317777dab0Sopenharmony_ci * Note: Some of the u_isxyz() functions in uchar.h predate, and do not match,
1327777dab0Sopenharmony_ci * the Standard Recommendations in UTS #18. Instead, they match Java
1337777dab0Sopenharmony_ci * functions according to their API documentation.
1347777dab0Sopenharmony_ci *
1357777dab0Sopenharmony_ci * \htmlonly
1367777dab0Sopenharmony_ci * The C/POSIX character classes are also available in UnicodeSet patterns,
1377777dab0Sopenharmony_ci * using patterns like [:graph:] or \p{graph}.
1387777dab0Sopenharmony_ci * \endhtmlonly
1397777dab0Sopenharmony_ci *
1407777dab0Sopenharmony_ci * Note: There are several ICU whitespace functions.
1417777dab0Sopenharmony_ci * Comparison:
1427777dab0Sopenharmony_ci * - u_isUWhiteSpace=UCHAR_WHITE_SPACE: Unicode White_Space property;
1437777dab0Sopenharmony_ci *       most of general categories "Z" (separators) + most whitespace ISO controls
1447777dab0Sopenharmony_ci *       (including no-break spaces, but excluding IS1..IS4)
1457777dab0Sopenharmony_ci * - u_isWhitespace: Java isWhitespace; Z + whitespace ISO controls but excluding no-break spaces
1467777dab0Sopenharmony_ci * - u_isJavaSpaceChar: Java isSpaceChar; just Z (including no-break spaces)
1477777dab0Sopenharmony_ci * - u_isspace: Z + whitespace ISO controls (including no-break spaces)
1487777dab0Sopenharmony_ci * - u_isblank: "horizontal spaces" = TAB + Zs
1497777dab0Sopenharmony_ci */
1507777dab0Sopenharmony_ci
1517777dab0Sopenharmony_ci/**
1527777dab0Sopenharmony_ci * Constants.
1537777dab0Sopenharmony_ci */
1547777dab0Sopenharmony_ci
1557777dab0Sopenharmony_ci/** The lowest Unicode code point value. Code points are non-negative. @stable ICU 2.0 */
1567777dab0Sopenharmony_ci#define UCHAR_MIN_VALUE 0
1577777dab0Sopenharmony_ci
1587777dab0Sopenharmony_ci/**
1597777dab0Sopenharmony_ci * The highest Unicode code point value (scalar value) according to
1607777dab0Sopenharmony_ci * The Unicode Standard. This is a 21-bit value (20.1 bits, rounded up).
1617777dab0Sopenharmony_ci * For a single character, UChar32 is a simple type that can hold any code point value.
1627777dab0Sopenharmony_ci *
1637777dab0Sopenharmony_ci * @see UChar32
1647777dab0Sopenharmony_ci * @stable ICU 2.0
1657777dab0Sopenharmony_ci */
1667777dab0Sopenharmony_ci#define UCHAR_MAX_VALUE 0x10ffff
1677777dab0Sopenharmony_ci
1687777dab0Sopenharmony_ci/**
1697777dab0Sopenharmony_ci * Get a single-bit bit set (a flag) from a bit number 0..31.
1707777dab0Sopenharmony_ci * @stable ICU 2.1
1717777dab0Sopenharmony_ci */
1727777dab0Sopenharmony_ci#define U_MASK(x) ((uint32_t)1<<(x))
1737777dab0Sopenharmony_ci
1747777dab0Sopenharmony_ci/**
1757777dab0Sopenharmony_ci * Selection constants for Unicode properties.
1767777dab0Sopenharmony_ci * These constants are used in functions like u_hasBinaryProperty to select
1777777dab0Sopenharmony_ci * one of the Unicode properties.
1787777dab0Sopenharmony_ci *
1797777dab0Sopenharmony_ci * The properties APIs are intended to reflect Unicode properties as defined
1807777dab0Sopenharmony_ci * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
1817777dab0Sopenharmony_ci *
1827777dab0Sopenharmony_ci * For details about the properties see
1837777dab0Sopenharmony_ci * UAX #44: Unicode Character Database (http://www.unicode.org/reports/tr44/).
1847777dab0Sopenharmony_ci *
1857777dab0Sopenharmony_ci * Important: If ICU is built with UCD files from Unicode versions below, e.g., 3.2,
1867777dab0Sopenharmony_ci * then properties marked with "new in Unicode 3.2" are not or not fully available.
1877777dab0Sopenharmony_ci * Check u_getUnicodeVersion to be sure.
1887777dab0Sopenharmony_ci *
1897777dab0Sopenharmony_ci * @see u_hasBinaryProperty
1907777dab0Sopenharmony_ci * @see u_getIntPropertyValue
1917777dab0Sopenharmony_ci * @see u_getUnicodeVersion
1927777dab0Sopenharmony_ci * @stable ICU 2.1
1937777dab0Sopenharmony_ci */
1947777dab0Sopenharmony_citypedef enum UProperty {
1957777dab0Sopenharmony_ci    /*
1967777dab0Sopenharmony_ci     * Note: UProperty constants are parsed by preparseucd.py.
1977777dab0Sopenharmony_ci     * It matches lines like
1987777dab0Sopenharmony_ci     *     UCHAR_<Unicode property name>=<integer>,
1997777dab0Sopenharmony_ci     */
2007777dab0Sopenharmony_ci
2017777dab0Sopenharmony_ci    /*  Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that
2027777dab0Sopenharmony_ci    debuggers display UCHAR_ALPHABETIC as the symbolic name for 0,
2037777dab0Sopenharmony_ci    rather than UCHAR_BINARY_START.  Likewise for other *_START
2047777dab0Sopenharmony_ci    identifiers. */
2057777dab0Sopenharmony_ci
2067777dab0Sopenharmony_ci    /** Binary property Alphabetic. Same as u_isUAlphabetic, different from u_isalpha.
2077777dab0Sopenharmony_ci        Lu+Ll+Lt+Lm+Lo+Nl+Other_Alphabetic @stable ICU 2.1 */
2087777dab0Sopenharmony_ci    UCHAR_ALPHABETIC=0,
2097777dab0Sopenharmony_ci    /** First constant for binary Unicode properties. @stable ICU 2.1 */
2107777dab0Sopenharmony_ci    UCHAR_BINARY_START=UCHAR_ALPHABETIC,
2117777dab0Sopenharmony_ci    /** Binary property ASCII_Hex_Digit. 0-9 A-F a-f @stable ICU 2.1 */
2127777dab0Sopenharmony_ci    UCHAR_ASCII_HEX_DIGIT=1,
2137777dab0Sopenharmony_ci    /** Binary property Bidi_Control.
2147777dab0Sopenharmony_ci        Format controls which have specific functions
2157777dab0Sopenharmony_ci        in the Bidi Algorithm. @stable ICU 2.1 */
2167777dab0Sopenharmony_ci    UCHAR_BIDI_CONTROL=2,
2177777dab0Sopenharmony_ci    /** Binary property Bidi_Mirrored.
2187777dab0Sopenharmony_ci        Characters that may change display in RTL text.
2197777dab0Sopenharmony_ci        Same as u_isMirrored.
2207777dab0Sopenharmony_ci        See Bidi Algorithm, UTR 9. @stable ICU 2.1 */
2217777dab0Sopenharmony_ci    UCHAR_BIDI_MIRRORED=3,
2227777dab0Sopenharmony_ci    /** Binary property Dash. Variations of dashes. @stable ICU 2.1 */
2237777dab0Sopenharmony_ci    UCHAR_DASH=4,
2247777dab0Sopenharmony_ci    /** Binary property Default_Ignorable_Code_Point (new in Unicode 3.2).
2257777dab0Sopenharmony_ci        Ignorable in most processing.
2267777dab0Sopenharmony_ci        <2060..206F, FFF0..FFFB, E0000..E0FFF>+Other_Default_Ignorable_Code_Point+(Cf+Cc+Cs-White_Space) @stable ICU 2.1 */
2277777dab0Sopenharmony_ci    UCHAR_DEFAULT_IGNORABLE_CODE_POINT=5,
2287777dab0Sopenharmony_ci    /** Binary property Deprecated (new in Unicode 3.2).
2297777dab0Sopenharmony_ci        The usage of deprecated characters is strongly discouraged. @stable ICU 2.1 */
2307777dab0Sopenharmony_ci    UCHAR_DEPRECATED=6,
2317777dab0Sopenharmony_ci    /** Binary property Diacritic. Characters that linguistically modify
2327777dab0Sopenharmony_ci        the meaning of another character to which they apply. @stable ICU 2.1 */
2337777dab0Sopenharmony_ci    UCHAR_DIACRITIC=7,
2347777dab0Sopenharmony_ci    /** Binary property Extender.
2357777dab0Sopenharmony_ci        Extend the value or shape of a preceding alphabetic character,
2367777dab0Sopenharmony_ci        e.g., length and iteration marks. @stable ICU 2.1 */
2377777dab0Sopenharmony_ci    UCHAR_EXTENDER=8,
2387777dab0Sopenharmony_ci    /** Binary property Full_Composition_Exclusion.
2397777dab0Sopenharmony_ci        CompositionExclusions.txt+Singleton Decompositions+
2407777dab0Sopenharmony_ci        Non-Starter Decompositions. @stable ICU 2.1 */
2417777dab0Sopenharmony_ci    UCHAR_FULL_COMPOSITION_EXCLUSION=9,
2427777dab0Sopenharmony_ci    /** Binary property Grapheme_Base (new in Unicode 3.2).
2437777dab0Sopenharmony_ci        For programmatic determination of grapheme cluster boundaries.
2447777dab0Sopenharmony_ci        [0..10FFFF]-Cc-Cf-Cs-Co-Cn-Zl-Zp-Grapheme_Link-Grapheme_Extend-CGJ @stable ICU 2.1 */
2457777dab0Sopenharmony_ci    UCHAR_GRAPHEME_BASE=10,
2467777dab0Sopenharmony_ci    /** Binary property Grapheme_Extend (new in Unicode 3.2).
2477777dab0Sopenharmony_ci        For programmatic determination of grapheme cluster boundaries.
2487777dab0Sopenharmony_ci        Me+Mn+Mc+Other_Grapheme_Extend-Grapheme_Link-CGJ @stable ICU 2.1 */
2497777dab0Sopenharmony_ci    UCHAR_GRAPHEME_EXTEND=11,
2507777dab0Sopenharmony_ci    /** Binary property Grapheme_Link (new in Unicode 3.2).
2517777dab0Sopenharmony_ci        For programmatic determination of grapheme cluster boundaries. @stable ICU 2.1 */
2527777dab0Sopenharmony_ci    UCHAR_GRAPHEME_LINK=12,
2537777dab0Sopenharmony_ci    /** Binary property Hex_Digit.
2547777dab0Sopenharmony_ci        Characters commonly used for hexadecimal numbers. @stable ICU 2.1 */
2557777dab0Sopenharmony_ci    UCHAR_HEX_DIGIT=13,
2567777dab0Sopenharmony_ci    /** Binary property Hyphen. Dashes used to mark connections
2577777dab0Sopenharmony_ci        between pieces of words, plus the Katakana middle dot. @stable ICU 2.1 */
2587777dab0Sopenharmony_ci    UCHAR_HYPHEN=14,
2597777dab0Sopenharmony_ci    /** Binary property ID_Continue.
2607777dab0Sopenharmony_ci        Characters that can continue an identifier.
2617777dab0Sopenharmony_ci        DerivedCoreProperties.txt also says "NOTE: Cf characters should be filtered out."
2627777dab0Sopenharmony_ci        ID_Start+Mn+Mc+Nd+Pc @stable ICU 2.1 */
2637777dab0Sopenharmony_ci    UCHAR_ID_CONTINUE=15,
2647777dab0Sopenharmony_ci    /** Binary property ID_Start.
2657777dab0Sopenharmony_ci        Characters that can start an identifier.
2667777dab0Sopenharmony_ci        Lu+Ll+Lt+Lm+Lo+Nl @stable ICU 2.1 */
2677777dab0Sopenharmony_ci    UCHAR_ID_START=16,
2687777dab0Sopenharmony_ci    /** Binary property Ideographic.
2697777dab0Sopenharmony_ci        CJKV ideographs. @stable ICU 2.1 */
2707777dab0Sopenharmony_ci    UCHAR_IDEOGRAPHIC=17,
2717777dab0Sopenharmony_ci    /** Binary property IDS_Binary_Operator (new in Unicode 3.2).
2727777dab0Sopenharmony_ci        For programmatic determination of
2737777dab0Sopenharmony_ci        Ideographic Description Sequences. @stable ICU 2.1 */
2747777dab0Sopenharmony_ci    UCHAR_IDS_BINARY_OPERATOR=18,
2757777dab0Sopenharmony_ci    /** Binary property IDS_Trinary_Operator (new in Unicode 3.2).
2767777dab0Sopenharmony_ci        For programmatic determination of
2777777dab0Sopenharmony_ci        Ideographic Description Sequences. @stable ICU 2.1 */
2787777dab0Sopenharmony_ci    UCHAR_IDS_TRINARY_OPERATOR=19,
2797777dab0Sopenharmony_ci    /** Binary property Join_Control.
2807777dab0Sopenharmony_ci        Format controls for cursive joining and ligation. @stable ICU 2.1 */
2817777dab0Sopenharmony_ci    UCHAR_JOIN_CONTROL=20,
2827777dab0Sopenharmony_ci    /** Binary property Logical_Order_Exception (new in Unicode 3.2).
2837777dab0Sopenharmony_ci        Characters that do not use logical order and
2847777dab0Sopenharmony_ci        require special handling in most processing. @stable ICU 2.1 */
2857777dab0Sopenharmony_ci    UCHAR_LOGICAL_ORDER_EXCEPTION=21,
2867777dab0Sopenharmony_ci    /** Binary property Lowercase. Same as u_isULowercase, different from u_islower.
2877777dab0Sopenharmony_ci        Ll+Other_Lowercase @stable ICU 2.1 */
2887777dab0Sopenharmony_ci    UCHAR_LOWERCASE=22,
2897777dab0Sopenharmony_ci    /** Binary property Math. Sm+Other_Math @stable ICU 2.1 */
2907777dab0Sopenharmony_ci    UCHAR_MATH=23,
2917777dab0Sopenharmony_ci    /** Binary property Noncharacter_Code_Point.
2927777dab0Sopenharmony_ci        Code points that are explicitly defined as illegal
2937777dab0Sopenharmony_ci        for the encoding of characters. @stable ICU 2.1 */
2947777dab0Sopenharmony_ci    UCHAR_NONCHARACTER_CODE_POINT=24,
2957777dab0Sopenharmony_ci    /** Binary property Quotation_Mark. @stable ICU 2.1 */
2967777dab0Sopenharmony_ci    UCHAR_QUOTATION_MARK=25,
2977777dab0Sopenharmony_ci    /** Binary property Radical (new in Unicode 3.2).
2987777dab0Sopenharmony_ci        For programmatic determination of
2997777dab0Sopenharmony_ci        Ideographic Description Sequences. @stable ICU 2.1 */
3007777dab0Sopenharmony_ci    UCHAR_RADICAL=26,
3017777dab0Sopenharmony_ci    /** Binary property Soft_Dotted (new in Unicode 3.2).
3027777dab0Sopenharmony_ci        Characters with a "soft dot", like i or j.
3037777dab0Sopenharmony_ci        An accent placed on these characters causes
3047777dab0Sopenharmony_ci        the dot to disappear. @stable ICU 2.1 */
3057777dab0Sopenharmony_ci    UCHAR_SOFT_DOTTED=27,
3067777dab0Sopenharmony_ci    /** Binary property Terminal_Punctuation.
3077777dab0Sopenharmony_ci        Punctuation characters that generally mark
3087777dab0Sopenharmony_ci        the end of textual units. @stable ICU 2.1 */
3097777dab0Sopenharmony_ci    UCHAR_TERMINAL_PUNCTUATION=28,
3107777dab0Sopenharmony_ci    /** Binary property Unified_Ideograph (new in Unicode 3.2).
3117777dab0Sopenharmony_ci        For programmatic determination of
3127777dab0Sopenharmony_ci        Ideographic Description Sequences. @stable ICU 2.1 */
3137777dab0Sopenharmony_ci    UCHAR_UNIFIED_IDEOGRAPH=29,
3147777dab0Sopenharmony_ci    /** Binary property Uppercase. Same as u_isUUppercase, different from u_isupper.
3157777dab0Sopenharmony_ci        Lu+Other_Uppercase @stable ICU 2.1 */
3167777dab0Sopenharmony_ci    UCHAR_UPPERCASE=30,
3177777dab0Sopenharmony_ci    /** Binary property White_Space.
3187777dab0Sopenharmony_ci        Same as u_isUWhiteSpace, different from u_isspace and u_isWhitespace.
3197777dab0Sopenharmony_ci        Space characters+TAB+CR+LF-ZWSP-ZWNBSP @stable ICU 2.1 */
3207777dab0Sopenharmony_ci    UCHAR_WHITE_SPACE=31,
3217777dab0Sopenharmony_ci    /** Binary property XID_Continue.
3227777dab0Sopenharmony_ci        ID_Continue modified to allow closure under
3237777dab0Sopenharmony_ci        normalization forms NFKC and NFKD. @stable ICU 2.1 */
3247777dab0Sopenharmony_ci    UCHAR_XID_CONTINUE=32,
3257777dab0Sopenharmony_ci    /** Binary property XID_Start. ID_Start modified to allow
3267777dab0Sopenharmony_ci        closure under normalization forms NFKC and NFKD. @stable ICU 2.1 */
3277777dab0Sopenharmony_ci    UCHAR_XID_START=33,
3287777dab0Sopenharmony_ci    /** Binary property Case_Sensitive. Either the source of a case
3297777dab0Sopenharmony_ci        mapping or _in_ the target of a case mapping. Not the same as
3307777dab0Sopenharmony_ci        the general category Cased_Letter. @stable ICU 2.6 */
3317777dab0Sopenharmony_ci   UCHAR_CASE_SENSITIVE=34,
3327777dab0Sopenharmony_ci    /** Binary property STerm (new in Unicode 4.0.1).
3337777dab0Sopenharmony_ci        Sentence Terminal. Used in UAX #29: Text Boundaries
3347777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr29/)
3357777dab0Sopenharmony_ci        @stable ICU 3.0 */
3367777dab0Sopenharmony_ci    UCHAR_S_TERM=35,
3377777dab0Sopenharmony_ci    /** Binary property Variation_Selector (new in Unicode 4.0.1).
3387777dab0Sopenharmony_ci        Indicates all those characters that qualify as Variation Selectors.
3397777dab0Sopenharmony_ci        For details on the behavior of these characters,
3407777dab0Sopenharmony_ci        see StandardizedVariants.html and 15.6 Variation Selectors.
3417777dab0Sopenharmony_ci        @stable ICU 3.0 */
3427777dab0Sopenharmony_ci    UCHAR_VARIATION_SELECTOR=36,
3437777dab0Sopenharmony_ci    /** Binary property NFD_Inert.
3447777dab0Sopenharmony_ci        ICU-specific property for characters that are inert under NFD,
3457777dab0Sopenharmony_ci        i.e., they do not interact with adjacent characters.
3467777dab0Sopenharmony_ci        See the documentation for the Normalizer2 class and the
3477777dab0Sopenharmony_ci        Normalizer2::isInert() method.
3487777dab0Sopenharmony_ci        @stable ICU 3.0 */
3497777dab0Sopenharmony_ci    UCHAR_NFD_INERT=37,
3507777dab0Sopenharmony_ci    /** Binary property NFKD_Inert.
3517777dab0Sopenharmony_ci        ICU-specific property for characters that are inert under NFKD,
3527777dab0Sopenharmony_ci        i.e., they do not interact with adjacent characters.
3537777dab0Sopenharmony_ci        See the documentation for the Normalizer2 class and the
3547777dab0Sopenharmony_ci        Normalizer2::isInert() method.
3557777dab0Sopenharmony_ci        @stable ICU 3.0 */
3567777dab0Sopenharmony_ci    UCHAR_NFKD_INERT=38,
3577777dab0Sopenharmony_ci    /** Binary property NFC_Inert.
3587777dab0Sopenharmony_ci        ICU-specific property for characters that are inert under NFC,
3597777dab0Sopenharmony_ci        i.e., they do not interact with adjacent characters.
3607777dab0Sopenharmony_ci        See the documentation for the Normalizer2 class and the
3617777dab0Sopenharmony_ci        Normalizer2::isInert() method.
3627777dab0Sopenharmony_ci        @stable ICU 3.0 */
3637777dab0Sopenharmony_ci    UCHAR_NFC_INERT=39,
3647777dab0Sopenharmony_ci    /** Binary property NFKC_Inert.
3657777dab0Sopenharmony_ci        ICU-specific property for characters that are inert under NFKC,
3667777dab0Sopenharmony_ci        i.e., they do not interact with adjacent characters.
3677777dab0Sopenharmony_ci        See the documentation for the Normalizer2 class and the
3687777dab0Sopenharmony_ci        Normalizer2::isInert() method.
3697777dab0Sopenharmony_ci        @stable ICU 3.0 */
3707777dab0Sopenharmony_ci    UCHAR_NFKC_INERT=40,
3717777dab0Sopenharmony_ci    /** Binary Property Segment_Starter.
3727777dab0Sopenharmony_ci        ICU-specific property for characters that are starters in terms of
3737777dab0Sopenharmony_ci        Unicode normalization and combining character sequences.
3747777dab0Sopenharmony_ci        They have ccc=0 and do not occur in non-initial position of the
3757777dab0Sopenharmony_ci        canonical decomposition of any character
3767777dab0Sopenharmony_ci        (like a-umlaut in NFD and a Jamo T in an NFD(Hangul LVT)).
3777777dab0Sopenharmony_ci        ICU uses this property for segmenting a string for generating a set of
3787777dab0Sopenharmony_ci        canonically equivalent strings, e.g. for canonical closure while
3797777dab0Sopenharmony_ci        processing collation tailoring rules.
3807777dab0Sopenharmony_ci        @stable ICU 3.0 */
3817777dab0Sopenharmony_ci    UCHAR_SEGMENT_STARTER=41,
3827777dab0Sopenharmony_ci    /** Binary property Pattern_Syntax (new in Unicode 4.1).
3837777dab0Sopenharmony_ci        See UAX #31 Identifier and Pattern Syntax
3847777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr31/)
3857777dab0Sopenharmony_ci        @stable ICU 3.4 */
3867777dab0Sopenharmony_ci    UCHAR_PATTERN_SYNTAX=42,
3877777dab0Sopenharmony_ci    /** Binary property Pattern_White_Space (new in Unicode 4.1).
3887777dab0Sopenharmony_ci        See UAX #31 Identifier and Pattern Syntax
3897777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr31/)
3907777dab0Sopenharmony_ci        @stable ICU 3.4 */
3917777dab0Sopenharmony_ci    UCHAR_PATTERN_WHITE_SPACE=43,
3927777dab0Sopenharmony_ci    /** Binary property alnum (a C/POSIX character class).
3937777dab0Sopenharmony_ci        Implemented according to the UTS #18 Annex C Standard Recommendation.
3947777dab0Sopenharmony_ci        See the uchar.h file documentation.
3957777dab0Sopenharmony_ci        @stable ICU 3.4 */
3967777dab0Sopenharmony_ci    UCHAR_POSIX_ALNUM=44,
3977777dab0Sopenharmony_ci    /** Binary property blank (a C/POSIX character class).
3987777dab0Sopenharmony_ci        Implemented according to the UTS #18 Annex C Standard Recommendation.
3997777dab0Sopenharmony_ci        See the uchar.h file documentation.
4007777dab0Sopenharmony_ci        @stable ICU 3.4 */
4017777dab0Sopenharmony_ci    UCHAR_POSIX_BLANK=45,
4027777dab0Sopenharmony_ci    /** Binary property graph (a C/POSIX character class).
4037777dab0Sopenharmony_ci        Implemented according to the UTS #18 Annex C Standard Recommendation.
4047777dab0Sopenharmony_ci        See the uchar.h file documentation.
4057777dab0Sopenharmony_ci        @stable ICU 3.4 */
4067777dab0Sopenharmony_ci    UCHAR_POSIX_GRAPH=46,
4077777dab0Sopenharmony_ci    /** Binary property print (a C/POSIX character class).
4087777dab0Sopenharmony_ci        Implemented according to the UTS #18 Annex C Standard Recommendation.
4097777dab0Sopenharmony_ci        See the uchar.h file documentation.
4107777dab0Sopenharmony_ci        @stable ICU 3.4 */
4117777dab0Sopenharmony_ci    UCHAR_POSIX_PRINT=47,
4127777dab0Sopenharmony_ci    /** Binary property xdigit (a C/POSIX character class).
4137777dab0Sopenharmony_ci        Implemented according to the UTS #18 Annex C Standard Recommendation.
4147777dab0Sopenharmony_ci        See the uchar.h file documentation.
4157777dab0Sopenharmony_ci        @stable ICU 3.4 */
4167777dab0Sopenharmony_ci    UCHAR_POSIX_XDIGIT=48,
4177777dab0Sopenharmony_ci    /** Binary property Cased. For Lowercase, Uppercase and Titlecase characters. @stable ICU 4.4 */
4187777dab0Sopenharmony_ci    UCHAR_CASED=49,
4197777dab0Sopenharmony_ci    /** Binary property Case_Ignorable. Used in context-sensitive case mappings. @stable ICU 4.4 */
4207777dab0Sopenharmony_ci    UCHAR_CASE_IGNORABLE=50,
4217777dab0Sopenharmony_ci    /** Binary property Changes_When_Lowercased. @stable ICU 4.4 */
4227777dab0Sopenharmony_ci    UCHAR_CHANGES_WHEN_LOWERCASED=51,
4237777dab0Sopenharmony_ci    /** Binary property Changes_When_Uppercased. @stable ICU 4.4 */
4247777dab0Sopenharmony_ci    UCHAR_CHANGES_WHEN_UPPERCASED=52,
4257777dab0Sopenharmony_ci    /** Binary property Changes_When_Titlecased. @stable ICU 4.4 */
4267777dab0Sopenharmony_ci    UCHAR_CHANGES_WHEN_TITLECASED=53,
4277777dab0Sopenharmony_ci    /** Binary property Changes_When_Casefolded. @stable ICU 4.4 */
4287777dab0Sopenharmony_ci    UCHAR_CHANGES_WHEN_CASEFOLDED=54,
4297777dab0Sopenharmony_ci    /** Binary property Changes_When_Casemapped. @stable ICU 4.4 */
4307777dab0Sopenharmony_ci    UCHAR_CHANGES_WHEN_CASEMAPPED=55,
4317777dab0Sopenharmony_ci    /** Binary property Changes_When_NFKC_Casefolded. @stable ICU 4.4 */
4327777dab0Sopenharmony_ci    UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED=56,
4337777dab0Sopenharmony_ci    /**
4347777dab0Sopenharmony_ci     * Binary property Emoji.
4357777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr51/#Emoji_Properties
4367777dab0Sopenharmony_ci     *
4377777dab0Sopenharmony_ci     * @stable ICU 57
4387777dab0Sopenharmony_ci     */
4397777dab0Sopenharmony_ci    UCHAR_EMOJI=57,
4407777dab0Sopenharmony_ci    /**
4417777dab0Sopenharmony_ci     * Binary property Emoji_Presentation.
4427777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr51/#Emoji_Properties
4437777dab0Sopenharmony_ci     *
4447777dab0Sopenharmony_ci     * @stable ICU 57
4457777dab0Sopenharmony_ci     */
4467777dab0Sopenharmony_ci    UCHAR_EMOJI_PRESENTATION=58,
4477777dab0Sopenharmony_ci    /**
4487777dab0Sopenharmony_ci     * Binary property Emoji_Modifier.
4497777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr51/#Emoji_Properties
4507777dab0Sopenharmony_ci     *
4517777dab0Sopenharmony_ci     * @stable ICU 57
4527777dab0Sopenharmony_ci     */
4537777dab0Sopenharmony_ci    UCHAR_EMOJI_MODIFIER=59,
4547777dab0Sopenharmony_ci    /**
4557777dab0Sopenharmony_ci     * Binary property Emoji_Modifier_Base.
4567777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr51/#Emoji_Properties
4577777dab0Sopenharmony_ci     *
4587777dab0Sopenharmony_ci     * @stable ICU 57
4597777dab0Sopenharmony_ci     */
4607777dab0Sopenharmony_ci    UCHAR_EMOJI_MODIFIER_BASE=60,
4617777dab0Sopenharmony_ci    /**
4627777dab0Sopenharmony_ci     * Binary property Emoji_Component.
4637777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr51/#Emoji_Properties
4647777dab0Sopenharmony_ci     *
4657777dab0Sopenharmony_ci     * @stable ICU 60
4667777dab0Sopenharmony_ci     */
4677777dab0Sopenharmony_ci    UCHAR_EMOJI_COMPONENT=61,
4687777dab0Sopenharmony_ci    /**
4697777dab0Sopenharmony_ci     * Binary property Regional_Indicator.
4707777dab0Sopenharmony_ci     * @stable ICU 60
4717777dab0Sopenharmony_ci     */
4727777dab0Sopenharmony_ci    UCHAR_REGIONAL_INDICATOR=62,
4737777dab0Sopenharmony_ci    /**
4747777dab0Sopenharmony_ci     * Binary property Prepended_Concatenation_Mark.
4757777dab0Sopenharmony_ci     * @stable ICU 60
4767777dab0Sopenharmony_ci     */
4777777dab0Sopenharmony_ci    UCHAR_PREPENDED_CONCATENATION_MARK=63,
4787777dab0Sopenharmony_ci    /**
4797777dab0Sopenharmony_ci     * Binary property Extended_Pictographic.
4807777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr51/#Emoji_Properties
4817777dab0Sopenharmony_ci     *
4827777dab0Sopenharmony_ci     * @stable ICU 62
4837777dab0Sopenharmony_ci     */
4847777dab0Sopenharmony_ci    UCHAR_EXTENDED_PICTOGRAPHIC=64,
4857777dab0Sopenharmony_ci    /**
4867777dab0Sopenharmony_ci     * Binary property of strings Basic_Emoji.
4877777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
4887777dab0Sopenharmony_ci     *
4897777dab0Sopenharmony_ci     * @stable ICU 70
4907777dab0Sopenharmony_ci     */
4917777dab0Sopenharmony_ci    UCHAR_BASIC_EMOJI=65,
4927777dab0Sopenharmony_ci    /**
4937777dab0Sopenharmony_ci     * Binary property of strings Emoji_Keycap_Sequence.
4947777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
4957777dab0Sopenharmony_ci     *
4967777dab0Sopenharmony_ci     * @stable ICU 70
4977777dab0Sopenharmony_ci     */
4987777dab0Sopenharmony_ci    UCHAR_EMOJI_KEYCAP_SEQUENCE=66,
4997777dab0Sopenharmony_ci    /**
5007777dab0Sopenharmony_ci     * Binary property of strings RGI_Emoji_Modifier_Sequence.
5017777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
5027777dab0Sopenharmony_ci     *
5037777dab0Sopenharmony_ci     * @stable ICU 70
5047777dab0Sopenharmony_ci     */
5057777dab0Sopenharmony_ci    UCHAR_RGI_EMOJI_MODIFIER_SEQUENCE=67,
5067777dab0Sopenharmony_ci    /**
5077777dab0Sopenharmony_ci     * Binary property of strings RGI_Emoji_Flag_Sequence.
5087777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
5097777dab0Sopenharmony_ci     *
5107777dab0Sopenharmony_ci     * @stable ICU 70
5117777dab0Sopenharmony_ci     */
5127777dab0Sopenharmony_ci    UCHAR_RGI_EMOJI_FLAG_SEQUENCE=68,
5137777dab0Sopenharmony_ci    /**
5147777dab0Sopenharmony_ci     * Binary property of strings RGI_Emoji_Tag_Sequence.
5157777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
5167777dab0Sopenharmony_ci     *
5177777dab0Sopenharmony_ci     * @stable ICU 70
5187777dab0Sopenharmony_ci     */
5197777dab0Sopenharmony_ci    UCHAR_RGI_EMOJI_TAG_SEQUENCE=69,
5207777dab0Sopenharmony_ci    /**
5217777dab0Sopenharmony_ci     * Binary property of strings RGI_Emoji_ZWJ_Sequence.
5227777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
5237777dab0Sopenharmony_ci     *
5247777dab0Sopenharmony_ci     * @stable ICU 70
5257777dab0Sopenharmony_ci     */
5267777dab0Sopenharmony_ci    UCHAR_RGI_EMOJI_ZWJ_SEQUENCE=70,
5277777dab0Sopenharmony_ci    /**
5287777dab0Sopenharmony_ci     * Binary property of strings RGI_Emoji.
5297777dab0Sopenharmony_ci     * See https://www.unicode.org/reports/tr51/#Emoji_Sets
5307777dab0Sopenharmony_ci     *
5317777dab0Sopenharmony_ci     * @stable ICU 70
5327777dab0Sopenharmony_ci     */
5337777dab0Sopenharmony_ci    UCHAR_RGI_EMOJI=71,
5347777dab0Sopenharmony_ci    /** Enumerated property Bidi_Class.
5357777dab0Sopenharmony_ci        Same as u_charDirection, returns UCharDirection values. @stable ICU 2.2 */
5367777dab0Sopenharmony_ci    UCHAR_BIDI_CLASS=0x1000,
5377777dab0Sopenharmony_ci    /** First constant for enumerated/integer Unicode properties. @stable ICU 2.2 */
5387777dab0Sopenharmony_ci    UCHAR_INT_START=UCHAR_BIDI_CLASS,
5397777dab0Sopenharmony_ci    /** Enumerated property Block.
5407777dab0Sopenharmony_ci        Same as ublock_getCode, returns UBlockCode values. @stable ICU 2.2 */
5417777dab0Sopenharmony_ci    UCHAR_BLOCK=0x1001,
5427777dab0Sopenharmony_ci    /** Enumerated property Canonical_Combining_Class.
5437777dab0Sopenharmony_ci        Same as u_getCombiningClass, returns 8-bit numeric values. @stable ICU 2.2 */
5447777dab0Sopenharmony_ci    UCHAR_CANONICAL_COMBINING_CLASS=0x1002,
5457777dab0Sopenharmony_ci    /** Enumerated property Decomposition_Type.
5467777dab0Sopenharmony_ci        Returns UDecompositionType values. @stable ICU 2.2 */
5477777dab0Sopenharmony_ci    UCHAR_DECOMPOSITION_TYPE=0x1003,
5487777dab0Sopenharmony_ci    /** Enumerated property East_Asian_Width.
5497777dab0Sopenharmony_ci        See http://www.unicode.org/reports/tr11/
5507777dab0Sopenharmony_ci        Returns UEastAsianWidth values. @stable ICU 2.2 */
5517777dab0Sopenharmony_ci    UCHAR_EAST_ASIAN_WIDTH=0x1004,
5527777dab0Sopenharmony_ci    /** Enumerated property General_Category.
5537777dab0Sopenharmony_ci        Same as u_charType, returns UCharCategory values. @stable ICU 2.2 */
5547777dab0Sopenharmony_ci    UCHAR_GENERAL_CATEGORY=0x1005,
5557777dab0Sopenharmony_ci    /** Enumerated property Joining_Group.
5567777dab0Sopenharmony_ci        Returns UJoiningGroup values. @stable ICU 2.2 */
5577777dab0Sopenharmony_ci    UCHAR_JOINING_GROUP=0x1006,
5587777dab0Sopenharmony_ci    /** Enumerated property Joining_Type.
5597777dab0Sopenharmony_ci        Returns UJoiningType values. @stable ICU 2.2 */
5607777dab0Sopenharmony_ci    UCHAR_JOINING_TYPE=0x1007,
5617777dab0Sopenharmony_ci    /** Enumerated property Line_Break.
5627777dab0Sopenharmony_ci        Returns ULineBreak values. @stable ICU 2.2 */
5637777dab0Sopenharmony_ci    UCHAR_LINE_BREAK=0x1008,
5647777dab0Sopenharmony_ci    /** Enumerated property Numeric_Type.
5657777dab0Sopenharmony_ci        Returns UNumericType values. @stable ICU 2.2 */
5667777dab0Sopenharmony_ci    UCHAR_NUMERIC_TYPE=0x1009,
5677777dab0Sopenharmony_ci    /** Enumerated property Script.
5687777dab0Sopenharmony_ci        Same as uscript_getScript, returns UScriptCode values. @stable ICU 2.2 */
5697777dab0Sopenharmony_ci    UCHAR_SCRIPT=0x100A,
5707777dab0Sopenharmony_ci    /** Enumerated property Hangul_Syllable_Type, new in Unicode 4.
5717777dab0Sopenharmony_ci        Returns UHangulSyllableType values. @stable ICU 2.6 */
5727777dab0Sopenharmony_ci    UCHAR_HANGUL_SYLLABLE_TYPE=0x100B,
5737777dab0Sopenharmony_ci    /** Enumerated property NFD_Quick_Check.
5747777dab0Sopenharmony_ci        Returns UNormalizationCheckResult values. @stable ICU 3.0 */
5757777dab0Sopenharmony_ci    UCHAR_NFD_QUICK_CHECK=0x100C,
5767777dab0Sopenharmony_ci    /** Enumerated property NFKD_Quick_Check.
5777777dab0Sopenharmony_ci        Returns UNormalizationCheckResult values. @stable ICU 3.0 */
5787777dab0Sopenharmony_ci    UCHAR_NFKD_QUICK_CHECK=0x100D,
5797777dab0Sopenharmony_ci    /** Enumerated property NFC_Quick_Check.
5807777dab0Sopenharmony_ci        Returns UNormalizationCheckResult values. @stable ICU 3.0 */
5817777dab0Sopenharmony_ci    UCHAR_NFC_QUICK_CHECK=0x100E,
5827777dab0Sopenharmony_ci    /** Enumerated property NFKC_Quick_Check.
5837777dab0Sopenharmony_ci        Returns UNormalizationCheckResult values. @stable ICU 3.0 */
5847777dab0Sopenharmony_ci    UCHAR_NFKC_QUICK_CHECK=0x100F,
5857777dab0Sopenharmony_ci    /** Enumerated property Lead_Canonical_Combining_Class.
5867777dab0Sopenharmony_ci        ICU-specific property for the ccc of the first code point
5877777dab0Sopenharmony_ci        of the decomposition, or lccc(c)=ccc(NFD(c)[0]).
5887777dab0Sopenharmony_ci        Useful for checking for canonically ordered text;
5897777dab0Sopenharmony_ci        see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .
5907777dab0Sopenharmony_ci        Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */
5917777dab0Sopenharmony_ci    UCHAR_LEAD_CANONICAL_COMBINING_CLASS=0x1010,
5927777dab0Sopenharmony_ci    /** Enumerated property Trail_Canonical_Combining_Class.
5937777dab0Sopenharmony_ci        ICU-specific property for the ccc of the last code point
5947777dab0Sopenharmony_ci        of the decomposition, or tccc(c)=ccc(NFD(c)[last]).
5957777dab0Sopenharmony_ci        Useful for checking for canonically ordered text;
5967777dab0Sopenharmony_ci        see UNORM_FCD and http://www.unicode.org/notes/tn5/#FCD .
5977777dab0Sopenharmony_ci        Returns 8-bit numeric values like UCHAR_CANONICAL_COMBINING_CLASS. @stable ICU 3.0 */
5987777dab0Sopenharmony_ci    UCHAR_TRAIL_CANONICAL_COMBINING_CLASS=0x1011,
5997777dab0Sopenharmony_ci    /** Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1).
6007777dab0Sopenharmony_ci        Used in UAX #29: Text Boundaries
6017777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr29/)
6027777dab0Sopenharmony_ci        Returns UGraphemeClusterBreak values. @stable ICU 3.4 */
6037777dab0Sopenharmony_ci    UCHAR_GRAPHEME_CLUSTER_BREAK=0x1012,
6047777dab0Sopenharmony_ci    /** Enumerated property Sentence_Break (new in Unicode 4.1).
6057777dab0Sopenharmony_ci        Used in UAX #29: Text Boundaries
6067777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr29/)
6077777dab0Sopenharmony_ci        Returns USentenceBreak values. @stable ICU 3.4 */
6087777dab0Sopenharmony_ci    UCHAR_SENTENCE_BREAK=0x1013,
6097777dab0Sopenharmony_ci    /** Enumerated property Word_Break (new in Unicode 4.1).
6107777dab0Sopenharmony_ci        Used in UAX #29: Text Boundaries
6117777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr29/)
6127777dab0Sopenharmony_ci        Returns UWordBreakValues values. @stable ICU 3.4 */
6137777dab0Sopenharmony_ci    UCHAR_WORD_BREAK=0x1014,
6147777dab0Sopenharmony_ci    /** Enumerated property Bidi_Paired_Bracket_Type (new in Unicode 6.3).
6157777dab0Sopenharmony_ci        Used in UAX #9: Unicode Bidirectional Algorithm
6167777dab0Sopenharmony_ci        (http://www.unicode.org/reports/tr9/)
6177777dab0Sopenharmony_ci        Returns UBidiPairedBracketType values. @stable ICU 52 */
6187777dab0Sopenharmony_ci    UCHAR_BIDI_PAIRED_BRACKET_TYPE=0x1015,
6197777dab0Sopenharmony_ci    /**
6207777dab0Sopenharmony_ci     * Enumerated property Indic_Positional_Category.
6217777dab0Sopenharmony_ci     * New in Unicode 6.0 as provisional property Indic_Matra_Category;
6227777dab0Sopenharmony_ci     * renamed and changed to informative in Unicode 8.0.
6237777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr44/#IndicPositionalCategory.txt
6247777dab0Sopenharmony_ci     * @stable ICU 63
6257777dab0Sopenharmony_ci     */
6267777dab0Sopenharmony_ci    UCHAR_INDIC_POSITIONAL_CATEGORY=0x1016,
6277777dab0Sopenharmony_ci    /**
6287777dab0Sopenharmony_ci     * Enumerated property Indic_Syllabic_Category.
6297777dab0Sopenharmony_ci     * New in Unicode 6.0 as provisional; informative since Unicode 8.0.
6307777dab0Sopenharmony_ci     * See http://www.unicode.org/reports/tr44/#IndicSyllabicCategory.txt
6317777dab0Sopenharmony_ci     * @stable ICU 63
6327777dab0Sopenharmony_ci     */
6337777dab0Sopenharmony_ci    UCHAR_INDIC_SYLLABIC_CATEGORY=0x1017,
6347777dab0Sopenharmony_ci    /**
6357777dab0Sopenharmony_ci     * Enumerated property Vertical_Orientation.
6367777dab0Sopenharmony_ci     * Used for UAX #50 Unicode Vertical Text Layout (https://www.unicode.org/reports/tr50/).
6377777dab0Sopenharmony_ci     * New as a UCD property in Unicode 10.0.
6387777dab0Sopenharmony_ci     * @stable ICU 63
6397777dab0Sopenharmony_ci     */
6407777dab0Sopenharmony_ci    UCHAR_VERTICAL_ORIENTATION=0x1018,
6417777dab0Sopenharmony_ci    /** Bitmask property General_Category_Mask.
6427777dab0Sopenharmony_ci        This is the General_Category property returned as a bit mask.
6437777dab0Sopenharmony_ci        When used in u_getIntPropertyValue(c), same as U_MASK(u_charType(c)),
6447777dab0Sopenharmony_ci        returns bit masks for UCharCategory values where exactly one bit is set.
6457777dab0Sopenharmony_ci        When used with u_getPropertyValueName() and u_getPropertyValueEnum(),
6467777dab0Sopenharmony_ci        a multi-bit mask is used for sets of categories like "Letters".
6477777dab0Sopenharmony_ci        Mask values should be cast to uint32_t.
6487777dab0Sopenharmony_ci        @stable ICU 2.4 */
6497777dab0Sopenharmony_ci    UCHAR_GENERAL_CATEGORY_MASK=0x2000,
6507777dab0Sopenharmony_ci    /** First constant for bit-mask Unicode properties. @stable ICU 2.4 */
6517777dab0Sopenharmony_ci    UCHAR_MASK_START=UCHAR_GENERAL_CATEGORY_MASK,
6527777dab0Sopenharmony_ci    /** Double property Numeric_Value.
6537777dab0Sopenharmony_ci        Corresponds to u_getNumericValue. @stable ICU 2.4 */
6547777dab0Sopenharmony_ci    UCHAR_NUMERIC_VALUE=0x3000,
6557777dab0Sopenharmony_ci    /** First constant for double Unicode properties. @stable ICU 2.4 */
6567777dab0Sopenharmony_ci    UCHAR_DOUBLE_START=UCHAR_NUMERIC_VALUE,
6577777dab0Sopenharmony_ci    /** String property Age.
6587777dab0Sopenharmony_ci        Corresponds to u_charAge. @stable ICU 2.4 */
6597777dab0Sopenharmony_ci    UCHAR_AGE=0x4000,
6607777dab0Sopenharmony_ci    /** First constant for string Unicode properties. @stable ICU 2.4 */
6617777dab0Sopenharmony_ci    UCHAR_STRING_START=UCHAR_AGE,
6627777dab0Sopenharmony_ci    /** String property Bidi_Mirroring_Glyph.
6637777dab0Sopenharmony_ci        Corresponds to u_charMirror. @stable ICU 2.4 */
6647777dab0Sopenharmony_ci    UCHAR_BIDI_MIRRORING_GLYPH=0x4001,
6657777dab0Sopenharmony_ci    /** String property Case_Folding.
6667777dab0Sopenharmony_ci        Corresponds to u_strFoldCase in ustring.h. @stable ICU 2.4 */
6677777dab0Sopenharmony_ci    UCHAR_CASE_FOLDING=0x4002,
6687777dab0Sopenharmony_ci    /** String property Lowercase_Mapping.
6697777dab0Sopenharmony_ci        Corresponds to u_strToLower in ustring.h. @stable ICU 2.4 */
6707777dab0Sopenharmony_ci    UCHAR_LOWERCASE_MAPPING=0x4004,
6717777dab0Sopenharmony_ci    /** String property Name.
6727777dab0Sopenharmony_ci        Corresponds to u_charName. @stable ICU 2.4 */
6737777dab0Sopenharmony_ci    UCHAR_NAME=0x4005,
6747777dab0Sopenharmony_ci    /** String property Simple_Case_Folding.
6757777dab0Sopenharmony_ci        Corresponds to u_foldCase. @stable ICU 2.4 */
6767777dab0Sopenharmony_ci    UCHAR_SIMPLE_CASE_FOLDING=0x4006,
6777777dab0Sopenharmony_ci    /** String property Simple_Lowercase_Mapping.
6787777dab0Sopenharmony_ci        Corresponds to u_tolower. @stable ICU 2.4 */
6797777dab0Sopenharmony_ci    UCHAR_SIMPLE_LOWERCASE_MAPPING=0x4007,
6807777dab0Sopenharmony_ci    /** String property Simple_Titlecase_Mapping.
6817777dab0Sopenharmony_ci        Corresponds to u_totitle. @stable ICU 2.4 */
6827777dab0Sopenharmony_ci    UCHAR_SIMPLE_TITLECASE_MAPPING=0x4008,
6837777dab0Sopenharmony_ci    /** String property Simple_Uppercase_Mapping.
6847777dab0Sopenharmony_ci        Corresponds to u_toupper. @stable ICU 2.4 */
6857777dab0Sopenharmony_ci    UCHAR_SIMPLE_UPPERCASE_MAPPING=0x4009,
6867777dab0Sopenharmony_ci    /** String property Titlecase_Mapping.
6877777dab0Sopenharmony_ci        Corresponds to u_strToTitle in ustring.h. @stable ICU 2.4 */
6887777dab0Sopenharmony_ci    UCHAR_TITLECASE_MAPPING=0x400A,
6897777dab0Sopenharmony_ci    /** String property Uppercase_Mapping.
6907777dab0Sopenharmony_ci        Corresponds to u_strToUpper in ustring.h. @stable ICU 2.4 */
6917777dab0Sopenharmony_ci    UCHAR_UPPERCASE_MAPPING=0x400C,
6927777dab0Sopenharmony_ci    /** String property Bidi_Paired_Bracket (new in Unicode 6.3).
6937777dab0Sopenharmony_ci        Corresponds to u_getBidiPairedBracket. @stable ICU 52 */
6947777dab0Sopenharmony_ci    UCHAR_BIDI_PAIRED_BRACKET=0x400D,
6957777dab0Sopenharmony_ci    /** Miscellaneous property Script_Extensions (new in Unicode 6.0).
6967777dab0Sopenharmony_ci        Some characters are commonly used in multiple scripts.
6977777dab0Sopenharmony_ci        For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
6987777dab0Sopenharmony_ci        Corresponds to uscript_hasScript and uscript_getScriptExtensions in uscript.h.
6997777dab0Sopenharmony_ci        @stable ICU 4.6 */
7007777dab0Sopenharmony_ci    UCHAR_SCRIPT_EXTENSIONS=0x7000,
7017777dab0Sopenharmony_ci    /** First constant for Unicode properties with unusual value types. @stable ICU 4.6 */
7027777dab0Sopenharmony_ci    UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS,
7037777dab0Sopenharmony_ci    /** Represents a nonexistent or invalid property or property value. @stable ICU 2.4 */
7047777dab0Sopenharmony_ci    UCHAR_INVALID_CODE = -1
7057777dab0Sopenharmony_ci} UProperty;
7067777dab0Sopenharmony_ci
7077777dab0Sopenharmony_ci/**
7087777dab0Sopenharmony_ci * Data for enumerated Unicode general category types.
7097777dab0Sopenharmony_ci * See http://www.unicode.org/Public/UNIDATA/UnicodeData.html .
7107777dab0Sopenharmony_ci * @stable ICU 2.0
7117777dab0Sopenharmony_ci */
7127777dab0Sopenharmony_citypedef enum UCharCategory
7137777dab0Sopenharmony_ci{
7147777dab0Sopenharmony_ci    /*
7157777dab0Sopenharmony_ci     * Note: UCharCategory constants and their API comments are parsed by preparseucd.py.
7167777dab0Sopenharmony_ci     * It matches pairs of lines like
7177777dab0Sopenharmony_ci     *     / ** <Unicode 2-letter General_Category value> comment... * /
7187777dab0Sopenharmony_ci     *     U_<[A-Z_]+> = <integer>,
7197777dab0Sopenharmony_ci     */
7207777dab0Sopenharmony_ci
7217777dab0Sopenharmony_ci    /** Non-category for unassigned and non-character code points. @stable ICU 2.0 */
7227777dab0Sopenharmony_ci    U_UNASSIGNED              = 0,
7237777dab0Sopenharmony_ci    /** Cn "Other, Not Assigned (no characters in [UnicodeData.txt] have this property)" (same as U_UNASSIGNED!) @stable ICU 2.0 */
7247777dab0Sopenharmony_ci    U_GENERAL_OTHER_TYPES     = 0,
7257777dab0Sopenharmony_ci    /** Lu @stable ICU 2.0 */
7267777dab0Sopenharmony_ci    U_UPPERCASE_LETTER        = 1,
7277777dab0Sopenharmony_ci    /** Ll @stable ICU 2.0 */
7287777dab0Sopenharmony_ci    U_LOWERCASE_LETTER        = 2,
7297777dab0Sopenharmony_ci    /** Lt @stable ICU 2.0 */
7307777dab0Sopenharmony_ci    U_TITLECASE_LETTER        = 3,
7317777dab0Sopenharmony_ci    /** Lm @stable ICU 2.0 */
7327777dab0Sopenharmony_ci    U_MODIFIER_LETTER         = 4,
7337777dab0Sopenharmony_ci    /** Lo @stable ICU 2.0 */
7347777dab0Sopenharmony_ci    U_OTHER_LETTER            = 5,
7357777dab0Sopenharmony_ci    /** Mn @stable ICU 2.0 */
7367777dab0Sopenharmony_ci    U_NON_SPACING_MARK        = 6,
7377777dab0Sopenharmony_ci    /** Me @stable ICU 2.0 */
7387777dab0Sopenharmony_ci    U_ENCLOSING_MARK          = 7,
7397777dab0Sopenharmony_ci    /** Mc @stable ICU 2.0 */
7407777dab0Sopenharmony_ci    U_COMBINING_SPACING_MARK  = 8,
7417777dab0Sopenharmony_ci    /** Nd @stable ICU 2.0 */
7427777dab0Sopenharmony_ci    U_DECIMAL_DIGIT_NUMBER    = 9,
7437777dab0Sopenharmony_ci    /** Nl @stable ICU 2.0 */
7447777dab0Sopenharmony_ci    U_LETTER_NUMBER           = 10,
7457777dab0Sopenharmony_ci    /** No @stable ICU 2.0 */
7467777dab0Sopenharmony_ci    U_OTHER_NUMBER            = 11,
7477777dab0Sopenharmony_ci    /** Zs @stable ICU 2.0 */
7487777dab0Sopenharmony_ci    U_SPACE_SEPARATOR         = 12,
7497777dab0Sopenharmony_ci    /** Zl @stable ICU 2.0 */
7507777dab0Sopenharmony_ci    U_LINE_SEPARATOR          = 13,
7517777dab0Sopenharmony_ci    /** Zp @stable ICU 2.0 */
7527777dab0Sopenharmony_ci    U_PARAGRAPH_SEPARATOR     = 14,
7537777dab0Sopenharmony_ci    /** Cc @stable ICU 2.0 */
7547777dab0Sopenharmony_ci    U_CONTROL_CHAR            = 15,
7557777dab0Sopenharmony_ci    /** Cf @stable ICU 2.0 */
7567777dab0Sopenharmony_ci    U_FORMAT_CHAR             = 16,
7577777dab0Sopenharmony_ci    /** Co @stable ICU 2.0 */
7587777dab0Sopenharmony_ci    U_PRIVATE_USE_CHAR        = 17,
7597777dab0Sopenharmony_ci    /** Cs @stable ICU 2.0 */
7607777dab0Sopenharmony_ci    U_SURROGATE               = 18,
7617777dab0Sopenharmony_ci    /** Pd @stable ICU 2.0 */
7627777dab0Sopenharmony_ci    U_DASH_PUNCTUATION        = 19,
7637777dab0Sopenharmony_ci    /** Ps @stable ICU 2.0 */
7647777dab0Sopenharmony_ci    U_START_PUNCTUATION       = 20,
7657777dab0Sopenharmony_ci    /** Pe @stable ICU 2.0 */
7667777dab0Sopenharmony_ci    U_END_PUNCTUATION         = 21,
7677777dab0Sopenharmony_ci    /** Pc @stable ICU 2.0 */
7687777dab0Sopenharmony_ci    U_CONNECTOR_PUNCTUATION   = 22,
7697777dab0Sopenharmony_ci    /** Po @stable ICU 2.0 */
7707777dab0Sopenharmony_ci    U_OTHER_PUNCTUATION       = 23,
7717777dab0Sopenharmony_ci    /** Sm @stable ICU 2.0 */
7727777dab0Sopenharmony_ci    U_MATH_SYMBOL             = 24,
7737777dab0Sopenharmony_ci    /** Sc @stable ICU 2.0 */
7747777dab0Sopenharmony_ci    U_CURRENCY_SYMBOL         = 25,
7757777dab0Sopenharmony_ci    /** Sk @stable ICU 2.0 */
7767777dab0Sopenharmony_ci    U_MODIFIER_SYMBOL         = 26,
7777777dab0Sopenharmony_ci    /** So @stable ICU 2.0 */
7787777dab0Sopenharmony_ci    U_OTHER_SYMBOL            = 27,
7797777dab0Sopenharmony_ci    /** Pi @stable ICU 2.0 */
7807777dab0Sopenharmony_ci    U_INITIAL_PUNCTUATION     = 28,
7817777dab0Sopenharmony_ci    /** Pf @stable ICU 2.0 */
7827777dab0Sopenharmony_ci    U_FINAL_PUNCTUATION       = 29,
7837777dab0Sopenharmony_ci    /**
7847777dab0Sopenharmony_ci     * One higher than the last enum UCharCategory constant.
7857777dab0Sopenharmony_ci     * This numeric value is stable (will not change), see
7867777dab0Sopenharmony_ci     * http://www.unicode.org/policies/stability_policy.html#Property_Value
7877777dab0Sopenharmony_ci     *
7887777dab0Sopenharmony_ci     * @stable ICU 2.0
7897777dab0Sopenharmony_ci     */
7907777dab0Sopenharmony_ci    U_CHAR_CATEGORY_COUNT
7917777dab0Sopenharmony_ci} UCharCategory;
7927777dab0Sopenharmony_ci
7937777dab0Sopenharmony_ci/**
7947777dab0Sopenharmony_ci * U_GC_XX_MASK constants are bit flags corresponding to Unicode
7957777dab0Sopenharmony_ci * general category values.
7967777dab0Sopenharmony_ci * For each category, the nth bit is set if the numeric value of the
7977777dab0Sopenharmony_ci * corresponding UCharCategory constant is n.
7987777dab0Sopenharmony_ci *
7997777dab0Sopenharmony_ci * There are also some U_GC_Y_MASK constants for groups of general categories
8007777dab0Sopenharmony_ci * like L for all letter categories.
8017777dab0Sopenharmony_ci *
8027777dab0Sopenharmony_ci * @see u_charType
8037777dab0Sopenharmony_ci * @see U_GET_GC_MASK
8047777dab0Sopenharmony_ci * @see UCharCategory
8057777dab0Sopenharmony_ci * @stable ICU 2.1
8067777dab0Sopenharmony_ci */
8077777dab0Sopenharmony_ci#define U_GC_CN_MASK    U_MASK(U_GENERAL_OTHER_TYPES)
8087777dab0Sopenharmony_ci
8097777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8107777dab0Sopenharmony_ci#define U_GC_LU_MASK    U_MASK(U_UPPERCASE_LETTER)
8117777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8127777dab0Sopenharmony_ci#define U_GC_LL_MASK    U_MASK(U_LOWERCASE_LETTER)
8137777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8147777dab0Sopenharmony_ci#define U_GC_LT_MASK    U_MASK(U_TITLECASE_LETTER)
8157777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8167777dab0Sopenharmony_ci#define U_GC_LM_MASK    U_MASK(U_MODIFIER_LETTER)
8177777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8187777dab0Sopenharmony_ci#define U_GC_LO_MASK    U_MASK(U_OTHER_LETTER)
8197777dab0Sopenharmony_ci
8207777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8217777dab0Sopenharmony_ci#define U_GC_MN_MASK    U_MASK(U_NON_SPACING_MARK)
8227777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8237777dab0Sopenharmony_ci#define U_GC_ME_MASK    U_MASK(U_ENCLOSING_MARK)
8247777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8257777dab0Sopenharmony_ci#define U_GC_MC_MASK    U_MASK(U_COMBINING_SPACING_MARK)
8267777dab0Sopenharmony_ci
8277777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8287777dab0Sopenharmony_ci#define U_GC_ND_MASK    U_MASK(U_DECIMAL_DIGIT_NUMBER)
8297777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8307777dab0Sopenharmony_ci#define U_GC_NL_MASK    U_MASK(U_LETTER_NUMBER)
8317777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8327777dab0Sopenharmony_ci#define U_GC_NO_MASK    U_MASK(U_OTHER_NUMBER)
8337777dab0Sopenharmony_ci
8347777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8357777dab0Sopenharmony_ci#define U_GC_ZS_MASK    U_MASK(U_SPACE_SEPARATOR)
8367777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8377777dab0Sopenharmony_ci#define U_GC_ZL_MASK    U_MASK(U_LINE_SEPARATOR)
8387777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8397777dab0Sopenharmony_ci#define U_GC_ZP_MASK    U_MASK(U_PARAGRAPH_SEPARATOR)
8407777dab0Sopenharmony_ci
8417777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8427777dab0Sopenharmony_ci#define U_GC_CC_MASK    U_MASK(U_CONTROL_CHAR)
8437777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8447777dab0Sopenharmony_ci#define U_GC_CF_MASK    U_MASK(U_FORMAT_CHAR)
8457777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8467777dab0Sopenharmony_ci#define U_GC_CO_MASK    U_MASK(U_PRIVATE_USE_CHAR)
8477777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8487777dab0Sopenharmony_ci#define U_GC_CS_MASK    U_MASK(U_SURROGATE)
8497777dab0Sopenharmony_ci
8507777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8517777dab0Sopenharmony_ci#define U_GC_PD_MASK    U_MASK(U_DASH_PUNCTUATION)
8527777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8537777dab0Sopenharmony_ci#define U_GC_PS_MASK    U_MASK(U_START_PUNCTUATION)
8547777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8557777dab0Sopenharmony_ci#define U_GC_PE_MASK    U_MASK(U_END_PUNCTUATION)
8567777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8577777dab0Sopenharmony_ci#define U_GC_PC_MASK    U_MASK(U_CONNECTOR_PUNCTUATION)
8587777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8597777dab0Sopenharmony_ci#define U_GC_PO_MASK    U_MASK(U_OTHER_PUNCTUATION)
8607777dab0Sopenharmony_ci
8617777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8627777dab0Sopenharmony_ci#define U_GC_SM_MASK    U_MASK(U_MATH_SYMBOL)
8637777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8647777dab0Sopenharmony_ci#define U_GC_SC_MASK    U_MASK(U_CURRENCY_SYMBOL)
8657777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8667777dab0Sopenharmony_ci#define U_GC_SK_MASK    U_MASK(U_MODIFIER_SYMBOL)
8677777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8687777dab0Sopenharmony_ci#define U_GC_SO_MASK    U_MASK(U_OTHER_SYMBOL)
8697777dab0Sopenharmony_ci
8707777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8717777dab0Sopenharmony_ci#define U_GC_PI_MASK    U_MASK(U_INITIAL_PUNCTUATION)
8727777dab0Sopenharmony_ci/** Mask constant for a UCharCategory. @stable ICU 2.1 */
8737777dab0Sopenharmony_ci#define U_GC_PF_MASK    U_MASK(U_FINAL_PUNCTUATION)
8747777dab0Sopenharmony_ci
8757777dab0Sopenharmony_ci
8767777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (L Letters). @stable ICU 2.1 */
8777777dab0Sopenharmony_ci#define U_GC_L_MASK \
8787777dab0Sopenharmony_ci            (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK)
8797777dab0Sopenharmony_ci
8807777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (LC Cased Letters). @stable ICU 2.1 */
8817777dab0Sopenharmony_ci#define U_GC_LC_MASK \
8827777dab0Sopenharmony_ci            (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK)
8837777dab0Sopenharmony_ci
8847777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (M Marks). @stable ICU 2.1 */
8857777dab0Sopenharmony_ci#define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK)
8867777dab0Sopenharmony_ci
8877777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (N Numbers). @stable ICU 2.1 */
8887777dab0Sopenharmony_ci#define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK)
8897777dab0Sopenharmony_ci
8907777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (Z Separators). @stable ICU 2.1 */
8917777dab0Sopenharmony_ci#define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK)
8927777dab0Sopenharmony_ci
8937777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (C Others). @stable ICU 2.1 */
8947777dab0Sopenharmony_ci#define U_GC_C_MASK \
8957777dab0Sopenharmony_ci            (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK)
8967777dab0Sopenharmony_ci
8977777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (P Punctuation). @stable ICU 2.1 */
8987777dab0Sopenharmony_ci#define U_GC_P_MASK \
8997777dab0Sopenharmony_ci            (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \
9007777dab0Sopenharmony_ci             U_GC_PI_MASK|U_GC_PF_MASK)
9017777dab0Sopenharmony_ci
9027777dab0Sopenharmony_ci/** Mask constant for multiple UCharCategory bits (S Symbols). @stable ICU 2.1 */
9037777dab0Sopenharmony_ci#define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK)
9047777dab0Sopenharmony_ci
9057777dab0Sopenharmony_ci/**
9067777dab0Sopenharmony_ci * This specifies the language directional property of a character set.
9077777dab0Sopenharmony_ci * @stable ICU 2.0
9087777dab0Sopenharmony_ci */
9097777dab0Sopenharmony_citypedef enum UCharDirection {
9107777dab0Sopenharmony_ci    /*
9117777dab0Sopenharmony_ci     * Note: UCharDirection constants and their API comments are parsed by preparseucd.py.
9127777dab0Sopenharmony_ci     * It matches pairs of lines like
9137777dab0Sopenharmony_ci     *     / ** <Unicode 1..3-letter Bidi_Class value> comment... * /
9147777dab0Sopenharmony_ci     *     U_<[A-Z_]+> = <integer>,
9157777dab0Sopenharmony_ci     */
9167777dab0Sopenharmony_ci
9177777dab0Sopenharmony_ci    /** L @stable ICU 2.0 */
9187777dab0Sopenharmony_ci    U_LEFT_TO_RIGHT               = 0,
9197777dab0Sopenharmony_ci    /** R @stable ICU 2.0 */
9207777dab0Sopenharmony_ci    U_RIGHT_TO_LEFT               = 1,
9217777dab0Sopenharmony_ci    /** EN @stable ICU 2.0 */
9227777dab0Sopenharmony_ci    U_EUROPEAN_NUMBER             = 2,
9237777dab0Sopenharmony_ci    /** ES @stable ICU 2.0 */
9247777dab0Sopenharmony_ci    U_EUROPEAN_NUMBER_SEPARATOR   = 3,
9257777dab0Sopenharmony_ci    /** ET @stable ICU 2.0 */
9267777dab0Sopenharmony_ci    U_EUROPEAN_NUMBER_TERMINATOR  = 4,
9277777dab0Sopenharmony_ci    /** AN @stable ICU 2.0 */
9287777dab0Sopenharmony_ci    U_ARABIC_NUMBER               = 5,
9297777dab0Sopenharmony_ci    /** CS @stable ICU 2.0 */
9307777dab0Sopenharmony_ci    U_COMMON_NUMBER_SEPARATOR     = 6,
9317777dab0Sopenharmony_ci    /** B @stable ICU 2.0 */
9327777dab0Sopenharmony_ci    U_BLOCK_SEPARATOR             = 7,
9337777dab0Sopenharmony_ci    /** S @stable ICU 2.0 */
9347777dab0Sopenharmony_ci    U_SEGMENT_SEPARATOR           = 8,
9357777dab0Sopenharmony_ci    /** WS @stable ICU 2.0 */
9367777dab0Sopenharmony_ci    U_WHITE_SPACE_NEUTRAL         = 9,
9377777dab0Sopenharmony_ci    /** ON @stable ICU 2.0 */
9387777dab0Sopenharmony_ci    U_OTHER_NEUTRAL               = 10,
9397777dab0Sopenharmony_ci    /** LRE @stable ICU 2.0 */
9407777dab0Sopenharmony_ci    U_LEFT_TO_RIGHT_EMBEDDING     = 11,
9417777dab0Sopenharmony_ci    /** LRO @stable ICU 2.0 */
9427777dab0Sopenharmony_ci    U_LEFT_TO_RIGHT_OVERRIDE      = 12,
9437777dab0Sopenharmony_ci    /** AL @stable ICU 2.0 */
9447777dab0Sopenharmony_ci    U_RIGHT_TO_LEFT_ARABIC        = 13,
9457777dab0Sopenharmony_ci    /** RLE @stable ICU 2.0 */
9467777dab0Sopenharmony_ci    U_RIGHT_TO_LEFT_EMBEDDING     = 14,
9477777dab0Sopenharmony_ci    /** RLO @stable ICU 2.0 */
9487777dab0Sopenharmony_ci    U_RIGHT_TO_LEFT_OVERRIDE      = 15,
9497777dab0Sopenharmony_ci    /** PDF @stable ICU 2.0 */
9507777dab0Sopenharmony_ci    U_POP_DIRECTIONAL_FORMAT      = 16,
9517777dab0Sopenharmony_ci    /** NSM @stable ICU 2.0 */
9527777dab0Sopenharmony_ci    U_DIR_NON_SPACING_MARK        = 17,
9537777dab0Sopenharmony_ci    /** BN @stable ICU 2.0 */
9547777dab0Sopenharmony_ci    U_BOUNDARY_NEUTRAL            = 18,
9557777dab0Sopenharmony_ci    /** FSI @stable ICU 52 */
9567777dab0Sopenharmony_ci    U_FIRST_STRONG_ISOLATE        = 19,
9577777dab0Sopenharmony_ci    /** LRI @stable ICU 52 */
9587777dab0Sopenharmony_ci    U_LEFT_TO_RIGHT_ISOLATE       = 20,
9597777dab0Sopenharmony_ci    /** RLI @stable ICU 52 */
9607777dab0Sopenharmony_ci    U_RIGHT_TO_LEFT_ISOLATE       = 21,
9617777dab0Sopenharmony_ci    /** PDI @stable ICU 52 */
9627777dab0Sopenharmony_ci    U_POP_DIRECTIONAL_ISOLATE     = 22,
9637777dab0Sopenharmony_ci} UCharDirection;
9647777dab0Sopenharmony_ci
9657777dab0Sopenharmony_ci/**
9667777dab0Sopenharmony_ci * Bidi Paired Bracket Type constants.
9677777dab0Sopenharmony_ci *
9687777dab0Sopenharmony_ci * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE
9697777dab0Sopenharmony_ci * @stable ICU 52
9707777dab0Sopenharmony_ci */
9717777dab0Sopenharmony_citypedef enum UBidiPairedBracketType {
9727777dab0Sopenharmony_ci    /*
9737777dab0Sopenharmony_ci     * Note: UBidiPairedBracketType constants are parsed by preparseucd.py.
9747777dab0Sopenharmony_ci     * It matches lines like
9757777dab0Sopenharmony_ci     *     U_BPT_<Unicode Bidi_Paired_Bracket_Type value name>
9767777dab0Sopenharmony_ci     */
9777777dab0Sopenharmony_ci
9787777dab0Sopenharmony_ci    /** Not a paired bracket. @stable ICU 52 */
9797777dab0Sopenharmony_ci    U_BPT_NONE,
9807777dab0Sopenharmony_ci    /** Open paired bracket. @stable ICU 52 */
9817777dab0Sopenharmony_ci    U_BPT_OPEN,
9827777dab0Sopenharmony_ci    /** Close paired bracket. @stable ICU 52 */
9837777dab0Sopenharmony_ci    U_BPT_CLOSE,
9847777dab0Sopenharmony_ci} UBidiPairedBracketType;
9857777dab0Sopenharmony_ci
9867777dab0Sopenharmony_ci/**
9877777dab0Sopenharmony_ci * Constants for Unicode blocks, see the Unicode Data file Blocks.txt
9887777dab0Sopenharmony_ci * @stable ICU 2.0
9897777dab0Sopenharmony_ci */
9907777dab0Sopenharmony_cienum UBlockCode {
9917777dab0Sopenharmony_ci    /*
9927777dab0Sopenharmony_ci     * Note: UBlockCode constants are parsed by preparseucd.py.
9937777dab0Sopenharmony_ci     * It matches lines like
9947777dab0Sopenharmony_ci     *     UBLOCK_<Unicode Block value name> = <integer>,
9957777dab0Sopenharmony_ci     */
9967777dab0Sopenharmony_ci
9977777dab0Sopenharmony_ci    /** New No_Block value in Unicode 4. @stable ICU 2.6 */
9987777dab0Sopenharmony_ci    UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */
9997777dab0Sopenharmony_ci
10007777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10017777dab0Sopenharmony_ci    UBLOCK_BASIC_LATIN = 1, /*[0000]*/
10027777dab0Sopenharmony_ci
10037777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10047777dab0Sopenharmony_ci    UBLOCK_LATIN_1_SUPPLEMENT=2, /*[0080]*/
10057777dab0Sopenharmony_ci
10067777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10077777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/
10087777dab0Sopenharmony_ci
10097777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10107777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/
10117777dab0Sopenharmony_ci
10127777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10137777dab0Sopenharmony_ci    UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/
10147777dab0Sopenharmony_ci
10157777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10167777dab0Sopenharmony_ci    UBLOCK_SPACING_MODIFIER_LETTERS =6, /*[02B0]*/
10177777dab0Sopenharmony_ci
10187777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10197777dab0Sopenharmony_ci    UBLOCK_COMBINING_DIACRITICAL_MARKS =7, /*[0300]*/
10207777dab0Sopenharmony_ci
10217777dab0Sopenharmony_ci    /**
10227777dab0Sopenharmony_ci     * Unicode 3.2 renames this block to "Greek and Coptic".
10237777dab0Sopenharmony_ci     * @stable ICU 2.0
10247777dab0Sopenharmony_ci     */
10257777dab0Sopenharmony_ci    UBLOCK_GREEK =8, /*[0370]*/
10267777dab0Sopenharmony_ci
10277777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10287777dab0Sopenharmony_ci    UBLOCK_CYRILLIC =9, /*[0400]*/
10297777dab0Sopenharmony_ci
10307777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10317777dab0Sopenharmony_ci    UBLOCK_ARMENIAN =10, /*[0530]*/
10327777dab0Sopenharmony_ci
10337777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10347777dab0Sopenharmony_ci    UBLOCK_HEBREW =11, /*[0590]*/
10357777dab0Sopenharmony_ci
10367777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10377777dab0Sopenharmony_ci    UBLOCK_ARABIC =12, /*[0600]*/
10387777dab0Sopenharmony_ci
10397777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10407777dab0Sopenharmony_ci    UBLOCK_SYRIAC =13, /*[0700]*/
10417777dab0Sopenharmony_ci
10427777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10437777dab0Sopenharmony_ci    UBLOCK_THAANA =14, /*[0780]*/
10447777dab0Sopenharmony_ci
10457777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10467777dab0Sopenharmony_ci    UBLOCK_DEVANAGARI =15, /*[0900]*/
10477777dab0Sopenharmony_ci
10487777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10497777dab0Sopenharmony_ci    UBLOCK_BENGALI =16, /*[0980]*/
10507777dab0Sopenharmony_ci
10517777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10527777dab0Sopenharmony_ci    UBLOCK_GURMUKHI =17, /*[0A00]*/
10537777dab0Sopenharmony_ci
10547777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10557777dab0Sopenharmony_ci    UBLOCK_GUJARATI =18, /*[0A80]*/
10567777dab0Sopenharmony_ci
10577777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10587777dab0Sopenharmony_ci    UBLOCK_ORIYA =19, /*[0B00]*/
10597777dab0Sopenharmony_ci
10607777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10617777dab0Sopenharmony_ci    UBLOCK_TAMIL =20, /*[0B80]*/
10627777dab0Sopenharmony_ci
10637777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10647777dab0Sopenharmony_ci    UBLOCK_TELUGU =21, /*[0C00]*/
10657777dab0Sopenharmony_ci
10667777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10677777dab0Sopenharmony_ci    UBLOCK_KANNADA =22, /*[0C80]*/
10687777dab0Sopenharmony_ci
10697777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10707777dab0Sopenharmony_ci    UBLOCK_MALAYALAM =23, /*[0D00]*/
10717777dab0Sopenharmony_ci
10727777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10737777dab0Sopenharmony_ci    UBLOCK_SINHALA =24, /*[0D80]*/
10747777dab0Sopenharmony_ci
10757777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10767777dab0Sopenharmony_ci    UBLOCK_THAI =25, /*[0E00]*/
10777777dab0Sopenharmony_ci
10787777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10797777dab0Sopenharmony_ci    UBLOCK_LAO =26, /*[0E80]*/
10807777dab0Sopenharmony_ci
10817777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10827777dab0Sopenharmony_ci    UBLOCK_TIBETAN =27, /*[0F00]*/
10837777dab0Sopenharmony_ci
10847777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10857777dab0Sopenharmony_ci    UBLOCK_MYANMAR =28, /*[1000]*/
10867777dab0Sopenharmony_ci
10877777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10887777dab0Sopenharmony_ci    UBLOCK_GEORGIAN =29, /*[10A0]*/
10897777dab0Sopenharmony_ci
10907777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10917777dab0Sopenharmony_ci    UBLOCK_HANGUL_JAMO =30, /*[1100]*/
10927777dab0Sopenharmony_ci
10937777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10947777dab0Sopenharmony_ci    UBLOCK_ETHIOPIC =31, /*[1200]*/
10957777dab0Sopenharmony_ci
10967777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
10977777dab0Sopenharmony_ci    UBLOCK_CHEROKEE =32, /*[13A0]*/
10987777dab0Sopenharmony_ci
10997777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11007777dab0Sopenharmony_ci    UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS =33, /*[1400]*/
11017777dab0Sopenharmony_ci
11027777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11037777dab0Sopenharmony_ci    UBLOCK_OGHAM =34, /*[1680]*/
11047777dab0Sopenharmony_ci
11057777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11067777dab0Sopenharmony_ci    UBLOCK_RUNIC =35, /*[16A0]*/
11077777dab0Sopenharmony_ci
11087777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11097777dab0Sopenharmony_ci    UBLOCK_KHMER =36, /*[1780]*/
11107777dab0Sopenharmony_ci
11117777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11127777dab0Sopenharmony_ci    UBLOCK_MONGOLIAN =37, /*[1800]*/
11137777dab0Sopenharmony_ci
11147777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11157777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_ADDITIONAL =38, /*[1E00]*/
11167777dab0Sopenharmony_ci
11177777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11187777dab0Sopenharmony_ci    UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/
11197777dab0Sopenharmony_ci
11207777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11217777dab0Sopenharmony_ci    UBLOCK_GENERAL_PUNCTUATION =40, /*[2000]*/
11227777dab0Sopenharmony_ci
11237777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11247777dab0Sopenharmony_ci    UBLOCK_SUPERSCRIPTS_AND_SUBSCRIPTS =41, /*[2070]*/
11257777dab0Sopenharmony_ci
11267777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11277777dab0Sopenharmony_ci    UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/
11287777dab0Sopenharmony_ci
11297777dab0Sopenharmony_ci    /**
11307777dab0Sopenharmony_ci     * Unicode 3.2 renames this block to "Combining Diacritical Marks for Symbols".
11317777dab0Sopenharmony_ci     * @stable ICU 2.0
11327777dab0Sopenharmony_ci     */
11337777dab0Sopenharmony_ci    UBLOCK_COMBINING_MARKS_FOR_SYMBOLS =43, /*[20D0]*/
11347777dab0Sopenharmony_ci
11357777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11367777dab0Sopenharmony_ci    UBLOCK_LETTERLIKE_SYMBOLS =44, /*[2100]*/
11377777dab0Sopenharmony_ci
11387777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11397777dab0Sopenharmony_ci    UBLOCK_NUMBER_FORMS =45, /*[2150]*/
11407777dab0Sopenharmony_ci
11417777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11427777dab0Sopenharmony_ci    UBLOCK_ARROWS =46, /*[2190]*/
11437777dab0Sopenharmony_ci
11447777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11457777dab0Sopenharmony_ci    UBLOCK_MATHEMATICAL_OPERATORS =47, /*[2200]*/
11467777dab0Sopenharmony_ci
11477777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11487777dab0Sopenharmony_ci    UBLOCK_MISCELLANEOUS_TECHNICAL =48, /*[2300]*/
11497777dab0Sopenharmony_ci
11507777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11517777dab0Sopenharmony_ci    UBLOCK_CONTROL_PICTURES =49, /*[2400]*/
11527777dab0Sopenharmony_ci
11537777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11547777dab0Sopenharmony_ci    UBLOCK_OPTICAL_CHARACTER_RECOGNITION =50, /*[2440]*/
11557777dab0Sopenharmony_ci
11567777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11577777dab0Sopenharmony_ci    UBLOCK_ENCLOSED_ALPHANUMERICS =51, /*[2460]*/
11587777dab0Sopenharmony_ci
11597777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11607777dab0Sopenharmony_ci    UBLOCK_BOX_DRAWING =52, /*[2500]*/
11617777dab0Sopenharmony_ci
11627777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11637777dab0Sopenharmony_ci    UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/
11647777dab0Sopenharmony_ci
11657777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11667777dab0Sopenharmony_ci    UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/
11677777dab0Sopenharmony_ci
11687777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11697777dab0Sopenharmony_ci    UBLOCK_MISCELLANEOUS_SYMBOLS =55, /*[2600]*/
11707777dab0Sopenharmony_ci
11717777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11727777dab0Sopenharmony_ci    UBLOCK_DINGBATS =56, /*[2700]*/
11737777dab0Sopenharmony_ci
11747777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11757777dab0Sopenharmony_ci    UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/
11767777dab0Sopenharmony_ci
11777777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11787777dab0Sopenharmony_ci    UBLOCK_CJK_RADICALS_SUPPLEMENT =58, /*[2E80]*/
11797777dab0Sopenharmony_ci
11807777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11817777dab0Sopenharmony_ci    UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/
11827777dab0Sopenharmony_ci
11837777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11847777dab0Sopenharmony_ci    UBLOCK_IDEOGRAPHIC_DESCRIPTION_CHARACTERS =60, /*[2FF0]*/
11857777dab0Sopenharmony_ci
11867777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11877777dab0Sopenharmony_ci    UBLOCK_CJK_SYMBOLS_AND_PUNCTUATION =61, /*[3000]*/
11887777dab0Sopenharmony_ci
11897777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11907777dab0Sopenharmony_ci    UBLOCK_HIRAGANA =62, /*[3040]*/
11917777dab0Sopenharmony_ci
11927777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11937777dab0Sopenharmony_ci    UBLOCK_KATAKANA =63, /*[30A0]*/
11947777dab0Sopenharmony_ci
11957777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11967777dab0Sopenharmony_ci    UBLOCK_BOPOMOFO =64, /*[3100]*/
11977777dab0Sopenharmony_ci
11987777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
11997777dab0Sopenharmony_ci    UBLOCK_HANGUL_COMPATIBILITY_JAMO =65, /*[3130]*/
12007777dab0Sopenharmony_ci
12017777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12027777dab0Sopenharmony_ci    UBLOCK_KANBUN =66, /*[3190]*/
12037777dab0Sopenharmony_ci
12047777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12057777dab0Sopenharmony_ci    UBLOCK_BOPOMOFO_EXTENDED =67, /*[31A0]*/
12067777dab0Sopenharmony_ci
12077777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12087777dab0Sopenharmony_ci    UBLOCK_ENCLOSED_CJK_LETTERS_AND_MONTHS =68, /*[3200]*/
12097777dab0Sopenharmony_ci
12107777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12117777dab0Sopenharmony_ci    UBLOCK_CJK_COMPATIBILITY =69, /*[3300]*/
12127777dab0Sopenharmony_ci
12137777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12147777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A =70, /*[3400]*/
12157777dab0Sopenharmony_ci
12167777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12177777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS =71, /*[4E00]*/
12187777dab0Sopenharmony_ci
12197777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12207777dab0Sopenharmony_ci    UBLOCK_YI_SYLLABLES =72, /*[A000]*/
12217777dab0Sopenharmony_ci
12227777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12237777dab0Sopenharmony_ci    UBLOCK_YI_RADICALS =73, /*[A490]*/
12247777dab0Sopenharmony_ci
12257777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12267777dab0Sopenharmony_ci    UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/
12277777dab0Sopenharmony_ci
12287777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12297777dab0Sopenharmony_ci    UBLOCK_HIGH_SURROGATES =75, /*[D800]*/
12307777dab0Sopenharmony_ci
12317777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12327777dab0Sopenharmony_ci    UBLOCK_HIGH_PRIVATE_USE_SURROGATES =76, /*[DB80]*/
12337777dab0Sopenharmony_ci
12347777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12357777dab0Sopenharmony_ci    UBLOCK_LOW_SURROGATES =77, /*[DC00]*/
12367777dab0Sopenharmony_ci
12377777dab0Sopenharmony_ci    /**
12387777dab0Sopenharmony_ci     * Same as UBLOCK_PRIVATE_USE.
12397777dab0Sopenharmony_ci     * Until Unicode 3.1.1, the corresponding block name was "Private Use",
12407777dab0Sopenharmony_ci     * and multiple code point ranges had this block.
12417777dab0Sopenharmony_ci     * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and
12427777dab0Sopenharmony_ci     * adds separate blocks for the supplementary PUAs.
12437777dab0Sopenharmony_ci     *
12447777dab0Sopenharmony_ci     * @stable ICU 2.0
12457777dab0Sopenharmony_ci     */
12467777dab0Sopenharmony_ci    UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/
12477777dab0Sopenharmony_ci    /**
12487777dab0Sopenharmony_ci     * Same as UBLOCK_PRIVATE_USE_AREA.
12497777dab0Sopenharmony_ci     * Until Unicode 3.1.1, the corresponding block name was "Private Use",
12507777dab0Sopenharmony_ci     * and multiple code point ranges had this block.
12517777dab0Sopenharmony_ci     * Unicode 3.2 renames the block for the BMP PUA to "Private Use Area" and
12527777dab0Sopenharmony_ci     * adds separate blocks for the supplementary PUAs.
12537777dab0Sopenharmony_ci     *
12547777dab0Sopenharmony_ci     * @stable ICU 2.0
12557777dab0Sopenharmony_ci     */
12567777dab0Sopenharmony_ci    UBLOCK_PRIVATE_USE = UBLOCK_PRIVATE_USE_AREA,
12577777dab0Sopenharmony_ci
12587777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12597777dab0Sopenharmony_ci    UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS =79, /*[F900]*/
12607777dab0Sopenharmony_ci
12617777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12627777dab0Sopenharmony_ci    UBLOCK_ALPHABETIC_PRESENTATION_FORMS =80, /*[FB00]*/
12637777dab0Sopenharmony_ci
12647777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12657777dab0Sopenharmony_ci    UBLOCK_ARABIC_PRESENTATION_FORMS_A =81, /*[FB50]*/
12667777dab0Sopenharmony_ci
12677777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12687777dab0Sopenharmony_ci    UBLOCK_COMBINING_HALF_MARKS =82, /*[FE20]*/
12697777dab0Sopenharmony_ci
12707777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12717777dab0Sopenharmony_ci    UBLOCK_CJK_COMPATIBILITY_FORMS =83, /*[FE30]*/
12727777dab0Sopenharmony_ci
12737777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12747777dab0Sopenharmony_ci    UBLOCK_SMALL_FORM_VARIANTS =84, /*[FE50]*/
12757777dab0Sopenharmony_ci
12767777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12777777dab0Sopenharmony_ci    UBLOCK_ARABIC_PRESENTATION_FORMS_B =85, /*[FE70]*/
12787777dab0Sopenharmony_ci
12797777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12807777dab0Sopenharmony_ci    UBLOCK_SPECIALS =86, /*[FFF0]*/
12817777dab0Sopenharmony_ci
12827777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12837777dab0Sopenharmony_ci    UBLOCK_HALFWIDTH_AND_FULLWIDTH_FORMS =87, /*[FF00]*/
12847777dab0Sopenharmony_ci
12857777dab0Sopenharmony_ci    /* New blocks in Unicode 3.1 */
12867777dab0Sopenharmony_ci
12877777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12887777dab0Sopenharmony_ci    UBLOCK_OLD_ITALIC = 88, /*[10300]*/
12897777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12907777dab0Sopenharmony_ci    UBLOCK_GOTHIC = 89, /*[10330]*/
12917777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12927777dab0Sopenharmony_ci    UBLOCK_DESERET = 90, /*[10400]*/
12937777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12947777dab0Sopenharmony_ci    UBLOCK_BYZANTINE_MUSICAL_SYMBOLS = 91, /*[1D000]*/
12957777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12967777dab0Sopenharmony_ci    UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/
12977777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
12987777dab0Sopenharmony_ci    UBLOCK_MATHEMATICAL_ALPHANUMERIC_SYMBOLS = 93, /*[1D400]*/
12997777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
13007777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_B  = 94, /*[20000]*/
13017777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
13027777dab0Sopenharmony_ci    UBLOCK_CJK_COMPATIBILITY_IDEOGRAPHS_SUPPLEMENT = 95, /*[2F800]*/
13037777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
13047777dab0Sopenharmony_ci    UBLOCK_TAGS = 96, /*[E0000]*/
13057777dab0Sopenharmony_ci
13067777dab0Sopenharmony_ci    /* New blocks in Unicode 3.2 */
13077777dab0Sopenharmony_ci
13087777dab0Sopenharmony_ci    /** @stable ICU 3.0  */
13097777dab0Sopenharmony_ci    UBLOCK_CYRILLIC_SUPPLEMENT = 97, /*[0500]*/
13107777dab0Sopenharmony_ci    /**
13117777dab0Sopenharmony_ci     * Unicode 4.0.1 renames the "Cyrillic Supplementary" block to "Cyrillic Supplement".
13127777dab0Sopenharmony_ci     * @stable ICU 2.2
13137777dab0Sopenharmony_ci     */
13147777dab0Sopenharmony_ci    UBLOCK_CYRILLIC_SUPPLEMENTARY = UBLOCK_CYRILLIC_SUPPLEMENT,
13157777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13167777dab0Sopenharmony_ci    UBLOCK_TAGALOG = 98, /*[1700]*/
13177777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13187777dab0Sopenharmony_ci    UBLOCK_HANUNOO = 99, /*[1720]*/
13197777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13207777dab0Sopenharmony_ci    UBLOCK_BUHID = 100, /*[1740]*/
13217777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13227777dab0Sopenharmony_ci    UBLOCK_TAGBANWA = 101, /*[1760]*/
13237777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13247777dab0Sopenharmony_ci    UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_A = 102, /*[27C0]*/
13257777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13267777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTAL_ARROWS_A = 103, /*[27F0]*/
13277777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13287777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTAL_ARROWS_B = 104, /*[2900]*/
13297777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13307777dab0Sopenharmony_ci    UBLOCK_MISCELLANEOUS_MATHEMATICAL_SYMBOLS_B = 105, /*[2980]*/
13317777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13327777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTAL_MATHEMATICAL_OPERATORS = 106, /*[2A00]*/
13337777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13347777dab0Sopenharmony_ci    UBLOCK_KATAKANA_PHONETIC_EXTENSIONS = 107, /*[31F0]*/
13357777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13367777dab0Sopenharmony_ci    UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/
13377777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13387777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_A = 109, /*[F0000]*/
13397777dab0Sopenharmony_ci    /** @stable ICU 2.2 */
13407777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTARY_PRIVATE_USE_AREA_B = 110, /*[100000]*/
13417777dab0Sopenharmony_ci
13427777dab0Sopenharmony_ci    /* New blocks in Unicode 4 */
13437777dab0Sopenharmony_ci
13447777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13457777dab0Sopenharmony_ci    UBLOCK_LIMBU = 111, /*[1900]*/
13467777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13477777dab0Sopenharmony_ci    UBLOCK_TAI_LE = 112, /*[1950]*/
13487777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13497777dab0Sopenharmony_ci    UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/
13507777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13517777dab0Sopenharmony_ci    UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/
13527777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13537777dab0Sopenharmony_ci    UBLOCK_MISCELLANEOUS_SYMBOLS_AND_ARROWS = 115, /*[2B00]*/
13547777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13557777dab0Sopenharmony_ci    UBLOCK_YIJING_HEXAGRAM_SYMBOLS = 116, /*[4DC0]*/
13567777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13577777dab0Sopenharmony_ci    UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/
13587777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13597777dab0Sopenharmony_ci    UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/
13607777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13617777dab0Sopenharmony_ci    UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/
13627777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13637777dab0Sopenharmony_ci    UBLOCK_UGARITIC = 120, /*[10380]*/
13647777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13657777dab0Sopenharmony_ci    UBLOCK_SHAVIAN = 121, /*[10450]*/
13667777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13677777dab0Sopenharmony_ci    UBLOCK_OSMANYA = 122, /*[10480]*/
13687777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13697777dab0Sopenharmony_ci    UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/
13707777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13717777dab0Sopenharmony_ci    UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/
13727777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
13737777dab0Sopenharmony_ci    UBLOCK_VARIATION_SELECTORS_SUPPLEMENT = 125, /*[E0100]*/
13747777dab0Sopenharmony_ci
13757777dab0Sopenharmony_ci    /* New blocks in Unicode 4.1 */
13767777dab0Sopenharmony_ci
13777777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13787777dab0Sopenharmony_ci    UBLOCK_ANCIENT_GREEK_MUSICAL_NOTATION = 126, /*[1D200]*/
13797777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13807777dab0Sopenharmony_ci    UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/
13817777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13827777dab0Sopenharmony_ci    UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/
13837777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13847777dab0Sopenharmony_ci    UBLOCK_BUGINESE = 129, /*[1A00]*/
13857777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13867777dab0Sopenharmony_ci    UBLOCK_CJK_STROKES = 130, /*[31C0]*/
13877777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13887777dab0Sopenharmony_ci    UBLOCK_COMBINING_DIACRITICAL_MARKS_SUPPLEMENT = 131, /*[1DC0]*/
13897777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13907777dab0Sopenharmony_ci    UBLOCK_COPTIC = 132, /*[2C80]*/
13917777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13927777dab0Sopenharmony_ci    UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/
13937777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13947777dab0Sopenharmony_ci    UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/
13957777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13967777dab0Sopenharmony_ci    UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/
13977777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
13987777dab0Sopenharmony_ci    UBLOCK_GLAGOLITIC = 136, /*[2C00]*/
13997777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14007777dab0Sopenharmony_ci    UBLOCK_KHAROSHTHI = 137, /*[10A00]*/
14017777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14027777dab0Sopenharmony_ci    UBLOCK_MODIFIER_TONE_LETTERS = 138, /*[A700]*/
14037777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14047777dab0Sopenharmony_ci    UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/
14057777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14067777dab0Sopenharmony_ci    UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/
14077777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14087777dab0Sopenharmony_ci    UBLOCK_PHONETIC_EXTENSIONS_SUPPLEMENT = 141, /*[1D80]*/
14097777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14107777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTAL_PUNCTUATION = 142, /*[2E00]*/
14117777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14127777dab0Sopenharmony_ci    UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/
14137777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14147777dab0Sopenharmony_ci    UBLOCK_TIFINAGH = 144, /*[2D30]*/
14157777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
14167777dab0Sopenharmony_ci    UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/
14177777dab0Sopenharmony_ci
14187777dab0Sopenharmony_ci    /* New blocks in Unicode 5.0 */
14197777dab0Sopenharmony_ci
14207777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14217777dab0Sopenharmony_ci    UBLOCK_NKO = 146, /*[07C0]*/
14227777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14237777dab0Sopenharmony_ci    UBLOCK_BALINESE = 147, /*[1B00]*/
14247777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14257777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/
14267777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14277777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/
14287777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14297777dab0Sopenharmony_ci    UBLOCK_PHAGS_PA = 150, /*[A840]*/
14307777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14317777dab0Sopenharmony_ci    UBLOCK_PHOENICIAN = 151, /*[10900]*/
14327777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14337777dab0Sopenharmony_ci    UBLOCK_CUNEIFORM = 152, /*[12000]*/
14347777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14357777dab0Sopenharmony_ci    UBLOCK_CUNEIFORM_NUMBERS_AND_PUNCTUATION = 153, /*[12400]*/
14367777dab0Sopenharmony_ci    /** @stable ICU 3.6 */
14377777dab0Sopenharmony_ci    UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/
14387777dab0Sopenharmony_ci
14397777dab0Sopenharmony_ci    /* New blocks in Unicode 5.1 */
14407777dab0Sopenharmony_ci
14417777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14427777dab0Sopenharmony_ci    UBLOCK_SUNDANESE = 155, /*[1B80]*/
14437777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14447777dab0Sopenharmony_ci    UBLOCK_LEPCHA = 156, /*[1C00]*/
14457777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14467777dab0Sopenharmony_ci    UBLOCK_OL_CHIKI = 157, /*[1C50]*/
14477777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14487777dab0Sopenharmony_ci    UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/
14497777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14507777dab0Sopenharmony_ci    UBLOCK_VAI = 159, /*[A500]*/
14517777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14527777dab0Sopenharmony_ci    UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/
14537777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14547777dab0Sopenharmony_ci    UBLOCK_SAURASHTRA = 161, /*[A880]*/
14557777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14567777dab0Sopenharmony_ci    UBLOCK_KAYAH_LI = 162, /*[A900]*/
14577777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14587777dab0Sopenharmony_ci    UBLOCK_REJANG = 163, /*[A930]*/
14597777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14607777dab0Sopenharmony_ci    UBLOCK_CHAM = 164, /*[AA00]*/
14617777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14627777dab0Sopenharmony_ci    UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/
14637777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14647777dab0Sopenharmony_ci    UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/
14657777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14667777dab0Sopenharmony_ci    UBLOCK_LYCIAN = 167, /*[10280]*/
14677777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14687777dab0Sopenharmony_ci    UBLOCK_CARIAN = 168, /*[102A0]*/
14697777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14707777dab0Sopenharmony_ci    UBLOCK_LYDIAN = 169, /*[10920]*/
14717777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14727777dab0Sopenharmony_ci    UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/
14737777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
14747777dab0Sopenharmony_ci    UBLOCK_DOMINO_TILES = 171, /*[1F030]*/
14757777dab0Sopenharmony_ci
14767777dab0Sopenharmony_ci    /* New blocks in Unicode 5.2 */
14777777dab0Sopenharmony_ci
14787777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14797777dab0Sopenharmony_ci    UBLOCK_SAMARITAN = 172, /*[0800]*/
14807777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14817777dab0Sopenharmony_ci    UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED = 173, /*[18B0]*/
14827777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14837777dab0Sopenharmony_ci    UBLOCK_TAI_THAM = 174, /*[1A20]*/
14847777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14857777dab0Sopenharmony_ci    UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/
14867777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14877777dab0Sopenharmony_ci    UBLOCK_LISU = 176, /*[A4D0]*/
14887777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14897777dab0Sopenharmony_ci    UBLOCK_BAMUM = 177, /*[A6A0]*/
14907777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14917777dab0Sopenharmony_ci    UBLOCK_COMMON_INDIC_NUMBER_FORMS = 178, /*[A830]*/
14927777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14937777dab0Sopenharmony_ci    UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/
14947777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14957777dab0Sopenharmony_ci    UBLOCK_HANGUL_JAMO_EXTENDED_A = 180, /*[A960]*/
14967777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14977777dab0Sopenharmony_ci    UBLOCK_JAVANESE = 181, /*[A980]*/
14987777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
14997777dab0Sopenharmony_ci    UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/
15007777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15017777dab0Sopenharmony_ci    UBLOCK_TAI_VIET = 183, /*[AA80]*/
15027777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15037777dab0Sopenharmony_ci    UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/
15047777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15057777dab0Sopenharmony_ci    UBLOCK_HANGUL_JAMO_EXTENDED_B = 185, /*[D7B0]*/
15067777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15077777dab0Sopenharmony_ci    UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/
15087777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15097777dab0Sopenharmony_ci    UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/
15107777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15117777dab0Sopenharmony_ci    UBLOCK_AVESTAN = 188, /*[10B00]*/
15127777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15137777dab0Sopenharmony_ci    UBLOCK_INSCRIPTIONAL_PARTHIAN = 189, /*[10B40]*/
15147777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15157777dab0Sopenharmony_ci    UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/
15167777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15177777dab0Sopenharmony_ci    UBLOCK_OLD_TURKIC = 191, /*[10C00]*/
15187777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15197777dab0Sopenharmony_ci    UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/
15207777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15217777dab0Sopenharmony_ci    UBLOCK_KAITHI = 193, /*[11080]*/
15227777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15237777dab0Sopenharmony_ci    UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/
15247777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15257777dab0Sopenharmony_ci    UBLOCK_ENCLOSED_ALPHANUMERIC_SUPPLEMENT = 195, /*[1F100]*/
15267777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15277777dab0Sopenharmony_ci    UBLOCK_ENCLOSED_IDEOGRAPHIC_SUPPLEMENT = 196, /*[1F200]*/
15287777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
15297777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_C = 197, /*[2A700]*/
15307777dab0Sopenharmony_ci
15317777dab0Sopenharmony_ci    /* New blocks in Unicode 6.0 */
15327777dab0Sopenharmony_ci
15337777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15347777dab0Sopenharmony_ci    UBLOCK_MANDAIC = 198, /*[0840]*/
15357777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15367777dab0Sopenharmony_ci    UBLOCK_BATAK = 199, /*[1BC0]*/
15377777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15387777dab0Sopenharmony_ci    UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/
15397777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15407777dab0Sopenharmony_ci    UBLOCK_BRAHMI = 201, /*[11000]*/
15417777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15427777dab0Sopenharmony_ci    UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/
15437777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15447777dab0Sopenharmony_ci    UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/
15457777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15467777dab0Sopenharmony_ci    UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/
15477777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15487777dab0Sopenharmony_ci    UBLOCK_MISCELLANEOUS_SYMBOLS_AND_PICTOGRAPHS = 205, /*[1F300]*/
15497777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15507777dab0Sopenharmony_ci    UBLOCK_EMOTICONS = 206, /*[1F600]*/
15517777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15527777dab0Sopenharmony_ci    UBLOCK_TRANSPORT_AND_MAP_SYMBOLS = 207, /*[1F680]*/
15537777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15547777dab0Sopenharmony_ci    UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/
15557777dab0Sopenharmony_ci    /** @stable ICU 4.6 */
15567777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_D = 209, /*[2B740]*/
15577777dab0Sopenharmony_ci
15587777dab0Sopenharmony_ci    /* New blocks in Unicode 6.1 */
15597777dab0Sopenharmony_ci
15607777dab0Sopenharmony_ci    /** @stable ICU 49 */
15617777dab0Sopenharmony_ci    UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/
15627777dab0Sopenharmony_ci    /** @stable ICU 49 */
15637777dab0Sopenharmony_ci    UBLOCK_ARABIC_MATHEMATICAL_ALPHABETIC_SYMBOLS = 211, /*[1EE00]*/
15647777dab0Sopenharmony_ci    /** @stable ICU 49 */
15657777dab0Sopenharmony_ci    UBLOCK_CHAKMA = 212, /*[11100]*/
15667777dab0Sopenharmony_ci    /** @stable ICU 49 */
15677777dab0Sopenharmony_ci    UBLOCK_MEETEI_MAYEK_EXTENSIONS = 213, /*[AAE0]*/
15687777dab0Sopenharmony_ci    /** @stable ICU 49 */
15697777dab0Sopenharmony_ci    UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/
15707777dab0Sopenharmony_ci    /** @stable ICU 49 */
15717777dab0Sopenharmony_ci    UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/
15727777dab0Sopenharmony_ci    /** @stable ICU 49 */
15737777dab0Sopenharmony_ci    UBLOCK_MIAO = 216, /*[16F00]*/
15747777dab0Sopenharmony_ci    /** @stable ICU 49 */
15757777dab0Sopenharmony_ci    UBLOCK_SHARADA = 217, /*[11180]*/
15767777dab0Sopenharmony_ci    /** @stable ICU 49 */
15777777dab0Sopenharmony_ci    UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/
15787777dab0Sopenharmony_ci    /** @stable ICU 49 */
15797777dab0Sopenharmony_ci    UBLOCK_SUNDANESE_SUPPLEMENT = 219, /*[1CC0]*/
15807777dab0Sopenharmony_ci    /** @stable ICU 49 */
15817777dab0Sopenharmony_ci    UBLOCK_TAKRI = 220, /*[11680]*/
15827777dab0Sopenharmony_ci
15837777dab0Sopenharmony_ci    /* New blocks in Unicode 7.0 */
15847777dab0Sopenharmony_ci
15857777dab0Sopenharmony_ci    /** @stable ICU 54 */
15867777dab0Sopenharmony_ci    UBLOCK_BASSA_VAH = 221, /*[16AD0]*/
15877777dab0Sopenharmony_ci    /** @stable ICU 54 */
15887777dab0Sopenharmony_ci    UBLOCK_CAUCASIAN_ALBANIAN = 222, /*[10530]*/
15897777dab0Sopenharmony_ci    /** @stable ICU 54 */
15907777dab0Sopenharmony_ci    UBLOCK_COPTIC_EPACT_NUMBERS = 223, /*[102E0]*/
15917777dab0Sopenharmony_ci    /** @stable ICU 54 */
15927777dab0Sopenharmony_ci    UBLOCK_COMBINING_DIACRITICAL_MARKS_EXTENDED = 224, /*[1AB0]*/
15937777dab0Sopenharmony_ci    /** @stable ICU 54 */
15947777dab0Sopenharmony_ci    UBLOCK_DUPLOYAN = 225, /*[1BC00]*/
15957777dab0Sopenharmony_ci    /** @stable ICU 54 */
15967777dab0Sopenharmony_ci    UBLOCK_ELBASAN = 226, /*[10500]*/
15977777dab0Sopenharmony_ci    /** @stable ICU 54 */
15987777dab0Sopenharmony_ci    UBLOCK_GEOMETRIC_SHAPES_EXTENDED = 227, /*[1F780]*/
15997777dab0Sopenharmony_ci    /** @stable ICU 54 */
16007777dab0Sopenharmony_ci    UBLOCK_GRANTHA = 228, /*[11300]*/
16017777dab0Sopenharmony_ci    /** @stable ICU 54 */
16027777dab0Sopenharmony_ci    UBLOCK_KHOJKI = 229, /*[11200]*/
16037777dab0Sopenharmony_ci    /** @stable ICU 54 */
16047777dab0Sopenharmony_ci    UBLOCK_KHUDAWADI = 230, /*[112B0]*/
16057777dab0Sopenharmony_ci    /** @stable ICU 54 */
16067777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_E = 231, /*[AB30]*/
16077777dab0Sopenharmony_ci    /** @stable ICU 54 */
16087777dab0Sopenharmony_ci    UBLOCK_LINEAR_A = 232, /*[10600]*/
16097777dab0Sopenharmony_ci    /** @stable ICU 54 */
16107777dab0Sopenharmony_ci    UBLOCK_MAHAJANI = 233, /*[11150]*/
16117777dab0Sopenharmony_ci    /** @stable ICU 54 */
16127777dab0Sopenharmony_ci    UBLOCK_MANICHAEAN = 234, /*[10AC0]*/
16137777dab0Sopenharmony_ci    /** @stable ICU 54 */
16147777dab0Sopenharmony_ci    UBLOCK_MENDE_KIKAKUI = 235, /*[1E800]*/
16157777dab0Sopenharmony_ci    /** @stable ICU 54 */
16167777dab0Sopenharmony_ci    UBLOCK_MODI = 236, /*[11600]*/
16177777dab0Sopenharmony_ci    /** @stable ICU 54 */
16187777dab0Sopenharmony_ci    UBLOCK_MRO = 237, /*[16A40]*/
16197777dab0Sopenharmony_ci    /** @stable ICU 54 */
16207777dab0Sopenharmony_ci    UBLOCK_MYANMAR_EXTENDED_B = 238, /*[A9E0]*/
16217777dab0Sopenharmony_ci    /** @stable ICU 54 */
16227777dab0Sopenharmony_ci    UBLOCK_NABATAEAN = 239, /*[10880]*/
16237777dab0Sopenharmony_ci    /** @stable ICU 54 */
16247777dab0Sopenharmony_ci    UBLOCK_OLD_NORTH_ARABIAN = 240, /*[10A80]*/
16257777dab0Sopenharmony_ci    /** @stable ICU 54 */
16267777dab0Sopenharmony_ci    UBLOCK_OLD_PERMIC = 241, /*[10350]*/
16277777dab0Sopenharmony_ci    /** @stable ICU 54 */
16287777dab0Sopenharmony_ci    UBLOCK_ORNAMENTAL_DINGBATS = 242, /*[1F650]*/
16297777dab0Sopenharmony_ci    /** @stable ICU 54 */
16307777dab0Sopenharmony_ci    UBLOCK_PAHAWH_HMONG = 243, /*[16B00]*/
16317777dab0Sopenharmony_ci    /** @stable ICU 54 */
16327777dab0Sopenharmony_ci    UBLOCK_PALMYRENE = 244, /*[10860]*/
16337777dab0Sopenharmony_ci    /** @stable ICU 54 */
16347777dab0Sopenharmony_ci    UBLOCK_PAU_CIN_HAU = 245, /*[11AC0]*/
16357777dab0Sopenharmony_ci    /** @stable ICU 54 */
16367777dab0Sopenharmony_ci    UBLOCK_PSALTER_PAHLAVI = 246, /*[10B80]*/
16377777dab0Sopenharmony_ci    /** @stable ICU 54 */
16387777dab0Sopenharmony_ci    UBLOCK_SHORTHAND_FORMAT_CONTROLS = 247, /*[1BCA0]*/
16397777dab0Sopenharmony_ci    /** @stable ICU 54 */
16407777dab0Sopenharmony_ci    UBLOCK_SIDDHAM = 248, /*[11580]*/
16417777dab0Sopenharmony_ci    /** @stable ICU 54 */
16427777dab0Sopenharmony_ci    UBLOCK_SINHALA_ARCHAIC_NUMBERS = 249, /*[111E0]*/
16437777dab0Sopenharmony_ci    /** @stable ICU 54 */
16447777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTAL_ARROWS_C = 250, /*[1F800]*/
16457777dab0Sopenharmony_ci    /** @stable ICU 54 */
16467777dab0Sopenharmony_ci    UBLOCK_TIRHUTA = 251, /*[11480]*/
16477777dab0Sopenharmony_ci    /** @stable ICU 54 */
16487777dab0Sopenharmony_ci    UBLOCK_WARANG_CITI = 252, /*[118A0]*/
16497777dab0Sopenharmony_ci
16507777dab0Sopenharmony_ci    /* New blocks in Unicode 8.0 */
16517777dab0Sopenharmony_ci
16527777dab0Sopenharmony_ci    /** @stable ICU 56 */
16537777dab0Sopenharmony_ci    UBLOCK_AHOM = 253, /*[11700]*/
16547777dab0Sopenharmony_ci    /** @stable ICU 56 */
16557777dab0Sopenharmony_ci    UBLOCK_ANATOLIAN_HIEROGLYPHS = 254, /*[14400]*/
16567777dab0Sopenharmony_ci    /** @stable ICU 56 */
16577777dab0Sopenharmony_ci    UBLOCK_CHEROKEE_SUPPLEMENT = 255, /*[AB70]*/
16587777dab0Sopenharmony_ci    /** @stable ICU 56 */
16597777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_E = 256, /*[2B820]*/
16607777dab0Sopenharmony_ci    /** @stable ICU 56 */
16617777dab0Sopenharmony_ci    UBLOCK_EARLY_DYNASTIC_CUNEIFORM = 257, /*[12480]*/
16627777dab0Sopenharmony_ci    /** @stable ICU 56 */
16637777dab0Sopenharmony_ci    UBLOCK_HATRAN = 258, /*[108E0]*/
16647777dab0Sopenharmony_ci    /** @stable ICU 56 */
16657777dab0Sopenharmony_ci    UBLOCK_MULTANI = 259, /*[11280]*/
16667777dab0Sopenharmony_ci    /** @stable ICU 56 */
16677777dab0Sopenharmony_ci    UBLOCK_OLD_HUNGARIAN = 260, /*[10C80]*/
16687777dab0Sopenharmony_ci    /** @stable ICU 56 */
16697777dab0Sopenharmony_ci    UBLOCK_SUPPLEMENTAL_SYMBOLS_AND_PICTOGRAPHS = 261, /*[1F900]*/
16707777dab0Sopenharmony_ci    /** @stable ICU 56 */
16717777dab0Sopenharmony_ci    UBLOCK_SUTTON_SIGNWRITING = 262, /*[1D800]*/
16727777dab0Sopenharmony_ci
16737777dab0Sopenharmony_ci    /* New blocks in Unicode 9.0 */
16747777dab0Sopenharmony_ci
16757777dab0Sopenharmony_ci    /** @stable ICU 58 */
16767777dab0Sopenharmony_ci    UBLOCK_ADLAM = 263, /*[1E900]*/
16777777dab0Sopenharmony_ci    /** @stable ICU 58 */
16787777dab0Sopenharmony_ci    UBLOCK_BHAIKSUKI = 264, /*[11C00]*/
16797777dab0Sopenharmony_ci    /** @stable ICU 58 */
16807777dab0Sopenharmony_ci    UBLOCK_CYRILLIC_EXTENDED_C = 265, /*[1C80]*/
16817777dab0Sopenharmony_ci    /** @stable ICU 58 */
16827777dab0Sopenharmony_ci    UBLOCK_GLAGOLITIC_SUPPLEMENT = 266, /*[1E000]*/
16837777dab0Sopenharmony_ci    /** @stable ICU 58 */
16847777dab0Sopenharmony_ci    UBLOCK_IDEOGRAPHIC_SYMBOLS_AND_PUNCTUATION = 267, /*[16FE0]*/
16857777dab0Sopenharmony_ci    /** @stable ICU 58 */
16867777dab0Sopenharmony_ci    UBLOCK_MARCHEN = 268, /*[11C70]*/
16877777dab0Sopenharmony_ci    /** @stable ICU 58 */
16887777dab0Sopenharmony_ci    UBLOCK_MONGOLIAN_SUPPLEMENT = 269, /*[11660]*/
16897777dab0Sopenharmony_ci    /** @stable ICU 58 */
16907777dab0Sopenharmony_ci    UBLOCK_NEWA = 270, /*[11400]*/
16917777dab0Sopenharmony_ci    /** @stable ICU 58 */
16927777dab0Sopenharmony_ci    UBLOCK_OSAGE = 271, /*[104B0]*/
16937777dab0Sopenharmony_ci    /** @stable ICU 58 */
16947777dab0Sopenharmony_ci    UBLOCK_TANGUT = 272, /*[17000]*/
16957777dab0Sopenharmony_ci    /** @stable ICU 58 */
16967777dab0Sopenharmony_ci    UBLOCK_TANGUT_COMPONENTS = 273, /*[18800]*/
16977777dab0Sopenharmony_ci
16987777dab0Sopenharmony_ci    // New blocks in Unicode 10.0
16997777dab0Sopenharmony_ci
17007777dab0Sopenharmony_ci    /** @stable ICU 60 */
17017777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_F = 274, /*[2CEB0]*/
17027777dab0Sopenharmony_ci    /** @stable ICU 60 */
17037777dab0Sopenharmony_ci    UBLOCK_KANA_EXTENDED_A = 275, /*[1B100]*/
17047777dab0Sopenharmony_ci    /** @stable ICU 60 */
17057777dab0Sopenharmony_ci    UBLOCK_MASARAM_GONDI = 276, /*[11D00]*/
17067777dab0Sopenharmony_ci    /** @stable ICU 60 */
17077777dab0Sopenharmony_ci    UBLOCK_NUSHU = 277, /*[1B170]*/
17087777dab0Sopenharmony_ci    /** @stable ICU 60 */
17097777dab0Sopenharmony_ci    UBLOCK_SOYOMBO = 278, /*[11A50]*/
17107777dab0Sopenharmony_ci    /** @stable ICU 60 */
17117777dab0Sopenharmony_ci    UBLOCK_SYRIAC_SUPPLEMENT = 279, /*[0860]*/
17127777dab0Sopenharmony_ci    /** @stable ICU 60 */
17137777dab0Sopenharmony_ci    UBLOCK_ZANABAZAR_SQUARE = 280, /*[11A00]*/
17147777dab0Sopenharmony_ci
17157777dab0Sopenharmony_ci    // New blocks in Unicode 11.0
17167777dab0Sopenharmony_ci
17177777dab0Sopenharmony_ci    /** @stable ICU 62 */
17187777dab0Sopenharmony_ci    UBLOCK_CHESS_SYMBOLS = 281, /*[1FA00]*/
17197777dab0Sopenharmony_ci    /** @stable ICU 62 */
17207777dab0Sopenharmony_ci    UBLOCK_DOGRA = 282, /*[11800]*/
17217777dab0Sopenharmony_ci    /** @stable ICU 62 */
17227777dab0Sopenharmony_ci    UBLOCK_GEORGIAN_EXTENDED = 283, /*[1C90]*/
17237777dab0Sopenharmony_ci    /** @stable ICU 62 */
17247777dab0Sopenharmony_ci    UBLOCK_GUNJALA_GONDI = 284, /*[11D60]*/
17257777dab0Sopenharmony_ci    /** @stable ICU 62 */
17267777dab0Sopenharmony_ci    UBLOCK_HANIFI_ROHINGYA = 285, /*[10D00]*/
17277777dab0Sopenharmony_ci    /** @stable ICU 62 */
17287777dab0Sopenharmony_ci    UBLOCK_INDIC_SIYAQ_NUMBERS = 286, /*[1EC70]*/
17297777dab0Sopenharmony_ci    /** @stable ICU 62 */
17307777dab0Sopenharmony_ci    UBLOCK_MAKASAR = 287, /*[11EE0]*/
17317777dab0Sopenharmony_ci    /** @stable ICU 62 */
17327777dab0Sopenharmony_ci    UBLOCK_MAYAN_NUMERALS = 288, /*[1D2E0]*/
17337777dab0Sopenharmony_ci    /** @stable ICU 62 */
17347777dab0Sopenharmony_ci    UBLOCK_MEDEFAIDRIN = 289, /*[16E40]*/
17357777dab0Sopenharmony_ci    /** @stable ICU 62 */
17367777dab0Sopenharmony_ci    UBLOCK_OLD_SOGDIAN = 290, /*[10F00]*/
17377777dab0Sopenharmony_ci    /** @stable ICU 62 */
17387777dab0Sopenharmony_ci    UBLOCK_SOGDIAN = 291, /*[10F30]*/
17397777dab0Sopenharmony_ci
17407777dab0Sopenharmony_ci    // New blocks in Unicode 12.0
17417777dab0Sopenharmony_ci
17427777dab0Sopenharmony_ci    /** @stable ICU 64 */
17437777dab0Sopenharmony_ci    UBLOCK_EGYPTIAN_HIEROGLYPH_FORMAT_CONTROLS = 292, /*[13430]*/
17447777dab0Sopenharmony_ci    /** @stable ICU 64 */
17457777dab0Sopenharmony_ci    UBLOCK_ELYMAIC = 293, /*[10FE0]*/
17467777dab0Sopenharmony_ci    /** @stable ICU 64 */
17477777dab0Sopenharmony_ci    UBLOCK_NANDINAGARI = 294, /*[119A0]*/
17487777dab0Sopenharmony_ci    /** @stable ICU 64 */
17497777dab0Sopenharmony_ci    UBLOCK_NYIAKENG_PUACHUE_HMONG = 295, /*[1E100]*/
17507777dab0Sopenharmony_ci    /** @stable ICU 64 */
17517777dab0Sopenharmony_ci    UBLOCK_OTTOMAN_SIYAQ_NUMBERS = 296, /*[1ED00]*/
17527777dab0Sopenharmony_ci    /** @stable ICU 64 */
17537777dab0Sopenharmony_ci    UBLOCK_SMALL_KANA_EXTENSION = 297, /*[1B130]*/
17547777dab0Sopenharmony_ci    /** @stable ICU 64 */
17557777dab0Sopenharmony_ci    UBLOCK_SYMBOLS_AND_PICTOGRAPHS_EXTENDED_A = 298, /*[1FA70]*/
17567777dab0Sopenharmony_ci    /** @stable ICU 64 */
17577777dab0Sopenharmony_ci    UBLOCK_TAMIL_SUPPLEMENT = 299, /*[11FC0]*/
17587777dab0Sopenharmony_ci    /** @stable ICU 64 */
17597777dab0Sopenharmony_ci    UBLOCK_WANCHO = 300, /*[1E2C0]*/
17607777dab0Sopenharmony_ci
17617777dab0Sopenharmony_ci    // New blocks in Unicode 13.0
17627777dab0Sopenharmony_ci
17637777dab0Sopenharmony_ci    /** @stable ICU 66 */
17647777dab0Sopenharmony_ci    UBLOCK_CHORASMIAN = 301, /*[10FB0]*/
17657777dab0Sopenharmony_ci    /** @stable ICU 66 */
17667777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_G = 302, /*[30000]*/
17677777dab0Sopenharmony_ci    /** @stable ICU 66 */
17687777dab0Sopenharmony_ci    UBLOCK_DIVES_AKURU = 303, /*[11900]*/
17697777dab0Sopenharmony_ci    /** @stable ICU 66 */
17707777dab0Sopenharmony_ci    UBLOCK_KHITAN_SMALL_SCRIPT = 304, /*[18B00]*/
17717777dab0Sopenharmony_ci    /** @stable ICU 66 */
17727777dab0Sopenharmony_ci    UBLOCK_LISU_SUPPLEMENT = 305, /*[11FB0]*/
17737777dab0Sopenharmony_ci    /** @stable ICU 66 */
17747777dab0Sopenharmony_ci    UBLOCK_SYMBOLS_FOR_LEGACY_COMPUTING = 306, /*[1FB00]*/
17757777dab0Sopenharmony_ci    /** @stable ICU 66 */
17767777dab0Sopenharmony_ci    UBLOCK_TANGUT_SUPPLEMENT = 307, /*[18D00]*/
17777777dab0Sopenharmony_ci    /** @stable ICU 66 */
17787777dab0Sopenharmony_ci    UBLOCK_YEZIDI = 308, /*[10E80]*/
17797777dab0Sopenharmony_ci
17807777dab0Sopenharmony_ci    // New blocks in Unicode 14.0
17817777dab0Sopenharmony_ci
17827777dab0Sopenharmony_ci    /** @stable ICU 70 */
17837777dab0Sopenharmony_ci    UBLOCK_ARABIC_EXTENDED_B = 309, /*[0870]*/
17847777dab0Sopenharmony_ci    /** @stable ICU 70 */
17857777dab0Sopenharmony_ci    UBLOCK_CYPRO_MINOAN = 310, /*[12F90]*/
17867777dab0Sopenharmony_ci    /** @stable ICU 70 */
17877777dab0Sopenharmony_ci    UBLOCK_ETHIOPIC_EXTENDED_B = 311, /*[1E7E0]*/
17887777dab0Sopenharmony_ci    /** @stable ICU 70 */
17897777dab0Sopenharmony_ci    UBLOCK_KANA_EXTENDED_B = 312, /*[1AFF0]*/
17907777dab0Sopenharmony_ci    /** @stable ICU 70 */
17917777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_F = 313, /*[10780]*/
17927777dab0Sopenharmony_ci    /** @stable ICU 70 */
17937777dab0Sopenharmony_ci    UBLOCK_LATIN_EXTENDED_G = 314, /*[1DF00]*/
17947777dab0Sopenharmony_ci    /** @stable ICU 70 */
17957777dab0Sopenharmony_ci    UBLOCK_OLD_UYGHUR = 315, /*[10F70]*/
17967777dab0Sopenharmony_ci    /** @stable ICU 70 */
17977777dab0Sopenharmony_ci    UBLOCK_TANGSA = 316, /*[16A70]*/
17987777dab0Sopenharmony_ci    /** @stable ICU 70 */
17997777dab0Sopenharmony_ci    UBLOCK_TOTO = 317, /*[1E290]*/
18007777dab0Sopenharmony_ci    /** @stable ICU 70 */
18017777dab0Sopenharmony_ci    UBLOCK_UNIFIED_CANADIAN_ABORIGINAL_SYLLABICS_EXTENDED_A = 318, /*[11AB0]*/
18027777dab0Sopenharmony_ci    /** @stable ICU 70 */
18037777dab0Sopenharmony_ci    UBLOCK_VITHKUQI = 319, /*[10570]*/
18047777dab0Sopenharmony_ci    /** @stable ICU 70 */
18057777dab0Sopenharmony_ci    UBLOCK_ZNAMENNY_MUSICAL_NOTATION = 320, /*[1CF00]*/
18067777dab0Sopenharmony_ci
18077777dab0Sopenharmony_ci    // New blocks in Unicode 15.0
18087777dab0Sopenharmony_ci
18097777dab0Sopenharmony_ci    /** @stable ICU 72 */
18107777dab0Sopenharmony_ci    UBLOCK_ARABIC_EXTENDED_C = 321, /*[10EC0]*/
18117777dab0Sopenharmony_ci    /** @stable ICU 72 */
18127777dab0Sopenharmony_ci    UBLOCK_CJK_UNIFIED_IDEOGRAPHS_EXTENSION_H = 322, /*[31350]*/
18137777dab0Sopenharmony_ci    /** @stable ICU 72 */
18147777dab0Sopenharmony_ci    UBLOCK_CYRILLIC_EXTENDED_D = 323, /*[1E030]*/
18157777dab0Sopenharmony_ci    /** @stable ICU 72 */
18167777dab0Sopenharmony_ci    UBLOCK_DEVANAGARI_EXTENDED_A = 324, /*[11B00]*/
18177777dab0Sopenharmony_ci    /** @stable ICU 72 */
18187777dab0Sopenharmony_ci    UBLOCK_KAKTOVIK_NUMERALS = 325, /*[1D2C0]*/
18197777dab0Sopenharmony_ci    /** @stable ICU 72 */
18207777dab0Sopenharmony_ci    UBLOCK_KAWI = 326, /*[11F00]*/
18217777dab0Sopenharmony_ci    /** @stable ICU 72 */
18227777dab0Sopenharmony_ci    UBLOCK_NAG_MUNDARI = 327, /*[1E4D0]*/
18237777dab0Sopenharmony_ci    /** @stable ICU 2.0 */
18247777dab0Sopenharmony_ci    UBLOCK_INVALID_CODE=-1
18257777dab0Sopenharmony_ci};
18267777dab0Sopenharmony_ci
18277777dab0Sopenharmony_ci/** @stable ICU 2.0 */
18287777dab0Sopenharmony_citypedef enum UBlockCode UBlockCode;
18297777dab0Sopenharmony_ci
18307777dab0Sopenharmony_ci/**
18317777dab0Sopenharmony_ci * East Asian Width constants.
18327777dab0Sopenharmony_ci *
18337777dab0Sopenharmony_ci * @see UCHAR_EAST_ASIAN_WIDTH
18347777dab0Sopenharmony_ci * @see u_getIntPropertyValue
18357777dab0Sopenharmony_ci * @stable ICU 2.2
18367777dab0Sopenharmony_ci */
18377777dab0Sopenharmony_citypedef enum UEastAsianWidth {
18387777dab0Sopenharmony_ci    /*
18397777dab0Sopenharmony_ci     * Note: UEastAsianWidth constants are parsed by preparseucd.py.
18407777dab0Sopenharmony_ci     * It matches lines like
18417777dab0Sopenharmony_ci     *     U_EA_<Unicode East_Asian_Width value name>
18427777dab0Sopenharmony_ci     */
18437777dab0Sopenharmony_ci
18447777dab0Sopenharmony_ci    U_EA_NEUTRAL,   /*[N]*/
18457777dab0Sopenharmony_ci    U_EA_AMBIGUOUS, /*[A]*/
18467777dab0Sopenharmony_ci    U_EA_HALFWIDTH, /*[H]*/
18477777dab0Sopenharmony_ci    U_EA_FULLWIDTH, /*[F]*/
18487777dab0Sopenharmony_ci    U_EA_NARROW,    /*[Na]*/
18497777dab0Sopenharmony_ci    U_EA_WIDE,      /*[W]*/
18507777dab0Sopenharmony_ci} UEastAsianWidth;
18517777dab0Sopenharmony_ci
18527777dab0Sopenharmony_ci/**
18537777dab0Sopenharmony_ci * Selector constants for u_charName().
18547777dab0Sopenharmony_ci * u_charName() returns the "modern" name of a
18557777dab0Sopenharmony_ci * Unicode character; or the name that was defined in
18567777dab0Sopenharmony_ci * Unicode version 1.0, before the Unicode standard merged
18577777dab0Sopenharmony_ci * with ISO-10646; or an "extended" name that gives each
18587777dab0Sopenharmony_ci * Unicode code point a unique name.
18597777dab0Sopenharmony_ci *
18607777dab0Sopenharmony_ci * @see u_charName
18617777dab0Sopenharmony_ci * @stable ICU 2.0
18627777dab0Sopenharmony_ci */
18637777dab0Sopenharmony_citypedef enum UCharNameChoice {
18647777dab0Sopenharmony_ci    /** Unicode character name (Name property). @stable ICU 2.0 */
18657777dab0Sopenharmony_ci    U_UNICODE_CHAR_NAME,
18667777dab0Sopenharmony_ci    /** Standard or synthetic character name. @stable ICU 2.0 */
18677777dab0Sopenharmony_ci    U_EXTENDED_CHAR_NAME = U_UNICODE_CHAR_NAME+2,
18687777dab0Sopenharmony_ci    /** Corrected name from NameAliases.txt. @stable ICU 4.4 */
18697777dab0Sopenharmony_ci    U_CHAR_NAME_ALIAS,
18707777dab0Sopenharmony_ci} UCharNameChoice;
18717777dab0Sopenharmony_ci
18727777dab0Sopenharmony_ci/**
18737777dab0Sopenharmony_ci * Selector constants for u_getPropertyName() and
18747777dab0Sopenharmony_ci * u_getPropertyValueName().  These selectors are used to choose which
18757777dab0Sopenharmony_ci * name is returned for a given property or value.  All properties and
18767777dab0Sopenharmony_ci * values have a long name.  Most have a short name, but some do not.
18777777dab0Sopenharmony_ci * Unicode allows for additional names, beyond the long and short
18787777dab0Sopenharmony_ci * name, which would be indicated by U_LONG_PROPERTY_NAME + i, where
18797777dab0Sopenharmony_ci * i=1, 2,...
18807777dab0Sopenharmony_ci *
18817777dab0Sopenharmony_ci * @see u_getPropertyName()
18827777dab0Sopenharmony_ci * @see u_getPropertyValueName()
18837777dab0Sopenharmony_ci * @stable ICU 2.4
18847777dab0Sopenharmony_ci */
18857777dab0Sopenharmony_citypedef enum UPropertyNameChoice {
18867777dab0Sopenharmony_ci    U_SHORT_PROPERTY_NAME,
18877777dab0Sopenharmony_ci    U_LONG_PROPERTY_NAME,
18887777dab0Sopenharmony_ci} UPropertyNameChoice;
18897777dab0Sopenharmony_ci
18907777dab0Sopenharmony_ci/**
18917777dab0Sopenharmony_ci * Decomposition Type constants.
18927777dab0Sopenharmony_ci *
18937777dab0Sopenharmony_ci * @see UCHAR_DECOMPOSITION_TYPE
18947777dab0Sopenharmony_ci * @stable ICU 2.2
18957777dab0Sopenharmony_ci */
18967777dab0Sopenharmony_citypedef enum UDecompositionType {
18977777dab0Sopenharmony_ci    /*
18987777dab0Sopenharmony_ci     * Note: UDecompositionType constants are parsed by preparseucd.py.
18997777dab0Sopenharmony_ci     * It matches lines like
19007777dab0Sopenharmony_ci     *     U_DT_<Unicode Decomposition_Type value name>
19017777dab0Sopenharmony_ci     */
19027777dab0Sopenharmony_ci
19037777dab0Sopenharmony_ci    U_DT_NONE,              /*[none]*/
19047777dab0Sopenharmony_ci    U_DT_CANONICAL,         /*[can]*/
19057777dab0Sopenharmony_ci    U_DT_COMPAT,            /*[com]*/
19067777dab0Sopenharmony_ci    U_DT_CIRCLE,            /*[enc]*/
19077777dab0Sopenharmony_ci    U_DT_FINAL,             /*[fin]*/
19087777dab0Sopenharmony_ci    U_DT_FONT,              /*[font]*/
19097777dab0Sopenharmony_ci    U_DT_FRACTION,          /*[fra]*/
19107777dab0Sopenharmony_ci    U_DT_INITIAL,           /*[init]*/
19117777dab0Sopenharmony_ci    U_DT_ISOLATED,          /*[iso]*/
19127777dab0Sopenharmony_ci    U_DT_MEDIAL,            /*[med]*/
19137777dab0Sopenharmony_ci    U_DT_NARROW,            /*[nar]*/
19147777dab0Sopenharmony_ci    U_DT_NOBREAK,           /*[nb]*/
19157777dab0Sopenharmony_ci    U_DT_SMALL,             /*[sml]*/
19167777dab0Sopenharmony_ci    U_DT_SQUARE,            /*[sqr]*/
19177777dab0Sopenharmony_ci    U_DT_SUB,               /*[sub]*/
19187777dab0Sopenharmony_ci    U_DT_SUPER,             /*[sup]*/
19197777dab0Sopenharmony_ci    U_DT_VERTICAL,          /*[vert]*/
19207777dab0Sopenharmony_ci    U_DT_WIDE,              /*[wide]*/
19217777dab0Sopenharmony_ci} UDecompositionType;
19227777dab0Sopenharmony_ci
19237777dab0Sopenharmony_ci/**
19247777dab0Sopenharmony_ci * Joining Type constants.
19257777dab0Sopenharmony_ci *
19267777dab0Sopenharmony_ci * @see UCHAR_JOINING_TYPE
19277777dab0Sopenharmony_ci * @stable ICU 2.2
19287777dab0Sopenharmony_ci */
19297777dab0Sopenharmony_citypedef enum UJoiningType {
19307777dab0Sopenharmony_ci    /*
19317777dab0Sopenharmony_ci     * Note: UJoiningType constants are parsed by preparseucd.py.
19327777dab0Sopenharmony_ci     * It matches lines like
19337777dab0Sopenharmony_ci     *     U_JT_<Unicode Joining_Type value name>
19347777dab0Sopenharmony_ci     */
19357777dab0Sopenharmony_ci
19367777dab0Sopenharmony_ci    U_JT_NON_JOINING,       /*[U]*/
19377777dab0Sopenharmony_ci    U_JT_JOIN_CAUSING,      /*[C]*/
19387777dab0Sopenharmony_ci    U_JT_DUAL_JOINING,      /*[D]*/
19397777dab0Sopenharmony_ci    U_JT_LEFT_JOINING,      /*[L]*/
19407777dab0Sopenharmony_ci    U_JT_RIGHT_JOINING,     /*[R]*/
19417777dab0Sopenharmony_ci    U_JT_TRANSPARENT,       /*[T]*/
19427777dab0Sopenharmony_ci} UJoiningType;
19437777dab0Sopenharmony_ci
19447777dab0Sopenharmony_ci/**
19457777dab0Sopenharmony_ci * Joining Group constants.
19467777dab0Sopenharmony_ci *
19477777dab0Sopenharmony_ci * @see UCHAR_JOINING_GROUP
19487777dab0Sopenharmony_ci * @stable ICU 2.2
19497777dab0Sopenharmony_ci */
19507777dab0Sopenharmony_citypedef enum UJoiningGroup {
19517777dab0Sopenharmony_ci    /*
19527777dab0Sopenharmony_ci     * Note: UJoiningGroup constants are parsed by preparseucd.py.
19537777dab0Sopenharmony_ci     * It matches lines like
19547777dab0Sopenharmony_ci     *     U_JG_<Unicode Joining_Group value name>
19557777dab0Sopenharmony_ci     */
19567777dab0Sopenharmony_ci
19577777dab0Sopenharmony_ci    U_JG_NO_JOINING_GROUP,
19587777dab0Sopenharmony_ci    U_JG_AIN,
19597777dab0Sopenharmony_ci    U_JG_ALAPH,
19607777dab0Sopenharmony_ci    U_JG_ALEF,
19617777dab0Sopenharmony_ci    U_JG_BEH,
19627777dab0Sopenharmony_ci    U_JG_BETH,
19637777dab0Sopenharmony_ci    U_JG_DAL,
19647777dab0Sopenharmony_ci    U_JG_DALATH_RISH,
19657777dab0Sopenharmony_ci    U_JG_E,
19667777dab0Sopenharmony_ci    U_JG_FEH,
19677777dab0Sopenharmony_ci    U_JG_FINAL_SEMKATH,
19687777dab0Sopenharmony_ci    U_JG_GAF,
19697777dab0Sopenharmony_ci    U_JG_GAMAL,
19707777dab0Sopenharmony_ci    U_JG_HAH,
19717777dab0Sopenharmony_ci    U_JG_TEH_MARBUTA_GOAL,  /**< @stable ICU 4.6 */
19727777dab0Sopenharmony_ci    U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL,
19737777dab0Sopenharmony_ci    U_JG_HE,
19747777dab0Sopenharmony_ci    U_JG_HEH,
19757777dab0Sopenharmony_ci    U_JG_HEH_GOAL,
19767777dab0Sopenharmony_ci    U_JG_HETH,
19777777dab0Sopenharmony_ci    U_JG_KAF,
19787777dab0Sopenharmony_ci    U_JG_KAPH,
19797777dab0Sopenharmony_ci    U_JG_KNOTTED_HEH,
19807777dab0Sopenharmony_ci    U_JG_LAM,
19817777dab0Sopenharmony_ci    U_JG_LAMADH,
19827777dab0Sopenharmony_ci    U_JG_MEEM,
19837777dab0Sopenharmony_ci    U_JG_MIM,
19847777dab0Sopenharmony_ci    U_JG_NOON,
19857777dab0Sopenharmony_ci    U_JG_NUN,
19867777dab0Sopenharmony_ci    U_JG_PE,
19877777dab0Sopenharmony_ci    U_JG_QAF,
19887777dab0Sopenharmony_ci    U_JG_QAPH,
19897777dab0Sopenharmony_ci    U_JG_REH,
19907777dab0Sopenharmony_ci    U_JG_REVERSED_PE,
19917777dab0Sopenharmony_ci    U_JG_SAD,
19927777dab0Sopenharmony_ci    U_JG_SADHE,
19937777dab0Sopenharmony_ci    U_JG_SEEN,
19947777dab0Sopenharmony_ci    U_JG_SEMKATH,
19957777dab0Sopenharmony_ci    U_JG_SHIN,
19967777dab0Sopenharmony_ci    U_JG_SWASH_KAF,
19977777dab0Sopenharmony_ci    U_JG_SYRIAC_WAW,
19987777dab0Sopenharmony_ci    U_JG_TAH,
19997777dab0Sopenharmony_ci    U_JG_TAW,
20007777dab0Sopenharmony_ci    U_JG_TEH_MARBUTA,
20017777dab0Sopenharmony_ci    U_JG_TETH,
20027777dab0Sopenharmony_ci    U_JG_WAW,
20037777dab0Sopenharmony_ci    U_JG_YEH,
20047777dab0Sopenharmony_ci    U_JG_YEH_BARREE,
20057777dab0Sopenharmony_ci    U_JG_YEH_WITH_TAIL,
20067777dab0Sopenharmony_ci    U_JG_YUDH,
20077777dab0Sopenharmony_ci    U_JG_YUDH_HE,
20087777dab0Sopenharmony_ci    U_JG_ZAIN,
20097777dab0Sopenharmony_ci    U_JG_FE,        /**< @stable ICU 2.6 */
20107777dab0Sopenharmony_ci    U_JG_KHAPH,     /**< @stable ICU 2.6 */
20117777dab0Sopenharmony_ci    U_JG_ZHAIN,     /**< @stable ICU 2.6 */
20127777dab0Sopenharmony_ci    U_JG_BURUSHASKI_YEH_BARREE, /**< @stable ICU 4.0 */
20137777dab0Sopenharmony_ci    U_JG_FARSI_YEH, /**< @stable ICU 4.4 */
20147777dab0Sopenharmony_ci    U_JG_NYA,       /**< @stable ICU 4.4 */
20157777dab0Sopenharmony_ci    U_JG_ROHINGYA_YEH,  /**< @stable ICU 49 */
20167777dab0Sopenharmony_ci    U_JG_MANICHAEAN_ALEPH,  /**< @stable ICU 54 */
20177777dab0Sopenharmony_ci    U_JG_MANICHAEAN_AYIN,  /**< @stable ICU 54 */
20187777dab0Sopenharmony_ci    U_JG_MANICHAEAN_BETH,  /**< @stable ICU 54 */
20197777dab0Sopenharmony_ci    U_JG_MANICHAEAN_DALETH,  /**< @stable ICU 54 */
20207777dab0Sopenharmony_ci    U_JG_MANICHAEAN_DHAMEDH,  /**< @stable ICU 54 */
20217777dab0Sopenharmony_ci    U_JG_MANICHAEAN_FIVE,  /**< @stable ICU 54 */
20227777dab0Sopenharmony_ci    U_JG_MANICHAEAN_GIMEL,  /**< @stable ICU 54 */
20237777dab0Sopenharmony_ci    U_JG_MANICHAEAN_HETH,  /**< @stable ICU 54 */
20247777dab0Sopenharmony_ci    U_JG_MANICHAEAN_HUNDRED,  /**< @stable ICU 54 */
20257777dab0Sopenharmony_ci    U_JG_MANICHAEAN_KAPH,  /**< @stable ICU 54 */
20267777dab0Sopenharmony_ci    U_JG_MANICHAEAN_LAMEDH,  /**< @stable ICU 54 */
20277777dab0Sopenharmony_ci    U_JG_MANICHAEAN_MEM,  /**< @stable ICU 54 */
20287777dab0Sopenharmony_ci    U_JG_MANICHAEAN_NUN,  /**< @stable ICU 54 */
20297777dab0Sopenharmony_ci    U_JG_MANICHAEAN_ONE,  /**< @stable ICU 54 */
20307777dab0Sopenharmony_ci    U_JG_MANICHAEAN_PE,  /**< @stable ICU 54 */
20317777dab0Sopenharmony_ci    U_JG_MANICHAEAN_QOPH,  /**< @stable ICU 54 */
20327777dab0Sopenharmony_ci    U_JG_MANICHAEAN_RESH,  /**< @stable ICU 54 */
20337777dab0Sopenharmony_ci    U_JG_MANICHAEAN_SADHE,  /**< @stable ICU 54 */
20347777dab0Sopenharmony_ci    U_JG_MANICHAEAN_SAMEKH,  /**< @stable ICU 54 */
20357777dab0Sopenharmony_ci    U_JG_MANICHAEAN_TAW,  /**< @stable ICU 54 */
20367777dab0Sopenharmony_ci    U_JG_MANICHAEAN_TEN,  /**< @stable ICU 54 */
20377777dab0Sopenharmony_ci    U_JG_MANICHAEAN_TETH,  /**< @stable ICU 54 */
20387777dab0Sopenharmony_ci    U_JG_MANICHAEAN_THAMEDH,  /**< @stable ICU 54 */
20397777dab0Sopenharmony_ci    U_JG_MANICHAEAN_TWENTY,  /**< @stable ICU 54 */
20407777dab0Sopenharmony_ci    U_JG_MANICHAEAN_WAW,  /**< @stable ICU 54 */
20417777dab0Sopenharmony_ci    U_JG_MANICHAEAN_YODH,  /**< @stable ICU 54 */
20427777dab0Sopenharmony_ci    U_JG_MANICHAEAN_ZAYIN,  /**< @stable ICU 54 */
20437777dab0Sopenharmony_ci    U_JG_STRAIGHT_WAW,  /**< @stable ICU 54 */
20447777dab0Sopenharmony_ci    U_JG_AFRICAN_FEH,  /**< @stable ICU 58 */
20457777dab0Sopenharmony_ci    U_JG_AFRICAN_NOON,  /**< @stable ICU 58 */
20467777dab0Sopenharmony_ci    U_JG_AFRICAN_QAF,  /**< @stable ICU 58 */
20477777dab0Sopenharmony_ci
20487777dab0Sopenharmony_ci    U_JG_MALAYALAM_BHA,  /**< @stable ICU 60 */
20497777dab0Sopenharmony_ci    U_JG_MALAYALAM_JA,  /**< @stable ICU 60 */
20507777dab0Sopenharmony_ci    U_JG_MALAYALAM_LLA,  /**< @stable ICU 60 */
20517777dab0Sopenharmony_ci    U_JG_MALAYALAM_LLLA,  /**< @stable ICU 60 */
20527777dab0Sopenharmony_ci    U_JG_MALAYALAM_NGA,  /**< @stable ICU 60 */
20537777dab0Sopenharmony_ci    U_JG_MALAYALAM_NNA,  /**< @stable ICU 60 */
20547777dab0Sopenharmony_ci    U_JG_MALAYALAM_NNNA,  /**< @stable ICU 60 */
20557777dab0Sopenharmony_ci    U_JG_MALAYALAM_NYA,  /**< @stable ICU 60 */
20567777dab0Sopenharmony_ci    U_JG_MALAYALAM_RA,  /**< @stable ICU 60 */
20577777dab0Sopenharmony_ci    U_JG_MALAYALAM_SSA,  /**< @stable ICU 60 */
20587777dab0Sopenharmony_ci    U_JG_MALAYALAM_TTA,  /**< @stable ICU 60 */
20597777dab0Sopenharmony_ci
20607777dab0Sopenharmony_ci    U_JG_HANIFI_ROHINGYA_KINNA_YA,  /**< @stable ICU 62 */
20617777dab0Sopenharmony_ci    U_JG_HANIFI_ROHINGYA_PA,  /**< @stable ICU 62 */
20627777dab0Sopenharmony_ci
20637777dab0Sopenharmony_ci    U_JG_THIN_YEH,  /**< @stable ICU 70 */
20647777dab0Sopenharmony_ci    U_JG_VERTICAL_TAIL,  /**< @stable ICU 70 */
20657777dab0Sopenharmony_ci} UJoiningGroup;
20667777dab0Sopenharmony_ci
20677777dab0Sopenharmony_ci/**
20687777dab0Sopenharmony_ci * Grapheme Cluster Break constants.
20697777dab0Sopenharmony_ci *
20707777dab0Sopenharmony_ci * @see UCHAR_GRAPHEME_CLUSTER_BREAK
20717777dab0Sopenharmony_ci * @stable ICU 3.4
20727777dab0Sopenharmony_ci */
20737777dab0Sopenharmony_citypedef enum UGraphemeClusterBreak {
20747777dab0Sopenharmony_ci    /*
20757777dab0Sopenharmony_ci     * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py.
20767777dab0Sopenharmony_ci     * It matches lines like
20777777dab0Sopenharmony_ci     *     U_GCB_<Unicode Grapheme_Cluster_Break value name>
20787777dab0Sopenharmony_ci     */
20797777dab0Sopenharmony_ci
20807777dab0Sopenharmony_ci    U_GCB_OTHER = 0,            /*[XX]*/
20817777dab0Sopenharmony_ci    U_GCB_CONTROL = 1,          /*[CN]*/
20827777dab0Sopenharmony_ci    U_GCB_CR = 2,               /*[CR]*/
20837777dab0Sopenharmony_ci    U_GCB_EXTEND = 3,           /*[EX]*/
20847777dab0Sopenharmony_ci    U_GCB_L = 4,                /*[L]*/
20857777dab0Sopenharmony_ci    U_GCB_LF = 5,               /*[LF]*/
20867777dab0Sopenharmony_ci    U_GCB_LV = 6,               /*[LV]*/
20877777dab0Sopenharmony_ci    U_GCB_LVT = 7,              /*[LVT]*/
20887777dab0Sopenharmony_ci    U_GCB_T = 8,                /*[T]*/
20897777dab0Sopenharmony_ci    U_GCB_V = 9,                /*[V]*/
20907777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
20917777dab0Sopenharmony_ci    U_GCB_SPACING_MARK = 10,    /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
20927777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
20937777dab0Sopenharmony_ci    U_GCB_PREPEND = 11,         /*[PP]*/
20947777dab0Sopenharmony_ci    /** @stable ICU 50 */
20957777dab0Sopenharmony_ci    U_GCB_REGIONAL_INDICATOR = 12,  /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
20967777dab0Sopenharmony_ci    /** @stable ICU 58 */
20977777dab0Sopenharmony_ci    U_GCB_E_BASE = 13,          /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */
20987777dab0Sopenharmony_ci    /** @stable ICU 58 */
20997777dab0Sopenharmony_ci    U_GCB_E_BASE_GAZ = 14,      /*[EBG]*/
21007777dab0Sopenharmony_ci    /** @stable ICU 58 */
21017777dab0Sopenharmony_ci    U_GCB_E_MODIFIER = 15,      /*[EM]*/
21027777dab0Sopenharmony_ci    /** @stable ICU 58 */
21037777dab0Sopenharmony_ci    U_GCB_GLUE_AFTER_ZWJ = 16,  /*[GAZ]*/
21047777dab0Sopenharmony_ci    /** @stable ICU 58 */
21057777dab0Sopenharmony_ci    U_GCB_ZWJ = 17,             /*[ZWJ]*/
21067777dab0Sopenharmony_ci} UGraphemeClusterBreak;
21077777dab0Sopenharmony_ci
21087777dab0Sopenharmony_ci/**
21097777dab0Sopenharmony_ci * Word Break constants.
21107777dab0Sopenharmony_ci * (UWordBreak is a pre-existing enum type in ubrk.h for word break status tags.)
21117777dab0Sopenharmony_ci *
21127777dab0Sopenharmony_ci * @see UCHAR_WORD_BREAK
21137777dab0Sopenharmony_ci * @stable ICU 3.4
21147777dab0Sopenharmony_ci */
21157777dab0Sopenharmony_citypedef enum UWordBreakValues {
21167777dab0Sopenharmony_ci    /*
21177777dab0Sopenharmony_ci     * Note: UWordBreakValues constants are parsed by preparseucd.py.
21187777dab0Sopenharmony_ci     * It matches lines like
21197777dab0Sopenharmony_ci     *     U_WB_<Unicode Word_Break value name>
21207777dab0Sopenharmony_ci     */
21217777dab0Sopenharmony_ci
21227777dab0Sopenharmony_ci    U_WB_OTHER = 0,             /*[XX]*/
21237777dab0Sopenharmony_ci    U_WB_ALETTER = 1,           /*[LE]*/
21247777dab0Sopenharmony_ci    U_WB_FORMAT = 2,            /*[FO]*/
21257777dab0Sopenharmony_ci    U_WB_KATAKANA = 3,          /*[KA]*/
21267777dab0Sopenharmony_ci    U_WB_MIDLETTER = 4,         /*[ML]*/
21277777dab0Sopenharmony_ci    U_WB_MIDNUM = 5,            /*[MN]*/
21287777dab0Sopenharmony_ci    U_WB_NUMERIC = 6,           /*[NU]*/
21297777dab0Sopenharmony_ci    U_WB_EXTENDNUMLET = 7,      /*[EX]*/
21307777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
21317777dab0Sopenharmony_ci    U_WB_CR = 8,                /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
21327777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
21337777dab0Sopenharmony_ci    U_WB_EXTEND = 9,            /*[Extend]*/
21347777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
21357777dab0Sopenharmony_ci    U_WB_LF = 10,               /*[LF]*/
21367777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
21377777dab0Sopenharmony_ci    U_WB_MIDNUMLET =11,         /*[MB]*/
21387777dab0Sopenharmony_ci    /** @stable ICU 4.0 */
21397777dab0Sopenharmony_ci    U_WB_NEWLINE =12,           /*[NL]*/
21407777dab0Sopenharmony_ci    /** @stable ICU 50 */
21417777dab0Sopenharmony_ci    U_WB_REGIONAL_INDICATOR = 13,   /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
21427777dab0Sopenharmony_ci    /** @stable ICU 52 */
21437777dab0Sopenharmony_ci    U_WB_HEBREW_LETTER = 14,    /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */
21447777dab0Sopenharmony_ci    /** @stable ICU 52 */
21457777dab0Sopenharmony_ci    U_WB_SINGLE_QUOTE = 15,     /*[SQ]*/
21467777dab0Sopenharmony_ci    /** @stable ICU 52 */
21477777dab0Sopenharmony_ci    U_WB_DOUBLE_QUOTE = 16,     /*[DQ]*/
21487777dab0Sopenharmony_ci    /** @stable ICU 58 */
21497777dab0Sopenharmony_ci    U_WB_E_BASE = 17,           /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */
21507777dab0Sopenharmony_ci    /** @stable ICU 58 */
21517777dab0Sopenharmony_ci    U_WB_E_BASE_GAZ = 18,       /*[EBG]*/
21527777dab0Sopenharmony_ci    /** @stable ICU 58 */
21537777dab0Sopenharmony_ci    U_WB_E_MODIFIER = 19,       /*[EM]*/
21547777dab0Sopenharmony_ci    /** @stable ICU 58 */
21557777dab0Sopenharmony_ci    U_WB_GLUE_AFTER_ZWJ = 20,   /*[GAZ]*/
21567777dab0Sopenharmony_ci    /** @stable ICU 58 */
21577777dab0Sopenharmony_ci    U_WB_ZWJ = 21,              /*[ZWJ]*/
21587777dab0Sopenharmony_ci    /** @stable ICU 62 */
21597777dab0Sopenharmony_ci    U_WB_WSEGSPACE = 22,        /*[WSEGSPACE]*/
21607777dab0Sopenharmony_ci} UWordBreakValues;
21617777dab0Sopenharmony_ci
21627777dab0Sopenharmony_ci/**
21637777dab0Sopenharmony_ci * Sentence Break constants.
21647777dab0Sopenharmony_ci *
21657777dab0Sopenharmony_ci * @see UCHAR_SENTENCE_BREAK
21667777dab0Sopenharmony_ci * @stable ICU 3.4
21677777dab0Sopenharmony_ci */
21687777dab0Sopenharmony_citypedef enum USentenceBreak {
21697777dab0Sopenharmony_ci    /*
21707777dab0Sopenharmony_ci     * Note: USentenceBreak constants are parsed by preparseucd.py.
21717777dab0Sopenharmony_ci     * It matches lines like
21727777dab0Sopenharmony_ci     *     U_SB_<Unicode Sentence_Break value name>
21737777dab0Sopenharmony_ci     */
21747777dab0Sopenharmony_ci
21757777dab0Sopenharmony_ci    U_SB_OTHER = 0,             /*[XX]*/
21767777dab0Sopenharmony_ci    U_SB_ATERM = 1,             /*[AT]*/
21777777dab0Sopenharmony_ci    U_SB_CLOSE = 2,             /*[CL]*/
21787777dab0Sopenharmony_ci    U_SB_FORMAT = 3,            /*[FO]*/
21797777dab0Sopenharmony_ci    U_SB_LOWER = 4,             /*[LO]*/
21807777dab0Sopenharmony_ci    U_SB_NUMERIC = 5,           /*[NU]*/
21817777dab0Sopenharmony_ci    U_SB_OLETTER = 6,           /*[LE]*/
21827777dab0Sopenharmony_ci    U_SB_SEP = 7,               /*[SE]*/
21837777dab0Sopenharmony_ci    U_SB_SP = 8,                /*[SP]*/
21847777dab0Sopenharmony_ci    U_SB_STERM = 9,             /*[ST]*/
21857777dab0Sopenharmony_ci    U_SB_UPPER = 10,            /*[UP]*/
21867777dab0Sopenharmony_ci    U_SB_CR = 11,               /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
21877777dab0Sopenharmony_ci    U_SB_EXTEND = 12,           /*[EX]*/
21887777dab0Sopenharmony_ci    U_SB_LF = 13,               /*[LF]*/
21897777dab0Sopenharmony_ci    U_SB_SCONTINUE = 14,        /*[SC]*/
21907777dab0Sopenharmony_ci} USentenceBreak;
21917777dab0Sopenharmony_ci
21927777dab0Sopenharmony_ci/**
21937777dab0Sopenharmony_ci * Line Break constants.
21947777dab0Sopenharmony_ci *
21957777dab0Sopenharmony_ci * @see UCHAR_LINE_BREAK
21967777dab0Sopenharmony_ci * @stable ICU 2.2
21977777dab0Sopenharmony_ci */
21987777dab0Sopenharmony_citypedef enum ULineBreak {
21997777dab0Sopenharmony_ci    /*
22007777dab0Sopenharmony_ci     * Note: ULineBreak constants are parsed by preparseucd.py.
22017777dab0Sopenharmony_ci     * It matches lines like
22027777dab0Sopenharmony_ci     *     U_LB_<Unicode Line_Break value name>
22037777dab0Sopenharmony_ci     */
22047777dab0Sopenharmony_ci
22057777dab0Sopenharmony_ci    U_LB_UNKNOWN = 0,           /*[XX]*/
22067777dab0Sopenharmony_ci    U_LB_AMBIGUOUS = 1,         /*[AI]*/
22077777dab0Sopenharmony_ci    U_LB_ALPHABETIC = 2,        /*[AL]*/
22087777dab0Sopenharmony_ci    U_LB_BREAK_BOTH = 3,        /*[B2]*/
22097777dab0Sopenharmony_ci    U_LB_BREAK_AFTER = 4,       /*[BA]*/
22107777dab0Sopenharmony_ci    U_LB_BREAK_BEFORE = 5,      /*[BB]*/
22117777dab0Sopenharmony_ci    U_LB_MANDATORY_BREAK = 6,   /*[BK]*/
22127777dab0Sopenharmony_ci    U_LB_CONTINGENT_BREAK = 7,  /*[CB]*/
22137777dab0Sopenharmony_ci    U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/
22147777dab0Sopenharmony_ci    U_LB_COMBINING_MARK = 9,    /*[CM]*/
22157777dab0Sopenharmony_ci    U_LB_CARRIAGE_RETURN = 10,   /*[CR]*/
22167777dab0Sopenharmony_ci    U_LB_EXCLAMATION = 11,       /*[EX]*/
22177777dab0Sopenharmony_ci    U_LB_GLUE = 12,              /*[GL]*/
22187777dab0Sopenharmony_ci    U_LB_HYPHEN = 13,            /*[HY]*/
22197777dab0Sopenharmony_ci    U_LB_IDEOGRAPHIC = 14,       /*[ID]*/
22207777dab0Sopenharmony_ci    /** Renamed from the misspelled "inseperable" in Unicode 4.0.1/ICU 3.0 @stable ICU 3.0 */
22217777dab0Sopenharmony_ci    U_LB_INSEPARABLE = 15,       /*[IN]*/
22227777dab0Sopenharmony_ci    U_LB_INSEPERABLE = U_LB_INSEPARABLE,
22237777dab0Sopenharmony_ci    U_LB_INFIX_NUMERIC = 16,     /*[IS]*/
22247777dab0Sopenharmony_ci    U_LB_LINE_FEED = 17,         /*[LF]*/
22257777dab0Sopenharmony_ci    U_LB_NONSTARTER = 18,        /*[NS]*/
22267777dab0Sopenharmony_ci    U_LB_NUMERIC = 19,           /*[NU]*/
22277777dab0Sopenharmony_ci    U_LB_OPEN_PUNCTUATION = 20,  /*[OP]*/
22287777dab0Sopenharmony_ci    U_LB_POSTFIX_NUMERIC = 21,   /*[PO]*/
22297777dab0Sopenharmony_ci    U_LB_PREFIX_NUMERIC = 22,    /*[PR]*/
22307777dab0Sopenharmony_ci    U_LB_QUOTATION = 23,         /*[QU]*/
22317777dab0Sopenharmony_ci    U_LB_COMPLEX_CONTEXT = 24,   /*[SA]*/
22327777dab0Sopenharmony_ci    U_LB_SURROGATE = 25,         /*[SG]*/
22337777dab0Sopenharmony_ci    U_LB_SPACE = 26,             /*[SP]*/
22347777dab0Sopenharmony_ci    U_LB_BREAK_SYMBOLS = 27,     /*[SY]*/
22357777dab0Sopenharmony_ci    U_LB_ZWSPACE = 28,           /*[ZW]*/
22367777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
22377777dab0Sopenharmony_ci    U_LB_NEXT_LINE = 29,         /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */
22387777dab0Sopenharmony_ci    /** @stable ICU 2.6 */
22397777dab0Sopenharmony_ci    U_LB_WORD_JOINER = 30,       /*[WJ]*/
22407777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
22417777dab0Sopenharmony_ci    U_LB_H2 = 31,                /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */
22427777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
22437777dab0Sopenharmony_ci    U_LB_H3 = 32,                /*[H3]*/
22447777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
22457777dab0Sopenharmony_ci    U_LB_JL = 33,                /*[JL]*/
22467777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
22477777dab0Sopenharmony_ci    U_LB_JT = 34,                /*[JT]*/
22487777dab0Sopenharmony_ci    /** @stable ICU 3.4 */
22497777dab0Sopenharmony_ci    U_LB_JV = 35,                /*[JV]*/
22507777dab0Sopenharmony_ci    /** @stable ICU 4.4 */
22517777dab0Sopenharmony_ci    U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */
22527777dab0Sopenharmony_ci    /** @stable ICU 49 */
22537777dab0Sopenharmony_ci    U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */
22547777dab0Sopenharmony_ci    /** @stable ICU 49 */
22557777dab0Sopenharmony_ci    U_LB_HEBREW_LETTER = 38,     /*[HL]*/ /* new in Unicode 6.1/ICU 49 */
22567777dab0Sopenharmony_ci    /** @stable ICU 50 */
22577777dab0Sopenharmony_ci    U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */
22587777dab0Sopenharmony_ci    /** @stable ICU 58 */
22597777dab0Sopenharmony_ci    U_LB_E_BASE = 40,            /*[EB]*/ /* from here on: new in Unicode 9.0/ICU 58 */
22607777dab0Sopenharmony_ci    /** @stable ICU 58 */
22617777dab0Sopenharmony_ci    U_LB_E_MODIFIER = 41,        /*[EM]*/
22627777dab0Sopenharmony_ci    /** @stable ICU 58 */
22637777dab0Sopenharmony_ci    U_LB_ZWJ = 42,               /*[ZWJ]*/
22647777dab0Sopenharmony_ci} ULineBreak;
22657777dab0Sopenharmony_ci
22667777dab0Sopenharmony_ci/**
22677777dab0Sopenharmony_ci * Numeric Type constants.
22687777dab0Sopenharmony_ci *
22697777dab0Sopenharmony_ci * @see UCHAR_NUMERIC_TYPE
22707777dab0Sopenharmony_ci * @stable ICU 2.2
22717777dab0Sopenharmony_ci */
22727777dab0Sopenharmony_citypedef enum UNumericType {
22737777dab0Sopenharmony_ci    /*
22747777dab0Sopenharmony_ci     * Note: UNumericType constants are parsed by preparseucd.py.
22757777dab0Sopenharmony_ci     * It matches lines like
22767777dab0Sopenharmony_ci     *     U_NT_<Unicode Numeric_Type value name>
22777777dab0Sopenharmony_ci     */
22787777dab0Sopenharmony_ci
22797777dab0Sopenharmony_ci    U_NT_NONE,              /*[None]*/
22807777dab0Sopenharmony_ci    U_NT_DECIMAL,           /*[de]*/
22817777dab0Sopenharmony_ci    U_NT_DIGIT,             /*[di]*/
22827777dab0Sopenharmony_ci    U_NT_NUMERIC,           /*[nu]*/
22837777dab0Sopenharmony_ci} UNumericType;
22847777dab0Sopenharmony_ci
22857777dab0Sopenharmony_ci/**
22867777dab0Sopenharmony_ci * Hangul Syllable Type constants.
22877777dab0Sopenharmony_ci *
22887777dab0Sopenharmony_ci * @see UCHAR_HANGUL_SYLLABLE_TYPE
22897777dab0Sopenharmony_ci * @stable ICU 2.6
22907777dab0Sopenharmony_ci */
22917777dab0Sopenharmony_citypedef enum UHangulSyllableType {
22927777dab0Sopenharmony_ci    /*
22937777dab0Sopenharmony_ci     * Note: UHangulSyllableType constants are parsed by preparseucd.py.
22947777dab0Sopenharmony_ci     * It matches lines like
22957777dab0Sopenharmony_ci     *     U_HST_<Unicode Hangul_Syllable_Type value name>
22967777dab0Sopenharmony_ci     */
22977777dab0Sopenharmony_ci
22987777dab0Sopenharmony_ci    U_HST_NOT_APPLICABLE,   /*[NA]*/
22997777dab0Sopenharmony_ci    U_HST_LEADING_JAMO,     /*[L]*/
23007777dab0Sopenharmony_ci    U_HST_VOWEL_JAMO,       /*[V]*/
23017777dab0Sopenharmony_ci    U_HST_TRAILING_JAMO,    /*[T]*/
23027777dab0Sopenharmony_ci    U_HST_LV_SYLLABLE,      /*[LV]*/
23037777dab0Sopenharmony_ci    U_HST_LVT_SYLLABLE,     /*[LVT]*/
23047777dab0Sopenharmony_ci} UHangulSyllableType;
23057777dab0Sopenharmony_ci
23067777dab0Sopenharmony_ci/**
23077777dab0Sopenharmony_ci * Indic Positional Category constants.
23087777dab0Sopenharmony_ci *
23097777dab0Sopenharmony_ci * @see UCHAR_INDIC_POSITIONAL_CATEGORY
23107777dab0Sopenharmony_ci * @stable ICU 63
23117777dab0Sopenharmony_ci */
23127777dab0Sopenharmony_citypedef enum UIndicPositionalCategory {
23137777dab0Sopenharmony_ci    /*
23147777dab0Sopenharmony_ci     * Note: UIndicPositionalCategory constants are parsed by preparseucd.py.
23157777dab0Sopenharmony_ci     * It matches lines like
23167777dab0Sopenharmony_ci     *     U_INPC_<Unicode Indic_Positional_Category value name>
23177777dab0Sopenharmony_ci     */
23187777dab0Sopenharmony_ci
23197777dab0Sopenharmony_ci    /** @stable ICU 63 */
23207777dab0Sopenharmony_ci    U_INPC_NA,
23217777dab0Sopenharmony_ci    /** @stable ICU 63 */
23227777dab0Sopenharmony_ci    U_INPC_BOTTOM,
23237777dab0Sopenharmony_ci    /** @stable ICU 63 */
23247777dab0Sopenharmony_ci    U_INPC_BOTTOM_AND_LEFT,
23257777dab0Sopenharmony_ci    /** @stable ICU 63 */
23267777dab0Sopenharmony_ci    U_INPC_BOTTOM_AND_RIGHT,
23277777dab0Sopenharmony_ci    /** @stable ICU 63 */
23287777dab0Sopenharmony_ci    U_INPC_LEFT,
23297777dab0Sopenharmony_ci    /** @stable ICU 63 */
23307777dab0Sopenharmony_ci    U_INPC_LEFT_AND_RIGHT,
23317777dab0Sopenharmony_ci    /** @stable ICU 63 */
23327777dab0Sopenharmony_ci    U_INPC_OVERSTRUCK,
23337777dab0Sopenharmony_ci    /** @stable ICU 63 */
23347777dab0Sopenharmony_ci    U_INPC_RIGHT,
23357777dab0Sopenharmony_ci    /** @stable ICU 63 */
23367777dab0Sopenharmony_ci    U_INPC_TOP,
23377777dab0Sopenharmony_ci    /** @stable ICU 63 */
23387777dab0Sopenharmony_ci    U_INPC_TOP_AND_BOTTOM,
23397777dab0Sopenharmony_ci    /** @stable ICU 63 */
23407777dab0Sopenharmony_ci    U_INPC_TOP_AND_BOTTOM_AND_RIGHT,
23417777dab0Sopenharmony_ci    /** @stable ICU 63 */
23427777dab0Sopenharmony_ci    U_INPC_TOP_AND_LEFT,
23437777dab0Sopenharmony_ci    /** @stable ICU 63 */
23447777dab0Sopenharmony_ci    U_INPC_TOP_AND_LEFT_AND_RIGHT,
23457777dab0Sopenharmony_ci    /** @stable ICU 63 */
23467777dab0Sopenharmony_ci    U_INPC_TOP_AND_RIGHT,
23477777dab0Sopenharmony_ci    /** @stable ICU 63 */
23487777dab0Sopenharmony_ci    U_INPC_VISUAL_ORDER_LEFT,
23497777dab0Sopenharmony_ci    /** @stable ICU 66 */
23507777dab0Sopenharmony_ci    U_INPC_TOP_AND_BOTTOM_AND_LEFT,
23517777dab0Sopenharmony_ci} UIndicPositionalCategory;
23527777dab0Sopenharmony_ci
23537777dab0Sopenharmony_ci/**
23547777dab0Sopenharmony_ci * Indic Syllabic Category constants.
23557777dab0Sopenharmony_ci *
23567777dab0Sopenharmony_ci * @see UCHAR_INDIC_SYLLABIC_CATEGORY
23577777dab0Sopenharmony_ci * @stable ICU 63
23587777dab0Sopenharmony_ci */
23597777dab0Sopenharmony_citypedef enum UIndicSyllabicCategory {
23607777dab0Sopenharmony_ci    /*
23617777dab0Sopenharmony_ci     * Note: UIndicSyllabicCategory constants are parsed by preparseucd.py.
23627777dab0Sopenharmony_ci     * It matches lines like
23637777dab0Sopenharmony_ci     *     U_INSC_<Unicode Indic_Syllabic_Category value name>
23647777dab0Sopenharmony_ci     */
23657777dab0Sopenharmony_ci
23667777dab0Sopenharmony_ci    /** @stable ICU 63 */
23677777dab0Sopenharmony_ci    U_INSC_OTHER,
23687777dab0Sopenharmony_ci    /** @stable ICU 63 */
23697777dab0Sopenharmony_ci    U_INSC_AVAGRAHA,
23707777dab0Sopenharmony_ci    /** @stable ICU 63 */
23717777dab0Sopenharmony_ci    U_INSC_BINDU,
23727777dab0Sopenharmony_ci    /** @stable ICU 63 */
23737777dab0Sopenharmony_ci    U_INSC_BRAHMI_JOINING_NUMBER,
23747777dab0Sopenharmony_ci    /** @stable ICU 63 */
23757777dab0Sopenharmony_ci    U_INSC_CANTILLATION_MARK,
23767777dab0Sopenharmony_ci    /** @stable ICU 63 */
23777777dab0Sopenharmony_ci    U_INSC_CONSONANT,
23787777dab0Sopenharmony_ci    /** @stable ICU 63 */
23797777dab0Sopenharmony_ci    U_INSC_CONSONANT_DEAD,
23807777dab0Sopenharmony_ci    /** @stable ICU 63 */
23817777dab0Sopenharmony_ci    U_INSC_CONSONANT_FINAL,
23827777dab0Sopenharmony_ci    /** @stable ICU 63 */
23837777dab0Sopenharmony_ci    U_INSC_CONSONANT_HEAD_LETTER,
23847777dab0Sopenharmony_ci    /** @stable ICU 63 */
23857777dab0Sopenharmony_ci    U_INSC_CONSONANT_INITIAL_POSTFIXED,
23867777dab0Sopenharmony_ci    /** @stable ICU 63 */
23877777dab0Sopenharmony_ci    U_INSC_CONSONANT_KILLER,
23887777dab0Sopenharmony_ci    /** @stable ICU 63 */
23897777dab0Sopenharmony_ci    U_INSC_CONSONANT_MEDIAL,
23907777dab0Sopenharmony_ci    /** @stable ICU 63 */
23917777dab0Sopenharmony_ci    U_INSC_CONSONANT_PLACEHOLDER,
23927777dab0Sopenharmony_ci    /** @stable ICU 63 */
23937777dab0Sopenharmony_ci    U_INSC_CONSONANT_PRECEDING_REPHA,
23947777dab0Sopenharmony_ci    /** @stable ICU 63 */
23957777dab0Sopenharmony_ci    U_INSC_CONSONANT_PREFIXED,
23967777dab0Sopenharmony_ci    /** @stable ICU 63 */
23977777dab0Sopenharmony_ci    U_INSC_CONSONANT_SUBJOINED,
23987777dab0Sopenharmony_ci    /** @stable ICU 63 */
23997777dab0Sopenharmony_ci    U_INSC_CONSONANT_SUCCEEDING_REPHA,
24007777dab0Sopenharmony_ci    /** @stable ICU 63 */
24017777dab0Sopenharmony_ci    U_INSC_CONSONANT_WITH_STACKER,
24027777dab0Sopenharmony_ci    /** @stable ICU 63 */
24037777dab0Sopenharmony_ci    U_INSC_GEMINATION_MARK,
24047777dab0Sopenharmony_ci    /** @stable ICU 63 */
24057777dab0Sopenharmony_ci    U_INSC_INVISIBLE_STACKER,
24067777dab0Sopenharmony_ci    /** @stable ICU 63 */
24077777dab0Sopenharmony_ci    U_INSC_JOINER,
24087777dab0Sopenharmony_ci    /** @stable ICU 63 */
24097777dab0Sopenharmony_ci    U_INSC_MODIFYING_LETTER,
24107777dab0Sopenharmony_ci    /** @stable ICU 63 */
24117777dab0Sopenharmony_ci    U_INSC_NON_JOINER,
24127777dab0Sopenharmony_ci    /** @stable ICU 63 */
24137777dab0Sopenharmony_ci    U_INSC_NUKTA,
24147777dab0Sopenharmony_ci    /** @stable ICU 63 */
24157777dab0Sopenharmony_ci    U_INSC_NUMBER,
24167777dab0Sopenharmony_ci    /** @stable ICU 63 */
24177777dab0Sopenharmony_ci    U_INSC_NUMBER_JOINER,
24187777dab0Sopenharmony_ci    /** @stable ICU 63 */
24197777dab0Sopenharmony_ci    U_INSC_PURE_KILLER,
24207777dab0Sopenharmony_ci    /** @stable ICU 63 */
24217777dab0Sopenharmony_ci    U_INSC_REGISTER_SHIFTER,
24227777dab0Sopenharmony_ci    /** @stable ICU 63 */
24237777dab0Sopenharmony_ci    U_INSC_SYLLABLE_MODIFIER,
24247777dab0Sopenharmony_ci    /** @stable ICU 63 */
24257777dab0Sopenharmony_ci    U_INSC_TONE_LETTER,
24267777dab0Sopenharmony_ci    /** @stable ICU 63 */
24277777dab0Sopenharmony_ci    U_INSC_TONE_MARK,
24287777dab0Sopenharmony_ci    /** @stable ICU 63 */
24297777dab0Sopenharmony_ci    U_INSC_VIRAMA,
24307777dab0Sopenharmony_ci    /** @stable ICU 63 */
24317777dab0Sopenharmony_ci    U_INSC_VISARGA,
24327777dab0Sopenharmony_ci    /** @stable ICU 63 */
24337777dab0Sopenharmony_ci    U_INSC_VOWEL,
24347777dab0Sopenharmony_ci    /** @stable ICU 63 */
24357777dab0Sopenharmony_ci    U_INSC_VOWEL_DEPENDENT,
24367777dab0Sopenharmony_ci    /** @stable ICU 63 */
24377777dab0Sopenharmony_ci    U_INSC_VOWEL_INDEPENDENT,
24387777dab0Sopenharmony_ci} UIndicSyllabicCategory;
24397777dab0Sopenharmony_ci
24407777dab0Sopenharmony_ci/**
24417777dab0Sopenharmony_ci * Vertical Orientation constants.
24427777dab0Sopenharmony_ci *
24437777dab0Sopenharmony_ci * @see UCHAR_VERTICAL_ORIENTATION
24447777dab0Sopenharmony_ci * @stable ICU 63
24457777dab0Sopenharmony_ci */
24467777dab0Sopenharmony_citypedef enum UVerticalOrientation {
24477777dab0Sopenharmony_ci    /*
24487777dab0Sopenharmony_ci     * Note: UVerticalOrientation constants are parsed by preparseucd.py.
24497777dab0Sopenharmony_ci     * It matches lines like
24507777dab0Sopenharmony_ci     *     U_VO_<Unicode Vertical_Orientation value name>
24517777dab0Sopenharmony_ci     */
24527777dab0Sopenharmony_ci
24537777dab0Sopenharmony_ci    /** @stable ICU 63 */
24547777dab0Sopenharmony_ci    U_VO_ROTATED,
24557777dab0Sopenharmony_ci    /** @stable ICU 63 */
24567777dab0Sopenharmony_ci    U_VO_TRANSFORMED_ROTATED,
24577777dab0Sopenharmony_ci    /** @stable ICU 63 */
24587777dab0Sopenharmony_ci    U_VO_TRANSFORMED_UPRIGHT,
24597777dab0Sopenharmony_ci    /** @stable ICU 63 */
24607777dab0Sopenharmony_ci    U_VO_UPRIGHT,
24617777dab0Sopenharmony_ci} UVerticalOrientation;
24627777dab0Sopenharmony_ci
24637777dab0Sopenharmony_ci/**
24647777dab0Sopenharmony_ci * Check a binary Unicode property for a code point.
24657777dab0Sopenharmony_ci *
24667777dab0Sopenharmony_ci * Unicode, especially in version 3.2, defines many more properties than the
24677777dab0Sopenharmony_ci * original set in UnicodeData.txt.
24687777dab0Sopenharmony_ci *
24697777dab0Sopenharmony_ci * The properties APIs are intended to reflect Unicode properties as defined
24707777dab0Sopenharmony_ci * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
24717777dab0Sopenharmony_ci * For details about the properties see http://www.unicode.org/ucd/ .
24727777dab0Sopenharmony_ci * For names of Unicode properties see the UCD file PropertyAliases.txt.
24737777dab0Sopenharmony_ci *
24747777dab0Sopenharmony_ci * Important: If ICU is built with UCD files from Unicode versions below 3.2,
24757777dab0Sopenharmony_ci * then properties marked with "new in Unicode 3.2" are not or not fully available.
24767777dab0Sopenharmony_ci *
24777777dab0Sopenharmony_ci * @param c Code point to test.
24787777dab0Sopenharmony_ci * @param which UProperty selector constant, identifies which binary property to check.
24797777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START&lt;=which&lt;UCHAR_BINARY_LIMIT.
24807777dab0Sopenharmony_ci * @return true or false according to the binary Unicode property value for c.
24817777dab0Sopenharmony_ci *         Also false if 'which' is out of bounds or if the Unicode version
24827777dab0Sopenharmony_ci *         does not have data for the property at all.
24837777dab0Sopenharmony_ci *
24847777dab0Sopenharmony_ci * @see UProperty
24857777dab0Sopenharmony_ci * @see u_getBinaryPropertySet
24867777dab0Sopenharmony_ci * @see u_getIntPropertyValue
24877777dab0Sopenharmony_ci * @see u_getUnicodeVersion
24887777dab0Sopenharmony_ci * @stable ICU 2.1
24897777dab0Sopenharmony_ci */
24907777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
24917777dab0Sopenharmony_ciu_hasBinaryProperty(UChar32 c, UProperty which);
24927777dab0Sopenharmony_ci
24937777dab0Sopenharmony_ci/**
24947777dab0Sopenharmony_ci * Returns true if the property is true for the string.
24957777dab0Sopenharmony_ci * Same as u_hasBinaryProperty(single code point, which)
24967777dab0Sopenharmony_ci * if the string contains exactly one code point.
24977777dab0Sopenharmony_ci *
24987777dab0Sopenharmony_ci * Most properties apply only to single code points.
24997777dab0Sopenharmony_ci * <a href="https://www.unicode.org/reports/tr51/#Emoji_Sets">UTS #51 Unicode Emoji</a>
25007777dab0Sopenharmony_ci * defines several properties of strings.
25017777dab0Sopenharmony_ci *
25027777dab0Sopenharmony_ci * @param s String to test.
25037777dab0Sopenharmony_ci * @param length Length of the string, or negative if NUL-terminated.
25047777dab0Sopenharmony_ci * @param which UProperty selector constant, identifies which binary property to check.
25057777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START&lt;=which&lt;UCHAR_BINARY_LIMIT.
25067777dab0Sopenharmony_ci * @return true or false according to the binary Unicode property value for the string.
25077777dab0Sopenharmony_ci *         Also false if 'which' is out of bounds or if the Unicode version
25087777dab0Sopenharmony_ci *         does not have data for the property at all.
25097777dab0Sopenharmony_ci *
25107777dab0Sopenharmony_ci * @see UProperty
25117777dab0Sopenharmony_ci * @see u_hasBinaryProperty
25127777dab0Sopenharmony_ci * @see u_getBinaryPropertySet
25137777dab0Sopenharmony_ci * @see u_getIntPropertyValue
25147777dab0Sopenharmony_ci * @see u_getUnicodeVersion
25157777dab0Sopenharmony_ci * @stable ICU 70
25167777dab0Sopenharmony_ci */
25177777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
25187777dab0Sopenharmony_ciu_stringHasBinaryProperty(const UChar *s, int32_t length, UProperty which);
25197777dab0Sopenharmony_ci
25207777dab0Sopenharmony_ci/**
25217777dab0Sopenharmony_ci * Returns a frozen USet for a binary property.
25227777dab0Sopenharmony_ci * The library retains ownership over the returned object.
25237777dab0Sopenharmony_ci * Sets an error code if the property number is not one for a binary property.
25247777dab0Sopenharmony_ci *
25257777dab0Sopenharmony_ci * The returned set contains all code points for which the property is true.
25267777dab0Sopenharmony_ci *
25277777dab0Sopenharmony_ci * @param property UCHAR_BINARY_START..UCHAR_BINARY_LIMIT-1
25287777dab0Sopenharmony_ci * @param pErrorCode an in/out ICU UErrorCode
25297777dab0Sopenharmony_ci * @return the property as a set
25307777dab0Sopenharmony_ci * @see UProperty
25317777dab0Sopenharmony_ci * @see u_hasBinaryProperty
25327777dab0Sopenharmony_ci * @see Unicode::fromUSet
25337777dab0Sopenharmony_ci * @stable ICU 63
25347777dab0Sopenharmony_ci */
25357777dab0Sopenharmony_ciU_CAPI const USet * U_EXPORT2
25367777dab0Sopenharmony_ciu_getBinaryPropertySet(UProperty property, UErrorCode *pErrorCode);
25377777dab0Sopenharmony_ci
25387777dab0Sopenharmony_ci/**
25397777dab0Sopenharmony_ci * Check if a code point has the Alphabetic Unicode property.
25407777dab0Sopenharmony_ci * Same as u_hasBinaryProperty(c, UCHAR_ALPHABETIC).
25417777dab0Sopenharmony_ci * This is different from u_isalpha!
25427777dab0Sopenharmony_ci * @param c Code point to test
25437777dab0Sopenharmony_ci * @return true if the code point has the Alphabetic Unicode property, false otherwise
25447777dab0Sopenharmony_ci *
25457777dab0Sopenharmony_ci * @see UCHAR_ALPHABETIC
25467777dab0Sopenharmony_ci * @see u_isalpha
25477777dab0Sopenharmony_ci * @see u_hasBinaryProperty
25487777dab0Sopenharmony_ci * @stable ICU 2.1
25497777dab0Sopenharmony_ci */
25507777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
25517777dab0Sopenharmony_ciu_isUAlphabetic(UChar32 c);
25527777dab0Sopenharmony_ci
25537777dab0Sopenharmony_ci/**
25547777dab0Sopenharmony_ci * Check if a code point has the Lowercase Unicode property.
25557777dab0Sopenharmony_ci * Same as u_hasBinaryProperty(c, UCHAR_LOWERCASE).
25567777dab0Sopenharmony_ci * This is different from u_islower!
25577777dab0Sopenharmony_ci * @param c Code point to test
25587777dab0Sopenharmony_ci * @return true if the code point has the Lowercase Unicode property, false otherwise
25597777dab0Sopenharmony_ci *
25607777dab0Sopenharmony_ci * @see UCHAR_LOWERCASE
25617777dab0Sopenharmony_ci * @see u_islower
25627777dab0Sopenharmony_ci * @see u_hasBinaryProperty
25637777dab0Sopenharmony_ci * @stable ICU 2.1
25647777dab0Sopenharmony_ci */
25657777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
25667777dab0Sopenharmony_ciu_isULowercase(UChar32 c);
25677777dab0Sopenharmony_ci
25687777dab0Sopenharmony_ci/**
25697777dab0Sopenharmony_ci * Check if a code point has the Uppercase Unicode property.
25707777dab0Sopenharmony_ci * Same as u_hasBinaryProperty(c, UCHAR_UPPERCASE).
25717777dab0Sopenharmony_ci * This is different from u_isupper!
25727777dab0Sopenharmony_ci * @param c Code point to test
25737777dab0Sopenharmony_ci * @return true if the code point has the Uppercase Unicode property, false otherwise
25747777dab0Sopenharmony_ci *
25757777dab0Sopenharmony_ci * @see UCHAR_UPPERCASE
25767777dab0Sopenharmony_ci * @see u_isupper
25777777dab0Sopenharmony_ci * @see u_hasBinaryProperty
25787777dab0Sopenharmony_ci * @stable ICU 2.1
25797777dab0Sopenharmony_ci */
25807777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
25817777dab0Sopenharmony_ciu_isUUppercase(UChar32 c);
25827777dab0Sopenharmony_ci
25837777dab0Sopenharmony_ci/**
25847777dab0Sopenharmony_ci * Check if a code point has the White_Space Unicode property.
25857777dab0Sopenharmony_ci * Same as u_hasBinaryProperty(c, UCHAR_WHITE_SPACE).
25867777dab0Sopenharmony_ci * This is different from both u_isspace and u_isWhitespace!
25877777dab0Sopenharmony_ci *
25887777dab0Sopenharmony_ci * Note: There are several ICU whitespace functions; please see the uchar.h
25897777dab0Sopenharmony_ci * file documentation for a detailed comparison.
25907777dab0Sopenharmony_ci *
25917777dab0Sopenharmony_ci * @param c Code point to test
25927777dab0Sopenharmony_ci * @return true if the code point has the White_Space Unicode property, false otherwise.
25937777dab0Sopenharmony_ci *
25947777dab0Sopenharmony_ci * @see UCHAR_WHITE_SPACE
25957777dab0Sopenharmony_ci * @see u_isWhitespace
25967777dab0Sopenharmony_ci * @see u_isspace
25977777dab0Sopenharmony_ci * @see u_isJavaSpaceChar
25987777dab0Sopenharmony_ci * @see u_hasBinaryProperty
25997777dab0Sopenharmony_ci * @stable ICU 2.1
26007777dab0Sopenharmony_ci */
26017777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
26027777dab0Sopenharmony_ciu_isUWhiteSpace(UChar32 c);
26037777dab0Sopenharmony_ci
26047777dab0Sopenharmony_ci/**
26057777dab0Sopenharmony_ci * Get the property value for an enumerated or integer Unicode property for a code point.
26067777dab0Sopenharmony_ci * Also returns binary and mask property values.
26077777dab0Sopenharmony_ci *
26087777dab0Sopenharmony_ci * Unicode, especially in version 3.2, defines many more properties than the
26097777dab0Sopenharmony_ci * original set in UnicodeData.txt.
26107777dab0Sopenharmony_ci *
26117777dab0Sopenharmony_ci * The properties APIs are intended to reflect Unicode properties as defined
26127777dab0Sopenharmony_ci * in the Unicode Character Database (UCD) and Unicode Technical Reports (UTR).
26137777dab0Sopenharmony_ci * For details about the properties see http://www.unicode.org/ .
26147777dab0Sopenharmony_ci * For names of Unicode properties see the UCD file PropertyAliases.txt.
26157777dab0Sopenharmony_ci *
26167777dab0Sopenharmony_ci * Sample usage:
26177777dab0Sopenharmony_ci * UEastAsianWidth ea=(UEastAsianWidth)u_getIntPropertyValue(c, UCHAR_EAST_ASIAN_WIDTH);
26187777dab0Sopenharmony_ci * UBool b=(UBool)u_getIntPropertyValue(c, UCHAR_IDEOGRAPHIC);
26197777dab0Sopenharmony_ci *
26207777dab0Sopenharmony_ci * @param c Code point to test.
26217777dab0Sopenharmony_ci * @param which UProperty selector constant, identifies which property to check.
26227777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
26237777dab0Sopenharmony_ci *        or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
26247777dab0Sopenharmony_ci *        or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
26257777dab0Sopenharmony_ci * @return Numeric value that is directly the property value or,
26267777dab0Sopenharmony_ci *         for enumerated properties, corresponds to the numeric value of the enumerated
26277777dab0Sopenharmony_ci *         constant of the respective property value enumeration type
26287777dab0Sopenharmony_ci *         (cast to enum type if necessary).
26297777dab0Sopenharmony_ci *         Returns 0 or 1 (for false/true) for binary Unicode properties.
26307777dab0Sopenharmony_ci *         Returns a bit-mask for mask properties.
26317777dab0Sopenharmony_ci *         Returns 0 if 'which' is out of bounds or if the Unicode version
26327777dab0Sopenharmony_ci *         does not have data for the property at all, or not for this code point.
26337777dab0Sopenharmony_ci *
26347777dab0Sopenharmony_ci * @see UProperty
26357777dab0Sopenharmony_ci * @see u_hasBinaryProperty
26367777dab0Sopenharmony_ci * @see u_getIntPropertyMinValue
26377777dab0Sopenharmony_ci * @see u_getIntPropertyMaxValue
26387777dab0Sopenharmony_ci * @see u_getIntPropertyMap
26397777dab0Sopenharmony_ci * @see u_getUnicodeVersion
26407777dab0Sopenharmony_ci * @stable ICU 2.2
26417777dab0Sopenharmony_ci */
26427777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
26437777dab0Sopenharmony_ciu_getIntPropertyValue(UChar32 c, UProperty which);
26447777dab0Sopenharmony_ci
26457777dab0Sopenharmony_ci/**
26467777dab0Sopenharmony_ci * Get the minimum value for an enumerated/integer/binary Unicode property.
26477777dab0Sopenharmony_ci * Can be used together with u_getIntPropertyMaxValue
26487777dab0Sopenharmony_ci * to allocate arrays of UnicodeSet or similar.
26497777dab0Sopenharmony_ci *
26507777dab0Sopenharmony_ci * @param which UProperty selector constant, identifies which binary property to check.
26517777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
26527777dab0Sopenharmony_ci *        or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.
26537777dab0Sopenharmony_ci * @return Minimum value returned by u_getIntPropertyValue for a Unicode property.
26547777dab0Sopenharmony_ci *         0 if the property selector is out of range.
26557777dab0Sopenharmony_ci *
26567777dab0Sopenharmony_ci * @see UProperty
26577777dab0Sopenharmony_ci * @see u_hasBinaryProperty
26587777dab0Sopenharmony_ci * @see u_getUnicodeVersion
26597777dab0Sopenharmony_ci * @see u_getIntPropertyMaxValue
26607777dab0Sopenharmony_ci * @see u_getIntPropertyValue
26617777dab0Sopenharmony_ci * @stable ICU 2.2
26627777dab0Sopenharmony_ci */
26637777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
26647777dab0Sopenharmony_ciu_getIntPropertyMinValue(UProperty which);
26657777dab0Sopenharmony_ci
26667777dab0Sopenharmony_ci/**
26677777dab0Sopenharmony_ci * Get the maximum value for an enumerated/integer/binary Unicode property.
26687777dab0Sopenharmony_ci * Can be used together with u_getIntPropertyMinValue
26697777dab0Sopenharmony_ci * to allocate arrays of UnicodeSet or similar.
26707777dab0Sopenharmony_ci *
26717777dab0Sopenharmony_ci * Examples for min/max values (for Unicode 3.2):
26727777dab0Sopenharmony_ci *
26737777dab0Sopenharmony_ci * - UCHAR_BIDI_CLASS:    0/18 (U_LEFT_TO_RIGHT/U_BOUNDARY_NEUTRAL)
26747777dab0Sopenharmony_ci * - UCHAR_SCRIPT:        0/45 (USCRIPT_COMMON/USCRIPT_TAGBANWA)
26757777dab0Sopenharmony_ci * - UCHAR_IDEOGRAPHIC:   0/1  (false/true)
26767777dab0Sopenharmony_ci *
26777777dab0Sopenharmony_ci * For undefined UProperty constant values, min/max values will be 0/-1.
26787777dab0Sopenharmony_ci *
26797777dab0Sopenharmony_ci * @param which UProperty selector constant, identifies which binary property to check.
26807777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
26817777dab0Sopenharmony_ci *        or UCHAR_INT_START<=which<UCHAR_INT_LIMIT.
26827777dab0Sopenharmony_ci * @return Maximum value returned by u_getIntPropertyValue for a Unicode property.
26837777dab0Sopenharmony_ci *         <=0 if the property selector is out of range.
26847777dab0Sopenharmony_ci *
26857777dab0Sopenharmony_ci * @see UProperty
26867777dab0Sopenharmony_ci * @see u_hasBinaryProperty
26877777dab0Sopenharmony_ci * @see u_getUnicodeVersion
26887777dab0Sopenharmony_ci * @see u_getIntPropertyMaxValue
26897777dab0Sopenharmony_ci * @see u_getIntPropertyValue
26907777dab0Sopenharmony_ci * @stable ICU 2.2
26917777dab0Sopenharmony_ci */
26927777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
26937777dab0Sopenharmony_ciu_getIntPropertyMaxValue(UProperty which);
26947777dab0Sopenharmony_ci
26957777dab0Sopenharmony_ci/**
26967777dab0Sopenharmony_ci * Get the numeric value for a Unicode code point as defined in the
26977777dab0Sopenharmony_ci * Unicode Character Database.
26987777dab0Sopenharmony_ci *
26997777dab0Sopenharmony_ci * A "double" return type is necessary because
27007777dab0Sopenharmony_ci * some numeric values are fractions, negative, or too large for int32_t.
27017777dab0Sopenharmony_ci *
27027777dab0Sopenharmony_ci * For characters without any numeric values in the Unicode Character Database,
27037777dab0Sopenharmony_ci * this function will return U_NO_NUMERIC_VALUE.
27047777dab0Sopenharmony_ci * Note: This is different from the Unicode Standard which specifies NaN as the default value.
27057777dab0Sopenharmony_ci * (NaN is not available on all platforms.)
27067777dab0Sopenharmony_ci *
27077777dab0Sopenharmony_ci * Similar to java.lang.Character.getNumericValue(), but u_getNumericValue()
27087777dab0Sopenharmony_ci * also supports negative values, large values, and fractions,
27097777dab0Sopenharmony_ci * while Java's getNumericValue() returns values 10..35 for ASCII letters.
27107777dab0Sopenharmony_ci *
27117777dab0Sopenharmony_ci * @param c Code point to get the numeric value for.
27127777dab0Sopenharmony_ci * @return Numeric value of c, or U_NO_NUMERIC_VALUE if none is defined.
27137777dab0Sopenharmony_ci *
27147777dab0Sopenharmony_ci * @see U_NO_NUMERIC_VALUE
27157777dab0Sopenharmony_ci * @stable ICU 2.2
27167777dab0Sopenharmony_ci */
27177777dab0Sopenharmony_ciU_CAPI double U_EXPORT2
27187777dab0Sopenharmony_ciu_getNumericValue(UChar32 c);
27197777dab0Sopenharmony_ci
27207777dab0Sopenharmony_ci/**
27217777dab0Sopenharmony_ci * Special value that is returned by u_getNumericValue when
27227777dab0Sopenharmony_ci * no numeric value is defined for a code point.
27237777dab0Sopenharmony_ci *
27247777dab0Sopenharmony_ci * @see u_getNumericValue
27257777dab0Sopenharmony_ci * @stable ICU 2.2
27267777dab0Sopenharmony_ci */
27277777dab0Sopenharmony_ci#define U_NO_NUMERIC_VALUE ((double)-123456789.)
27287777dab0Sopenharmony_ci
27297777dab0Sopenharmony_ci/**
27307777dab0Sopenharmony_ci * Determines whether the specified code point has the general category "Ll"
27317777dab0Sopenharmony_ci * (lowercase letter).
27327777dab0Sopenharmony_ci *
27337777dab0Sopenharmony_ci * Same as java.lang.Character.isLowerCase().
27347777dab0Sopenharmony_ci *
27357777dab0Sopenharmony_ci * This misses some characters that are also lowercase but
27367777dab0Sopenharmony_ci * have a different general category value.
27377777dab0Sopenharmony_ci * In order to include those, use UCHAR_LOWERCASE.
27387777dab0Sopenharmony_ci *
27397777dab0Sopenharmony_ci * In addition to being equivalent to a Java function, this also serves
27407777dab0Sopenharmony_ci * as a C/POSIX migration function.
27417777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
27427777dab0Sopenharmony_ci * documentation at the top of this header file.
27437777dab0Sopenharmony_ci *
27447777dab0Sopenharmony_ci * @param c the code point to be tested
27457777dab0Sopenharmony_ci * @return true if the code point is an Ll lowercase letter
27467777dab0Sopenharmony_ci *
27477777dab0Sopenharmony_ci * @see UCHAR_LOWERCASE
27487777dab0Sopenharmony_ci * @see u_isupper
27497777dab0Sopenharmony_ci * @see u_istitle
27507777dab0Sopenharmony_ci * @stable ICU 2.0
27517777dab0Sopenharmony_ci */
27527777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
27537777dab0Sopenharmony_ciu_islower(UChar32 c);
27547777dab0Sopenharmony_ci
27557777dab0Sopenharmony_ci/**
27567777dab0Sopenharmony_ci * Determines whether the specified code point has the general category "Lu"
27577777dab0Sopenharmony_ci * (uppercase letter).
27587777dab0Sopenharmony_ci *
27597777dab0Sopenharmony_ci * Same as java.lang.Character.isUpperCase().
27607777dab0Sopenharmony_ci *
27617777dab0Sopenharmony_ci * This misses some characters that are also uppercase but
27627777dab0Sopenharmony_ci * have a different general category value.
27637777dab0Sopenharmony_ci * In order to include those, use UCHAR_UPPERCASE.
27647777dab0Sopenharmony_ci *
27657777dab0Sopenharmony_ci * In addition to being equivalent to a Java function, this also serves
27667777dab0Sopenharmony_ci * as a C/POSIX migration function.
27677777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
27687777dab0Sopenharmony_ci * documentation at the top of this header file.
27697777dab0Sopenharmony_ci *
27707777dab0Sopenharmony_ci * @param c the code point to be tested
27717777dab0Sopenharmony_ci * @return true if the code point is an Lu uppercase letter
27727777dab0Sopenharmony_ci *
27737777dab0Sopenharmony_ci * @see UCHAR_UPPERCASE
27747777dab0Sopenharmony_ci * @see u_islower
27757777dab0Sopenharmony_ci * @see u_istitle
27767777dab0Sopenharmony_ci * @see u_tolower
27777777dab0Sopenharmony_ci * @stable ICU 2.0
27787777dab0Sopenharmony_ci */
27797777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
27807777dab0Sopenharmony_ciu_isupper(UChar32 c);
27817777dab0Sopenharmony_ci
27827777dab0Sopenharmony_ci/**
27837777dab0Sopenharmony_ci * Determines whether the specified code point is a titlecase letter.
27847777dab0Sopenharmony_ci * True for general category "Lt" (titlecase letter).
27857777dab0Sopenharmony_ci *
27867777dab0Sopenharmony_ci * Same as java.lang.Character.isTitleCase().
27877777dab0Sopenharmony_ci *
27887777dab0Sopenharmony_ci * @param c the code point to be tested
27897777dab0Sopenharmony_ci * @return true if the code point is an Lt titlecase letter
27907777dab0Sopenharmony_ci *
27917777dab0Sopenharmony_ci * @see u_isupper
27927777dab0Sopenharmony_ci * @see u_islower
27937777dab0Sopenharmony_ci * @see u_totitle
27947777dab0Sopenharmony_ci * @stable ICU 2.0
27957777dab0Sopenharmony_ci */
27967777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
27977777dab0Sopenharmony_ciu_istitle(UChar32 c);
27987777dab0Sopenharmony_ci
27997777dab0Sopenharmony_ci/**
28007777dab0Sopenharmony_ci * Determines whether the specified code point is a digit character according to Java.
28017777dab0Sopenharmony_ci * True for characters with general category "Nd" (decimal digit numbers).
28027777dab0Sopenharmony_ci * Beginning with Unicode 4, this is the same as
28037777dab0Sopenharmony_ci * testing for the Numeric_Type of Decimal.
28047777dab0Sopenharmony_ci *
28057777dab0Sopenharmony_ci * Same as java.lang.Character.isDigit().
28067777dab0Sopenharmony_ci *
28077777dab0Sopenharmony_ci * In addition to being equivalent to a Java function, this also serves
28087777dab0Sopenharmony_ci * as a C/POSIX migration function.
28097777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
28107777dab0Sopenharmony_ci * documentation at the top of this header file.
28117777dab0Sopenharmony_ci *
28127777dab0Sopenharmony_ci * @param c the code point to be tested
28137777dab0Sopenharmony_ci * @return true if the code point is a digit character according to Character.isDigit()
28147777dab0Sopenharmony_ci *
28157777dab0Sopenharmony_ci * @stable ICU 2.0
28167777dab0Sopenharmony_ci */
28177777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
28187777dab0Sopenharmony_ciu_isdigit(UChar32 c);
28197777dab0Sopenharmony_ci
28207777dab0Sopenharmony_ci/**
28217777dab0Sopenharmony_ci * Determines whether the specified code point is a letter character.
28227777dab0Sopenharmony_ci * True for general categories "L" (letters).
28237777dab0Sopenharmony_ci *
28247777dab0Sopenharmony_ci * Same as java.lang.Character.isLetter().
28257777dab0Sopenharmony_ci *
28267777dab0Sopenharmony_ci * In addition to being equivalent to a Java function, this also serves
28277777dab0Sopenharmony_ci * as a C/POSIX migration function.
28287777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
28297777dab0Sopenharmony_ci * documentation at the top of this header file.
28307777dab0Sopenharmony_ci *
28317777dab0Sopenharmony_ci * @param c the code point to be tested
28327777dab0Sopenharmony_ci * @return true if the code point is a letter character
28337777dab0Sopenharmony_ci *
28347777dab0Sopenharmony_ci * @see u_isdigit
28357777dab0Sopenharmony_ci * @see u_isalnum
28367777dab0Sopenharmony_ci * @stable ICU 2.0
28377777dab0Sopenharmony_ci */
28387777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
28397777dab0Sopenharmony_ciu_isalpha(UChar32 c);
28407777dab0Sopenharmony_ci
28417777dab0Sopenharmony_ci/**
28427777dab0Sopenharmony_ci * Determines whether the specified code point is an alphanumeric character
28437777dab0Sopenharmony_ci * (letter or digit) according to Java.
28447777dab0Sopenharmony_ci * True for characters with general categories
28457777dab0Sopenharmony_ci * "L" (letters) and "Nd" (decimal digit numbers).
28467777dab0Sopenharmony_ci *
28477777dab0Sopenharmony_ci * Same as java.lang.Character.isLetterOrDigit().
28487777dab0Sopenharmony_ci *
28497777dab0Sopenharmony_ci * In addition to being equivalent to a Java function, this also serves
28507777dab0Sopenharmony_ci * as a C/POSIX migration function.
28517777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
28527777dab0Sopenharmony_ci * documentation at the top of this header file.
28537777dab0Sopenharmony_ci *
28547777dab0Sopenharmony_ci * @param c the code point to be tested
28557777dab0Sopenharmony_ci * @return true if the code point is an alphanumeric character according to Character.isLetterOrDigit()
28567777dab0Sopenharmony_ci *
28577777dab0Sopenharmony_ci * @stable ICU 2.0
28587777dab0Sopenharmony_ci */
28597777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
28607777dab0Sopenharmony_ciu_isalnum(UChar32 c);
28617777dab0Sopenharmony_ci
28627777dab0Sopenharmony_ci/**
28637777dab0Sopenharmony_ci * Determines whether the specified code point is a hexadecimal digit.
28647777dab0Sopenharmony_ci * This is equivalent to u_digit(c, 16)>=0.
28657777dab0Sopenharmony_ci * True for characters with general category "Nd" (decimal digit numbers)
28667777dab0Sopenharmony_ci * as well as Latin letters a-f and A-F in both ASCII and Fullwidth ASCII.
28677777dab0Sopenharmony_ci * (That is, for letters with code points
28687777dab0Sopenharmony_ci * 0041..0046, 0061..0066, FF21..FF26, FF41..FF46.)
28697777dab0Sopenharmony_ci *
28707777dab0Sopenharmony_ci * In order to narrow the definition of hexadecimal digits to only ASCII
28717777dab0Sopenharmony_ci * characters, use (c<=0x7f && u_isxdigit(c)).
28727777dab0Sopenharmony_ci *
28737777dab0Sopenharmony_ci * This is a C/POSIX migration function.
28747777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
28757777dab0Sopenharmony_ci * documentation at the top of this header file.
28767777dab0Sopenharmony_ci *
28777777dab0Sopenharmony_ci * @param c the code point to be tested
28787777dab0Sopenharmony_ci * @return true if the code point is a hexadecimal digit
28797777dab0Sopenharmony_ci *
28807777dab0Sopenharmony_ci * @stable ICU 2.6
28817777dab0Sopenharmony_ci */
28827777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
28837777dab0Sopenharmony_ciu_isxdigit(UChar32 c);
28847777dab0Sopenharmony_ci
28857777dab0Sopenharmony_ci/**
28867777dab0Sopenharmony_ci * Determines whether the specified code point is a punctuation character.
28877777dab0Sopenharmony_ci * True for characters with general categories "P" (punctuation).
28887777dab0Sopenharmony_ci *
28897777dab0Sopenharmony_ci * This is a C/POSIX migration function.
28907777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
28917777dab0Sopenharmony_ci * documentation at the top of this header file.
28927777dab0Sopenharmony_ci *
28937777dab0Sopenharmony_ci * @param c the code point to be tested
28947777dab0Sopenharmony_ci * @return true if the code point is a punctuation character
28957777dab0Sopenharmony_ci *
28967777dab0Sopenharmony_ci * @stable ICU 2.6
28977777dab0Sopenharmony_ci */
28987777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
28997777dab0Sopenharmony_ciu_ispunct(UChar32 c);
29007777dab0Sopenharmony_ci
29017777dab0Sopenharmony_ci/**
29027777dab0Sopenharmony_ci * Determines whether the specified code point is a "graphic" character
29037777dab0Sopenharmony_ci * (printable, excluding spaces).
29047777dab0Sopenharmony_ci * true for all characters except those with general categories
29057777dab0Sopenharmony_ci * "Cc" (control codes), "Cf" (format controls), "Cs" (surrogates),
29067777dab0Sopenharmony_ci * "Cn" (unassigned), and "Z" (separators).
29077777dab0Sopenharmony_ci *
29087777dab0Sopenharmony_ci * This is a C/POSIX migration function.
29097777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
29107777dab0Sopenharmony_ci * documentation at the top of this header file.
29117777dab0Sopenharmony_ci *
29127777dab0Sopenharmony_ci * @param c the code point to be tested
29137777dab0Sopenharmony_ci * @return true if the code point is a "graphic" character
29147777dab0Sopenharmony_ci *
29157777dab0Sopenharmony_ci * @stable ICU 2.6
29167777dab0Sopenharmony_ci */
29177777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
29187777dab0Sopenharmony_ciu_isgraph(UChar32 c);
29197777dab0Sopenharmony_ci
29207777dab0Sopenharmony_ci/**
29217777dab0Sopenharmony_ci * Determines whether the specified code point is a "blank" or "horizontal space",
29227777dab0Sopenharmony_ci * a character that visibly separates words on a line.
29237777dab0Sopenharmony_ci * The following are equivalent definitions:
29247777dab0Sopenharmony_ci *
29257777dab0Sopenharmony_ci * true for Unicode White_Space characters except for "vertical space controls"
29267777dab0Sopenharmony_ci * where "vertical space controls" are the following characters:
29277777dab0Sopenharmony_ci * U+000A (LF) U+000B (VT) U+000C (FF) U+000D (CR) U+0085 (NEL) U+2028 (LS) U+2029 (PS)
29287777dab0Sopenharmony_ci *
29297777dab0Sopenharmony_ci * same as
29307777dab0Sopenharmony_ci *
29317777dab0Sopenharmony_ci * true for U+0009 (TAB) and characters with general category "Zs" (space separators).
29327777dab0Sopenharmony_ci *
29337777dab0Sopenharmony_ci * Note: There are several ICU whitespace functions; please see the uchar.h
29347777dab0Sopenharmony_ci * file documentation for a detailed comparison.
29357777dab0Sopenharmony_ci *
29367777dab0Sopenharmony_ci * This is a C/POSIX migration function.
29377777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
29387777dab0Sopenharmony_ci * documentation at the top of this header file.
29397777dab0Sopenharmony_ci *
29407777dab0Sopenharmony_ci * @param c the code point to be tested
29417777dab0Sopenharmony_ci * @return true if the code point is a "blank"
29427777dab0Sopenharmony_ci *
29437777dab0Sopenharmony_ci * @stable ICU 2.6
29447777dab0Sopenharmony_ci */
29457777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
29467777dab0Sopenharmony_ciu_isblank(UChar32 c);
29477777dab0Sopenharmony_ci
29487777dab0Sopenharmony_ci/**
29497777dab0Sopenharmony_ci * Determines whether the specified code point is "defined",
29507777dab0Sopenharmony_ci * which usually means that it is assigned a character.
29517777dab0Sopenharmony_ci * True for general categories other than "Cn" (other, not assigned),
29527777dab0Sopenharmony_ci * i.e., true for all code points mentioned in UnicodeData.txt.
29537777dab0Sopenharmony_ci *
29547777dab0Sopenharmony_ci * Note that non-character code points (e.g., U+FDD0) are not "defined"
29557777dab0Sopenharmony_ci * (they are Cn), but surrogate code points are "defined" (Cs).
29567777dab0Sopenharmony_ci *
29577777dab0Sopenharmony_ci * Same as java.lang.Character.isDefined().
29587777dab0Sopenharmony_ci *
29597777dab0Sopenharmony_ci * @param c the code point to be tested
29607777dab0Sopenharmony_ci * @return true if the code point is assigned a character
29617777dab0Sopenharmony_ci *
29627777dab0Sopenharmony_ci * @see u_isdigit
29637777dab0Sopenharmony_ci * @see u_isalpha
29647777dab0Sopenharmony_ci * @see u_isalnum
29657777dab0Sopenharmony_ci * @see u_isupper
29667777dab0Sopenharmony_ci * @see u_islower
29677777dab0Sopenharmony_ci * @see u_istitle
29687777dab0Sopenharmony_ci * @stable ICU 2.0
29697777dab0Sopenharmony_ci */
29707777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
29717777dab0Sopenharmony_ciu_isdefined(UChar32 c);
29727777dab0Sopenharmony_ci
29737777dab0Sopenharmony_ci/**
29747777dab0Sopenharmony_ci * Determines if the specified character is a space character or not.
29757777dab0Sopenharmony_ci *
29767777dab0Sopenharmony_ci * Note: There are several ICU whitespace functions; please see the uchar.h
29777777dab0Sopenharmony_ci * file documentation for a detailed comparison.
29787777dab0Sopenharmony_ci *
29797777dab0Sopenharmony_ci * This is a C/POSIX migration function.
29807777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
29817777dab0Sopenharmony_ci * documentation at the top of this header file.
29827777dab0Sopenharmony_ci *
29837777dab0Sopenharmony_ci * @param c    the character to be tested
29847777dab0Sopenharmony_ci * @return  true if the character is a space character; false otherwise.
29857777dab0Sopenharmony_ci *
29867777dab0Sopenharmony_ci * @see u_isJavaSpaceChar
29877777dab0Sopenharmony_ci * @see u_isWhitespace
29887777dab0Sopenharmony_ci * @see u_isUWhiteSpace
29897777dab0Sopenharmony_ci * @stable ICU 2.0
29907777dab0Sopenharmony_ci */
29917777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
29927777dab0Sopenharmony_ciu_isspace(UChar32 c);
29937777dab0Sopenharmony_ci
29947777dab0Sopenharmony_ci/**
29957777dab0Sopenharmony_ci * Determine if the specified code point is a space character according to Java.
29967777dab0Sopenharmony_ci * True for characters with general categories "Z" (separators),
29977777dab0Sopenharmony_ci * which does not include control codes (e.g., TAB or Line Feed).
29987777dab0Sopenharmony_ci *
29997777dab0Sopenharmony_ci * Same as java.lang.Character.isSpaceChar().
30007777dab0Sopenharmony_ci *
30017777dab0Sopenharmony_ci * Note: There are several ICU whitespace functions; please see the uchar.h
30027777dab0Sopenharmony_ci * file documentation for a detailed comparison.
30037777dab0Sopenharmony_ci *
30047777dab0Sopenharmony_ci * @param c the code point to be tested
30057777dab0Sopenharmony_ci * @return true if the code point is a space character according to Character.isSpaceChar()
30067777dab0Sopenharmony_ci *
30077777dab0Sopenharmony_ci * @see u_isspace
30087777dab0Sopenharmony_ci * @see u_isWhitespace
30097777dab0Sopenharmony_ci * @see u_isUWhiteSpace
30107777dab0Sopenharmony_ci * @stable ICU 2.6
30117777dab0Sopenharmony_ci */
30127777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
30137777dab0Sopenharmony_ciu_isJavaSpaceChar(UChar32 c);
30147777dab0Sopenharmony_ci
30157777dab0Sopenharmony_ci/**
30167777dab0Sopenharmony_ci * Determines if the specified code point is a whitespace character according to Java/ICU.
30177777dab0Sopenharmony_ci * A character is considered to be a Java whitespace character if and only
30187777dab0Sopenharmony_ci * if it satisfies one of the following criteria:
30197777dab0Sopenharmony_ci *
30207777dab0Sopenharmony_ci * - It is a Unicode Separator character (categories "Z" = "Zs" or "Zl" or "Zp"), but is not
30217777dab0Sopenharmony_ci *      also a non-breaking space (U+00A0 NBSP or U+2007 Figure Space or U+202F Narrow NBSP).
30227777dab0Sopenharmony_ci * - It is U+0009 HORIZONTAL TABULATION.
30237777dab0Sopenharmony_ci * - It is U+000A LINE FEED.
30247777dab0Sopenharmony_ci * - It is U+000B VERTICAL TABULATION.
30257777dab0Sopenharmony_ci * - It is U+000C FORM FEED.
30267777dab0Sopenharmony_ci * - It is U+000D CARRIAGE RETURN.
30277777dab0Sopenharmony_ci * - It is U+001C FILE SEPARATOR.
30287777dab0Sopenharmony_ci * - It is U+001D GROUP SEPARATOR.
30297777dab0Sopenharmony_ci * - It is U+001E RECORD SEPARATOR.
30307777dab0Sopenharmony_ci * - It is U+001F UNIT SEPARATOR.
30317777dab0Sopenharmony_ci *
30327777dab0Sopenharmony_ci * This API tries to sync with the semantics of Java's
30337777dab0Sopenharmony_ci * java.lang.Character.isWhitespace(), but it may not return
30347777dab0Sopenharmony_ci * the exact same results because of the Unicode version
30357777dab0Sopenharmony_ci * difference.
30367777dab0Sopenharmony_ci *
30377777dab0Sopenharmony_ci * Note: Unicode 4.0.1 changed U+200B ZERO WIDTH SPACE from a Space Separator (Zs)
30387777dab0Sopenharmony_ci * to a Format Control (Cf). Since then, isWhitespace(0x200b) returns false.
30397777dab0Sopenharmony_ci * See http://www.unicode.org/versions/Unicode4.0.1/
30407777dab0Sopenharmony_ci *
30417777dab0Sopenharmony_ci * Note: There are several ICU whitespace functions; please see the uchar.h
30427777dab0Sopenharmony_ci * file documentation for a detailed comparison.
30437777dab0Sopenharmony_ci *
30447777dab0Sopenharmony_ci * @param c the code point to be tested
30457777dab0Sopenharmony_ci * @return true if the code point is a whitespace character according to Java/ICU
30467777dab0Sopenharmony_ci *
30477777dab0Sopenharmony_ci * @see u_isspace
30487777dab0Sopenharmony_ci * @see u_isJavaSpaceChar
30497777dab0Sopenharmony_ci * @see u_isUWhiteSpace
30507777dab0Sopenharmony_ci * @stable ICU 2.0
30517777dab0Sopenharmony_ci */
30527777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
30537777dab0Sopenharmony_ciu_isWhitespace(UChar32 c);
30547777dab0Sopenharmony_ci
30557777dab0Sopenharmony_ci/**
30567777dab0Sopenharmony_ci * Determines whether the specified code point is a control character
30577777dab0Sopenharmony_ci * (as defined by this function).
30587777dab0Sopenharmony_ci * A control character is one of the following:
30597777dab0Sopenharmony_ci * - ISO 8-bit control character (U+0000..U+001f and U+007f..U+009f)
30607777dab0Sopenharmony_ci * - U_CONTROL_CHAR (Cc)
30617777dab0Sopenharmony_ci * - U_FORMAT_CHAR (Cf)
30627777dab0Sopenharmony_ci * - U_LINE_SEPARATOR (Zl)
30637777dab0Sopenharmony_ci * - U_PARAGRAPH_SEPARATOR (Zp)
30647777dab0Sopenharmony_ci *
30657777dab0Sopenharmony_ci * This is a C/POSIX migration function.
30667777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
30677777dab0Sopenharmony_ci * documentation at the top of this header file.
30687777dab0Sopenharmony_ci *
30697777dab0Sopenharmony_ci * @param c the code point to be tested
30707777dab0Sopenharmony_ci * @return true if the code point is a control character
30717777dab0Sopenharmony_ci *
30727777dab0Sopenharmony_ci * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
30737777dab0Sopenharmony_ci * @see u_isprint
30747777dab0Sopenharmony_ci * @stable ICU 2.0
30757777dab0Sopenharmony_ci */
30767777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
30777777dab0Sopenharmony_ciu_iscntrl(UChar32 c);
30787777dab0Sopenharmony_ci
30797777dab0Sopenharmony_ci/**
30807777dab0Sopenharmony_ci * Determines whether the specified code point is an ISO control code.
30817777dab0Sopenharmony_ci * True for U+0000..U+001f and U+007f..U+009f (general category "Cc").
30827777dab0Sopenharmony_ci *
30837777dab0Sopenharmony_ci * Same as java.lang.Character.isISOControl().
30847777dab0Sopenharmony_ci *
30857777dab0Sopenharmony_ci * @param c the code point to be tested
30867777dab0Sopenharmony_ci * @return true if the code point is an ISO control code
30877777dab0Sopenharmony_ci *
30887777dab0Sopenharmony_ci * @see u_iscntrl
30897777dab0Sopenharmony_ci * @stable ICU 2.6
30907777dab0Sopenharmony_ci */
30917777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
30927777dab0Sopenharmony_ciu_isISOControl(UChar32 c);
30937777dab0Sopenharmony_ci
30947777dab0Sopenharmony_ci/**
30957777dab0Sopenharmony_ci * Determines whether the specified code point is a printable character.
30967777dab0Sopenharmony_ci * True for general categories <em>other</em> than "C" (controls).
30977777dab0Sopenharmony_ci *
30987777dab0Sopenharmony_ci * This is a C/POSIX migration function.
30997777dab0Sopenharmony_ci * See the comments about C/POSIX character classification functions in the
31007777dab0Sopenharmony_ci * documentation at the top of this header file.
31017777dab0Sopenharmony_ci *
31027777dab0Sopenharmony_ci * @param c the code point to be tested
31037777dab0Sopenharmony_ci * @return true if the code point is a printable character
31047777dab0Sopenharmony_ci *
31057777dab0Sopenharmony_ci * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
31067777dab0Sopenharmony_ci * @see u_iscntrl
31077777dab0Sopenharmony_ci * @stable ICU 2.0
31087777dab0Sopenharmony_ci */
31097777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
31107777dab0Sopenharmony_ciu_isprint(UChar32 c);
31117777dab0Sopenharmony_ci
31127777dab0Sopenharmony_ci/**
31137777dab0Sopenharmony_ci * Non-standard: Determines whether the specified code point is a base character.
31147777dab0Sopenharmony_ci * True for general categories "L" (letters), "N" (numbers),
31157777dab0Sopenharmony_ci * "Mc" (spacing combining marks), and "Me" (enclosing marks).
31167777dab0Sopenharmony_ci *
31177777dab0Sopenharmony_ci * Note that this is different from the Unicode Standard definition in
31187777dab0Sopenharmony_ci * chapter 3.6, conformance clause D51 “Base character”,
31197777dab0Sopenharmony_ci * which defines base characters as the code points with general categories
31207777dab0Sopenharmony_ci * Letter (L), Number (N), Punctuation (P), Symbol (S), or Space Separator (Zs).
31217777dab0Sopenharmony_ci *
31227777dab0Sopenharmony_ci * @param c the code point to be tested
31237777dab0Sopenharmony_ci * @return true if the code point is a base character according to this function
31247777dab0Sopenharmony_ci *
31257777dab0Sopenharmony_ci * @see u_isalpha
31267777dab0Sopenharmony_ci * @see u_isdigit
31277777dab0Sopenharmony_ci * @stable ICU 2.0
31287777dab0Sopenharmony_ci */
31297777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
31307777dab0Sopenharmony_ciu_isbase(UChar32 c);
31317777dab0Sopenharmony_ci
31327777dab0Sopenharmony_ci/**
31337777dab0Sopenharmony_ci * Returns the bidirectional category value for the code point,
31347777dab0Sopenharmony_ci * which is used in the Unicode bidirectional algorithm
31357777dab0Sopenharmony_ci * (UAX #9 http://www.unicode.org/reports/tr9/).
31367777dab0Sopenharmony_ci * Note that some <em>unassigned</em> code points have bidi values
31377777dab0Sopenharmony_ci * of R or AL because they are in blocks that are reserved
31387777dab0Sopenharmony_ci * for Right-To-Left scripts.
31397777dab0Sopenharmony_ci *
31407777dab0Sopenharmony_ci * Same as java.lang.Character.getDirectionality()
31417777dab0Sopenharmony_ci *
31427777dab0Sopenharmony_ci * @param c the code point to be tested
31437777dab0Sopenharmony_ci * @return the bidirectional category (UCharDirection) value
31447777dab0Sopenharmony_ci *
31457777dab0Sopenharmony_ci * @see UCharDirection
31467777dab0Sopenharmony_ci * @stable ICU 2.0
31477777dab0Sopenharmony_ci */
31487777dab0Sopenharmony_ciU_CAPI UCharDirection U_EXPORT2
31497777dab0Sopenharmony_ciu_charDirection(UChar32 c);
31507777dab0Sopenharmony_ci
31517777dab0Sopenharmony_ci/**
31527777dab0Sopenharmony_ci * Determines whether the code point has the Bidi_Mirrored property.
31537777dab0Sopenharmony_ci * This property is set for characters that are commonly used in
31547777dab0Sopenharmony_ci * Right-To-Left contexts and need to be displayed with a "mirrored"
31557777dab0Sopenharmony_ci * glyph.
31567777dab0Sopenharmony_ci *
31577777dab0Sopenharmony_ci * Same as java.lang.Character.isMirrored().
31587777dab0Sopenharmony_ci * Same as UCHAR_BIDI_MIRRORED
31597777dab0Sopenharmony_ci *
31607777dab0Sopenharmony_ci * @param c the code point to be tested
31617777dab0Sopenharmony_ci * @return true if the character has the Bidi_Mirrored property
31627777dab0Sopenharmony_ci *
31637777dab0Sopenharmony_ci * @see UCHAR_BIDI_MIRRORED
31647777dab0Sopenharmony_ci * @stable ICU 2.0
31657777dab0Sopenharmony_ci */
31667777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
31677777dab0Sopenharmony_ciu_isMirrored(UChar32 c);
31687777dab0Sopenharmony_ci
31697777dab0Sopenharmony_ci/**
31707777dab0Sopenharmony_ci * Maps the specified character to a "mirror-image" character.
31717777dab0Sopenharmony_ci * For characters with the Bidi_Mirrored property, implementations
31727777dab0Sopenharmony_ci * sometimes need a "poor man's" mapping to another Unicode
31737777dab0Sopenharmony_ci * character (code point) such that the default glyph may serve
31747777dab0Sopenharmony_ci * as the mirror-image of the default glyph of the specified
31757777dab0Sopenharmony_ci * character. This is useful for text conversion to and from
31767777dab0Sopenharmony_ci * codepages with visual order, and for displays without glyph
31777777dab0Sopenharmony_ci * selection capabilities.
31787777dab0Sopenharmony_ci *
31797777dab0Sopenharmony_ci * @param c the code point to be mapped
31807777dab0Sopenharmony_ci * @return another Unicode code point that may serve as a mirror-image
31817777dab0Sopenharmony_ci *         substitute, or c itself if there is no such mapping or c
31827777dab0Sopenharmony_ci *         does not have the Bidi_Mirrored property
31837777dab0Sopenharmony_ci *
31847777dab0Sopenharmony_ci * @see UCHAR_BIDI_MIRRORED
31857777dab0Sopenharmony_ci * @see u_isMirrored
31867777dab0Sopenharmony_ci * @stable ICU 2.0
31877777dab0Sopenharmony_ci */
31887777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
31897777dab0Sopenharmony_ciu_charMirror(UChar32 c);
31907777dab0Sopenharmony_ci
31917777dab0Sopenharmony_ci/**
31927777dab0Sopenharmony_ci * Maps the specified character to its paired bracket character.
31937777dab0Sopenharmony_ci * For Bidi_Paired_Bracket_Type!=None, this is the same as u_charMirror().
31947777dab0Sopenharmony_ci * Otherwise c itself is returned.
31957777dab0Sopenharmony_ci * See http://www.unicode.org/reports/tr9/
31967777dab0Sopenharmony_ci *
31977777dab0Sopenharmony_ci * @param c the code point to be mapped
31987777dab0Sopenharmony_ci * @return the paired bracket code point,
31997777dab0Sopenharmony_ci *         or c itself if there is no such mapping
32007777dab0Sopenharmony_ci *         (Bidi_Paired_Bracket_Type=None)
32017777dab0Sopenharmony_ci *
32027777dab0Sopenharmony_ci * @see UCHAR_BIDI_PAIRED_BRACKET
32037777dab0Sopenharmony_ci * @see UCHAR_BIDI_PAIRED_BRACKET_TYPE
32047777dab0Sopenharmony_ci * @see u_charMirror
32057777dab0Sopenharmony_ci * @stable ICU 52
32067777dab0Sopenharmony_ci */
32077777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
32087777dab0Sopenharmony_ciu_getBidiPairedBracket(UChar32 c);
32097777dab0Sopenharmony_ci
32107777dab0Sopenharmony_ci/**
32117777dab0Sopenharmony_ci * Returns the general category value for the code point.
32127777dab0Sopenharmony_ci *
32137777dab0Sopenharmony_ci * Same as java.lang.Character.getType().
32147777dab0Sopenharmony_ci *
32157777dab0Sopenharmony_ci * @param c the code point to be tested
32167777dab0Sopenharmony_ci * @return the general category (UCharCategory) value
32177777dab0Sopenharmony_ci *
32187777dab0Sopenharmony_ci * @see UCharCategory
32197777dab0Sopenharmony_ci * @stable ICU 2.0
32207777dab0Sopenharmony_ci */
32217777dab0Sopenharmony_ciU_CAPI int8_t U_EXPORT2
32227777dab0Sopenharmony_ciu_charType(UChar32 c);
32237777dab0Sopenharmony_ci
32247777dab0Sopenharmony_ci/**
32257777dab0Sopenharmony_ci * Get a single-bit bit set for the general category of a character.
32267777dab0Sopenharmony_ci * This bit set can be compared bitwise with U_GC_SM_MASK, U_GC_L_MASK, etc.
32277777dab0Sopenharmony_ci * Same as U_MASK(u_charType(c)).
32287777dab0Sopenharmony_ci *
32297777dab0Sopenharmony_ci * @param c the code point to be tested
32307777dab0Sopenharmony_ci * @return a single-bit mask corresponding to the general category (UCharCategory) value
32317777dab0Sopenharmony_ci *
32327777dab0Sopenharmony_ci * @see u_charType
32337777dab0Sopenharmony_ci * @see UCharCategory
32347777dab0Sopenharmony_ci * @see U_GC_CN_MASK
32357777dab0Sopenharmony_ci * @stable ICU 2.1
32367777dab0Sopenharmony_ci */
32377777dab0Sopenharmony_ci#define U_GET_GC_MASK(c) U_MASK(u_charType(c))
32387777dab0Sopenharmony_ci
32397777dab0Sopenharmony_ci/**
32407777dab0Sopenharmony_ci * Callback from u_enumCharTypes(), is called for each contiguous range
32417777dab0Sopenharmony_ci * of code points c (where start<=c<limit)
32427777dab0Sopenharmony_ci * with the same Unicode general category ("character type").
32437777dab0Sopenharmony_ci *
32447777dab0Sopenharmony_ci * The callback function can stop the enumeration by returning false.
32457777dab0Sopenharmony_ci *
32467777dab0Sopenharmony_ci * @param context an opaque pointer, as passed into utrie_enum()
32477777dab0Sopenharmony_ci * @param start the first code point in a contiguous range with value
32487777dab0Sopenharmony_ci * @param limit one past the last code point in a contiguous range with value
32497777dab0Sopenharmony_ci * @param type the general category for all code points in [start..limit[
32507777dab0Sopenharmony_ci * @return false to stop the enumeration
32517777dab0Sopenharmony_ci *
32527777dab0Sopenharmony_ci * @stable ICU 2.1
32537777dab0Sopenharmony_ci * @see UCharCategory
32547777dab0Sopenharmony_ci * @see u_enumCharTypes
32557777dab0Sopenharmony_ci */
32567777dab0Sopenharmony_citypedef UBool U_CALLCONV
32577777dab0Sopenharmony_ciUCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type);
32587777dab0Sopenharmony_ci
32597777dab0Sopenharmony_ci/**
32607777dab0Sopenharmony_ci * Enumerate efficiently all code points with their Unicode general categories.
32617777dab0Sopenharmony_ci *
32627777dab0Sopenharmony_ci * This is useful for building data structures (e.g., UnicodeSet's),
32637777dab0Sopenharmony_ci * for enumerating all assigned code points (type!=U_UNASSIGNED), etc.
32647777dab0Sopenharmony_ci *
32657777dab0Sopenharmony_ci * For each contiguous range of code points with a given general category ("character type"),
32667777dab0Sopenharmony_ci * the UCharEnumTypeRange function is called.
32677777dab0Sopenharmony_ci * Adjacent ranges have different types.
32687777dab0Sopenharmony_ci * The Unicode Standard guarantees that the numeric value of the type is 0..31.
32697777dab0Sopenharmony_ci *
32707777dab0Sopenharmony_ci * @param enumRange a pointer to a function that is called for each contiguous range
32717777dab0Sopenharmony_ci *                  of code points with the same general category
32727777dab0Sopenharmony_ci * @param context an opaque pointer that is passed on to the callback function
32737777dab0Sopenharmony_ci *
32747777dab0Sopenharmony_ci * @stable ICU 2.1
32757777dab0Sopenharmony_ci * @see UCharCategory
32767777dab0Sopenharmony_ci * @see UCharEnumTypeRange
32777777dab0Sopenharmony_ci */
32787777dab0Sopenharmony_ciU_CAPI void U_EXPORT2
32797777dab0Sopenharmony_ciu_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);
32807777dab0Sopenharmony_ci
32817777dab0Sopenharmony_ci#if !UCONFIG_NO_NORMALIZATION
32827777dab0Sopenharmony_ci
32837777dab0Sopenharmony_ci/**
32847777dab0Sopenharmony_ci * Returns the combining class of the code point as specified in UnicodeData.txt.
32857777dab0Sopenharmony_ci *
32867777dab0Sopenharmony_ci * @param c the code point of the character
32877777dab0Sopenharmony_ci * @return the combining class of the character
32887777dab0Sopenharmony_ci * @stable ICU 2.0
32897777dab0Sopenharmony_ci */
32907777dab0Sopenharmony_ciU_CAPI uint8_t U_EXPORT2
32917777dab0Sopenharmony_ciu_getCombiningClass(UChar32 c);
32927777dab0Sopenharmony_ci
32937777dab0Sopenharmony_ci#endif
32947777dab0Sopenharmony_ci
32957777dab0Sopenharmony_ci/**
32967777dab0Sopenharmony_ci * Returns the decimal digit value of a decimal digit character.
32977777dab0Sopenharmony_ci * Such characters have the general category "Nd" (decimal digit numbers)
32987777dab0Sopenharmony_ci * and a Numeric_Type of Decimal.
32997777dab0Sopenharmony_ci *
33007777dab0Sopenharmony_ci * Unlike ICU releases before 2.6, no digit values are returned for any
33017777dab0Sopenharmony_ci * Han characters because Han number characters are often used with a special
33027777dab0Sopenharmony_ci * Chinese-style number format (with characters for powers of 10 in between)
33037777dab0Sopenharmony_ci * instead of in decimal-positional notation.
33047777dab0Sopenharmony_ci * Unicode 4 explicitly assigns Han number characters the Numeric_Type
33057777dab0Sopenharmony_ci * Numeric instead of Decimal.
33067777dab0Sopenharmony_ci * See Jitterbug 1483 for more details.
33077777dab0Sopenharmony_ci *
33087777dab0Sopenharmony_ci * Use u_getIntPropertyValue(c, UCHAR_NUMERIC_TYPE) and u_getNumericValue()
33097777dab0Sopenharmony_ci * for complete numeric Unicode properties.
33107777dab0Sopenharmony_ci *
33117777dab0Sopenharmony_ci * @param c the code point for which to get the decimal digit value
33127777dab0Sopenharmony_ci * @return the decimal digit value of c,
33137777dab0Sopenharmony_ci *         or -1 if c is not a decimal digit character
33147777dab0Sopenharmony_ci *
33157777dab0Sopenharmony_ci * @see u_getNumericValue
33167777dab0Sopenharmony_ci * @stable ICU 2.0
33177777dab0Sopenharmony_ci */
33187777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
33197777dab0Sopenharmony_ciu_charDigitValue(UChar32 c);
33207777dab0Sopenharmony_ci
33217777dab0Sopenharmony_ci/**
33227777dab0Sopenharmony_ci * Returns the Unicode allocation block that contains the character.
33237777dab0Sopenharmony_ci *
33247777dab0Sopenharmony_ci * @param c the code point to be tested
33257777dab0Sopenharmony_ci * @return the block value (UBlockCode) for c
33267777dab0Sopenharmony_ci *
33277777dab0Sopenharmony_ci * @see UBlockCode
33287777dab0Sopenharmony_ci * @stable ICU 2.0
33297777dab0Sopenharmony_ci */
33307777dab0Sopenharmony_ciU_CAPI UBlockCode U_EXPORT2
33317777dab0Sopenharmony_ciublock_getCode(UChar32 c);
33327777dab0Sopenharmony_ci
33337777dab0Sopenharmony_ci/**
33347777dab0Sopenharmony_ci * Retrieve the name of a Unicode character.
33357777dab0Sopenharmony_ci * Depending on <code>nameChoice</code>, the character name written
33367777dab0Sopenharmony_ci * into the buffer is the "modern" name or the name that was defined
33377777dab0Sopenharmony_ci * in Unicode version 1.0.
33387777dab0Sopenharmony_ci * The name contains only "invariant" characters
33397777dab0Sopenharmony_ci * like A-Z, 0-9, space, and '-'.
33407777dab0Sopenharmony_ci * Unicode 1.0 names are only retrieved if they are different from the modern
33417777dab0Sopenharmony_ci * names and if the data file contains the data for them. gennames may or may
33427777dab0Sopenharmony_ci * not be called with a command line option to include 1.0 names in unames.dat.
33437777dab0Sopenharmony_ci *
33447777dab0Sopenharmony_ci * @param code The character (code point) for which to get the name.
33457777dab0Sopenharmony_ci *             It must be <code>0<=code<=0x10ffff</code>.
33467777dab0Sopenharmony_ci * @param nameChoice Selector for which name to get.
33477777dab0Sopenharmony_ci * @param buffer Destination address for copying the name.
33487777dab0Sopenharmony_ci *               The name will always be zero-terminated.
33497777dab0Sopenharmony_ci *               If there is no name, then the buffer will be set to the empty string.
33507777dab0Sopenharmony_ci * @param bufferLength <code>==sizeof(buffer)</code>
33517777dab0Sopenharmony_ci * @param pErrorCode Pointer to a UErrorCode variable;
33527777dab0Sopenharmony_ci *        check for <code>U_SUCCESS()</code> after <code>u_charName()</code>
33537777dab0Sopenharmony_ci *        returns.
33547777dab0Sopenharmony_ci * @return The length of the name, or 0 if there is no name for this character.
33557777dab0Sopenharmony_ci *         If the bufferLength is less than or equal to the length, then the buffer
33567777dab0Sopenharmony_ci *         contains the truncated name and the returned length indicates the full
33577777dab0Sopenharmony_ci *         length of the name.
33587777dab0Sopenharmony_ci *         The length does not include the zero-termination.
33597777dab0Sopenharmony_ci *
33607777dab0Sopenharmony_ci * @see UCharNameChoice
33617777dab0Sopenharmony_ci * @see u_charFromName
33627777dab0Sopenharmony_ci * @see u_enumCharNames
33637777dab0Sopenharmony_ci * @stable ICU 2.0
33647777dab0Sopenharmony_ci */
33657777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
33667777dab0Sopenharmony_ciu_charName(UChar32 code, UCharNameChoice nameChoice,
33677777dab0Sopenharmony_ci           char *buffer, int32_t bufferLength,
33687777dab0Sopenharmony_ci           UErrorCode *pErrorCode);
33697777dab0Sopenharmony_ci
33707777dab0Sopenharmony_ci/**
33717777dab0Sopenharmony_ci * Find a Unicode character by its name and return its code point value.
33727777dab0Sopenharmony_ci * The name is matched exactly and completely.
33737777dab0Sopenharmony_ci * If the name does not correspond to a code point, <i>pErrorCode</i>
33747777dab0Sopenharmony_ci * is set to <code>U_INVALID_CHAR_FOUND</code>.
33757777dab0Sopenharmony_ci * A Unicode 1.0 name is matched only if it differs from the modern name.
33767777dab0Sopenharmony_ci * Unicode names are all uppercase. Extended names are lowercase followed
33777777dab0Sopenharmony_ci * by an uppercase hexadecimal number, and within angle brackets.
33787777dab0Sopenharmony_ci *
33797777dab0Sopenharmony_ci * @param nameChoice Selector for which name to match.
33807777dab0Sopenharmony_ci * @param name The name to match.
33817777dab0Sopenharmony_ci * @param pErrorCode Pointer to a UErrorCode variable
33827777dab0Sopenharmony_ci * @return The Unicode value of the code point with the given name,
33837777dab0Sopenharmony_ci *         or an undefined value if there is no such code point.
33847777dab0Sopenharmony_ci *
33857777dab0Sopenharmony_ci * @see UCharNameChoice
33867777dab0Sopenharmony_ci * @see u_charName
33877777dab0Sopenharmony_ci * @see u_enumCharNames
33887777dab0Sopenharmony_ci * @stable ICU 1.7
33897777dab0Sopenharmony_ci */
33907777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
33917777dab0Sopenharmony_ciu_charFromName(UCharNameChoice nameChoice,
33927777dab0Sopenharmony_ci               const char *name,
33937777dab0Sopenharmony_ci               UErrorCode *pErrorCode);
33947777dab0Sopenharmony_ci
33957777dab0Sopenharmony_ci/**
33967777dab0Sopenharmony_ci * Type of a callback function for u_enumCharNames() that gets called
33977777dab0Sopenharmony_ci * for each Unicode character with the code point value and
33987777dab0Sopenharmony_ci * the character name.
33997777dab0Sopenharmony_ci * If such a function returns false, then the enumeration is stopped.
34007777dab0Sopenharmony_ci *
34017777dab0Sopenharmony_ci * @param context The context pointer that was passed to u_enumCharNames().
34027777dab0Sopenharmony_ci * @param code The Unicode code point for the character with this name.
34037777dab0Sopenharmony_ci * @param nameChoice Selector for which kind of names is enumerated.
34047777dab0Sopenharmony_ci * @param name The character's name, zero-terminated.
34057777dab0Sopenharmony_ci * @param length The length of the name.
34067777dab0Sopenharmony_ci * @return true if the enumeration should continue, false to stop it.
34077777dab0Sopenharmony_ci *
34087777dab0Sopenharmony_ci * @see UCharNameChoice
34097777dab0Sopenharmony_ci * @see u_enumCharNames
34107777dab0Sopenharmony_ci * @stable ICU 1.7
34117777dab0Sopenharmony_ci */
34127777dab0Sopenharmony_citypedef UBool U_CALLCONV UEnumCharNamesFn(void *context,
34137777dab0Sopenharmony_ci                               UChar32 code,
34147777dab0Sopenharmony_ci                               UCharNameChoice nameChoice,
34157777dab0Sopenharmony_ci                               const char *name,
34167777dab0Sopenharmony_ci                               int32_t length);
34177777dab0Sopenharmony_ci
34187777dab0Sopenharmony_ci/**
34197777dab0Sopenharmony_ci * Enumerate all assigned Unicode characters between the start and limit
34207777dab0Sopenharmony_ci * code points (start inclusive, limit exclusive) and call a function
34217777dab0Sopenharmony_ci * for each, passing the code point value and the character name.
34227777dab0Sopenharmony_ci * For Unicode 1.0 names, only those are enumerated that differ from the
34237777dab0Sopenharmony_ci * modern names.
34247777dab0Sopenharmony_ci *
34257777dab0Sopenharmony_ci * @param start The first code point in the enumeration range.
34267777dab0Sopenharmony_ci * @param limit One more than the last code point in the enumeration range
34277777dab0Sopenharmony_ci *              (the first one after the range).
34287777dab0Sopenharmony_ci * @param fn The function that is to be called for each character name.
34297777dab0Sopenharmony_ci * @param context An arbitrary pointer that is passed to the function.
34307777dab0Sopenharmony_ci * @param nameChoice Selector for which kind of names to enumerate.
34317777dab0Sopenharmony_ci * @param pErrorCode Pointer to a UErrorCode variable
34327777dab0Sopenharmony_ci *
34337777dab0Sopenharmony_ci * @see UCharNameChoice
34347777dab0Sopenharmony_ci * @see UEnumCharNamesFn
34357777dab0Sopenharmony_ci * @see u_charName
34367777dab0Sopenharmony_ci * @see u_charFromName
34377777dab0Sopenharmony_ci * @stable ICU 1.7
34387777dab0Sopenharmony_ci */
34397777dab0Sopenharmony_ciU_CAPI void U_EXPORT2
34407777dab0Sopenharmony_ciu_enumCharNames(UChar32 start, UChar32 limit,
34417777dab0Sopenharmony_ci                UEnumCharNamesFn *fn,
34427777dab0Sopenharmony_ci                void *context,
34437777dab0Sopenharmony_ci                UCharNameChoice nameChoice,
34447777dab0Sopenharmony_ci                UErrorCode *pErrorCode);
34457777dab0Sopenharmony_ci
34467777dab0Sopenharmony_ci/**
34477777dab0Sopenharmony_ci * Return the Unicode name for a given property, as given in the
34487777dab0Sopenharmony_ci * Unicode database file PropertyAliases.txt.
34497777dab0Sopenharmony_ci *
34507777dab0Sopenharmony_ci * In addition, this function maps the property
34517777dab0Sopenharmony_ci * UCHAR_GENERAL_CATEGORY_MASK to the synthetic names "gcm" /
34527777dab0Sopenharmony_ci * "General_Category_Mask".  These names are not in
34537777dab0Sopenharmony_ci * PropertyAliases.txt.
34547777dab0Sopenharmony_ci *
34557777dab0Sopenharmony_ci * @param property UProperty selector other than UCHAR_INVALID_CODE.
34567777dab0Sopenharmony_ci *         If out of range, NULL is returned.
34577777dab0Sopenharmony_ci *
34587777dab0Sopenharmony_ci * @param nameChoice selector for which name to get.  If out of range,
34597777dab0Sopenharmony_ci *         NULL is returned.  All properties have a long name.  Most
34607777dab0Sopenharmony_ci *         have a short name, but some do not.  Unicode allows for
34617777dab0Sopenharmony_ci *         additional names; if present these will be returned by
34627777dab0Sopenharmony_ci *         U_LONG_PROPERTY_NAME + i, where i=1, 2,...
34637777dab0Sopenharmony_ci *
34647777dab0Sopenharmony_ci * @return a pointer to the name, or NULL if either the
34657777dab0Sopenharmony_ci *         property or the nameChoice is out of range.  If a given
34667777dab0Sopenharmony_ci *         nameChoice returns NULL, then all larger values of
34677777dab0Sopenharmony_ci *         nameChoice will return NULL, with one exception: if NULL is
34687777dab0Sopenharmony_ci *         returned for U_SHORT_PROPERTY_NAME, then
34697777dab0Sopenharmony_ci *         U_LONG_PROPERTY_NAME (and higher) may still return a
34707777dab0Sopenharmony_ci *         non-NULL value.  The returned pointer is valid until
34717777dab0Sopenharmony_ci *         u_cleanup() is called.
34727777dab0Sopenharmony_ci *
34737777dab0Sopenharmony_ci * @see UProperty
34747777dab0Sopenharmony_ci * @see UPropertyNameChoice
34757777dab0Sopenharmony_ci * @stable ICU 2.4
34767777dab0Sopenharmony_ci */
34777777dab0Sopenharmony_ciU_CAPI const char* U_EXPORT2
34787777dab0Sopenharmony_ciu_getPropertyName(UProperty property,
34797777dab0Sopenharmony_ci                  UPropertyNameChoice nameChoice);
34807777dab0Sopenharmony_ci
34817777dab0Sopenharmony_ci/**
34827777dab0Sopenharmony_ci * Return the UProperty enum for a given property name, as specified
34837777dab0Sopenharmony_ci * in the Unicode database file PropertyAliases.txt.  Short, long, and
34847777dab0Sopenharmony_ci * any other variants are recognized.
34857777dab0Sopenharmony_ci *
34867777dab0Sopenharmony_ci * In addition, this function maps the synthetic names "gcm" /
34877777dab0Sopenharmony_ci * "General_Category_Mask" to the property
34887777dab0Sopenharmony_ci * UCHAR_GENERAL_CATEGORY_MASK.  These names are not in
34897777dab0Sopenharmony_ci * PropertyAliases.txt.
34907777dab0Sopenharmony_ci *
34917777dab0Sopenharmony_ci * @param alias the property name to be matched.  The name is compared
34927777dab0Sopenharmony_ci *         using "loose matching" as described in PropertyAliases.txt.
34937777dab0Sopenharmony_ci *
34947777dab0Sopenharmony_ci * @return a UProperty enum, or UCHAR_INVALID_CODE if the given name
34957777dab0Sopenharmony_ci *         does not match any property.
34967777dab0Sopenharmony_ci *
34977777dab0Sopenharmony_ci * @see UProperty
34987777dab0Sopenharmony_ci * @stable ICU 2.4
34997777dab0Sopenharmony_ci */
35007777dab0Sopenharmony_ciU_CAPI UProperty U_EXPORT2
35017777dab0Sopenharmony_ciu_getPropertyEnum(const char* alias);
35027777dab0Sopenharmony_ci
35037777dab0Sopenharmony_ci/**
35047777dab0Sopenharmony_ci * Return the Unicode name for a given property value, as given in the
35057777dab0Sopenharmony_ci * Unicode database file PropertyValueAliases.txt.
35067777dab0Sopenharmony_ci *
35077777dab0Sopenharmony_ci * Note: Some of the names in PropertyValueAliases.txt can only be
35087777dab0Sopenharmony_ci * retrieved using UCHAR_GENERAL_CATEGORY_MASK, not
35097777dab0Sopenharmony_ci * UCHAR_GENERAL_CATEGORY.  These include: "C" / "Other", "L" /
35107777dab0Sopenharmony_ci * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"
35117777dab0Sopenharmony_ci * / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
35127777dab0Sopenharmony_ci *
35137777dab0Sopenharmony_ci * @param property UProperty selector constant.
35147777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
35157777dab0Sopenharmony_ci *        or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
35167777dab0Sopenharmony_ci *        or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
35177777dab0Sopenharmony_ci *        If out of range, NULL is returned.
35187777dab0Sopenharmony_ci *
35197777dab0Sopenharmony_ci * @param value selector for a value for the given property.  If out
35207777dab0Sopenharmony_ci *         of range, NULL is returned.  In general, valid values range
35217777dab0Sopenharmony_ci *         from 0 up to some maximum.  There are a few exceptions:
35227777dab0Sopenharmony_ci *         (1.) UCHAR_BLOCK values begin at the non-zero value
35237777dab0Sopenharmony_ci *         UBLOCK_BASIC_LATIN.  (2.)  UCHAR_CANONICAL_COMBINING_CLASS
35247777dab0Sopenharmony_ci *         values are not contiguous and range from 0..240.  (3.)
35257777dab0Sopenharmony_ci *         UCHAR_GENERAL_CATEGORY_MASK values are not values of
35267777dab0Sopenharmony_ci *         UCharCategory, but rather mask values produced by
35277777dab0Sopenharmony_ci *         U_GET_GC_MASK().  This allows grouped categories such as
35287777dab0Sopenharmony_ci *         [:L:] to be represented.  Mask values range
35297777dab0Sopenharmony_ci *         non-contiguously from 1..U_GC_P_MASK.
35307777dab0Sopenharmony_ci *
35317777dab0Sopenharmony_ci * @param nameChoice selector for which name to get.  If out of range,
35327777dab0Sopenharmony_ci *         NULL is returned.  All values have a long name.  Most have
35337777dab0Sopenharmony_ci *         a short name, but some do not.  Unicode allows for
35347777dab0Sopenharmony_ci *         additional names; if present these will be returned by
35357777dab0Sopenharmony_ci *         U_LONG_PROPERTY_NAME + i, where i=1, 2,...
35367777dab0Sopenharmony_ci
35377777dab0Sopenharmony_ci * @return a pointer to the name, or NULL if either the
35387777dab0Sopenharmony_ci *         property or the nameChoice is out of range.  If a given
35397777dab0Sopenharmony_ci *         nameChoice returns NULL, then all larger values of
35407777dab0Sopenharmony_ci *         nameChoice will return NULL, with one exception: if NULL is
35417777dab0Sopenharmony_ci *         returned for U_SHORT_PROPERTY_NAME, then
35427777dab0Sopenharmony_ci *         U_LONG_PROPERTY_NAME (and higher) may still return a
35437777dab0Sopenharmony_ci *         non-NULL value.  The returned pointer is valid until
35447777dab0Sopenharmony_ci *         u_cleanup() is called.
35457777dab0Sopenharmony_ci *
35467777dab0Sopenharmony_ci * @see UProperty
35477777dab0Sopenharmony_ci * @see UPropertyNameChoice
35487777dab0Sopenharmony_ci * @stable ICU 2.4
35497777dab0Sopenharmony_ci */
35507777dab0Sopenharmony_ciU_CAPI const char* U_EXPORT2
35517777dab0Sopenharmony_ciu_getPropertyValueName(UProperty property,
35527777dab0Sopenharmony_ci                       int32_t value,
35537777dab0Sopenharmony_ci                       UPropertyNameChoice nameChoice);
35547777dab0Sopenharmony_ci
35557777dab0Sopenharmony_ci/**
35567777dab0Sopenharmony_ci * Return the property value integer for a given value name, as
35577777dab0Sopenharmony_ci * specified in the Unicode database file PropertyValueAliases.txt.
35587777dab0Sopenharmony_ci * Short, long, and any other variants are recognized.
35597777dab0Sopenharmony_ci *
35607777dab0Sopenharmony_ci * Note: Some of the names in PropertyValueAliases.txt will only be
35617777dab0Sopenharmony_ci * recognized with UCHAR_GENERAL_CATEGORY_MASK, not
35627777dab0Sopenharmony_ci * UCHAR_GENERAL_CATEGORY.  These include: "C" / "Other", "L" /
35637777dab0Sopenharmony_ci * "Letter", "LC" / "Cased_Letter", "M" / "Mark", "N" / "Number", "P"
35647777dab0Sopenharmony_ci * / "Punctuation", "S" / "Symbol", and "Z" / "Separator".
35657777dab0Sopenharmony_ci *
35667777dab0Sopenharmony_ci * @param property UProperty selector constant.
35677777dab0Sopenharmony_ci *        Must be UCHAR_BINARY_START<=which<UCHAR_BINARY_LIMIT
35687777dab0Sopenharmony_ci *        or UCHAR_INT_START<=which<UCHAR_INT_LIMIT
35697777dab0Sopenharmony_ci *        or UCHAR_MASK_START<=which<UCHAR_MASK_LIMIT.
35707777dab0Sopenharmony_ci *        If out of range, UCHAR_INVALID_CODE is returned.
35717777dab0Sopenharmony_ci *
35727777dab0Sopenharmony_ci * @param alias the value name to be matched.  The name is compared
35737777dab0Sopenharmony_ci *         using "loose matching" as described in
35747777dab0Sopenharmony_ci *         PropertyValueAliases.txt.
35757777dab0Sopenharmony_ci *
35767777dab0Sopenharmony_ci * @return a value integer or UCHAR_INVALID_CODE if the given name
35777777dab0Sopenharmony_ci *         does not match any value of the given property, or if the
35787777dab0Sopenharmony_ci *         property is invalid.  Note: UCHAR_GENERAL_CATEGORY_MASK values
35797777dab0Sopenharmony_ci *         are not values of UCharCategory, but rather mask values
35807777dab0Sopenharmony_ci *         produced by U_GET_GC_MASK().  This allows grouped
35817777dab0Sopenharmony_ci *         categories such as [:L:] to be represented.
35827777dab0Sopenharmony_ci *
35837777dab0Sopenharmony_ci * @see UProperty
35847777dab0Sopenharmony_ci * @stable ICU 2.4
35857777dab0Sopenharmony_ci */
35867777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
35877777dab0Sopenharmony_ciu_getPropertyValueEnum(UProperty property,
35887777dab0Sopenharmony_ci                       const char* alias);
35897777dab0Sopenharmony_ci
35907777dab0Sopenharmony_ci/**
35917777dab0Sopenharmony_ci * Determines if the specified character is permissible as the
35927777dab0Sopenharmony_ci * first character in an identifier according to Unicode
35937777dab0Sopenharmony_ci * (The Unicode Standard, Version 3.0, chapter 5.16 Identifiers).
35947777dab0Sopenharmony_ci * True for characters with general categories "L" (letters) and "Nl" (letter numbers).
35957777dab0Sopenharmony_ci *
35967777dab0Sopenharmony_ci * Same as java.lang.Character.isUnicodeIdentifierStart().
35977777dab0Sopenharmony_ci * Same as UCHAR_ID_START
35987777dab0Sopenharmony_ci *
35997777dab0Sopenharmony_ci * @param c the code point to be tested
36007777dab0Sopenharmony_ci * @return true if the code point may start an identifier
36017777dab0Sopenharmony_ci *
36027777dab0Sopenharmony_ci * @see UCHAR_ID_START
36037777dab0Sopenharmony_ci * @see u_isalpha
36047777dab0Sopenharmony_ci * @see u_isIDPart
36057777dab0Sopenharmony_ci * @stable ICU 2.0
36067777dab0Sopenharmony_ci */
36077777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
36087777dab0Sopenharmony_ciu_isIDStart(UChar32 c);
36097777dab0Sopenharmony_ci
36107777dab0Sopenharmony_ci/**
36117777dab0Sopenharmony_ci * Determines if the specified character is permissible
36127777dab0Sopenharmony_ci * in an identifier according to Java.
36137777dab0Sopenharmony_ci * True for characters with general categories "L" (letters),
36147777dab0Sopenharmony_ci * "Nl" (letter numbers), "Nd" (decimal digits),
36157777dab0Sopenharmony_ci * "Mc" and "Mn" (combining marks), "Pc" (connecting punctuation), and
36167777dab0Sopenharmony_ci * u_isIDIgnorable(c).
36177777dab0Sopenharmony_ci *
36187777dab0Sopenharmony_ci * Same as java.lang.Character.isUnicodeIdentifierPart().
36197777dab0Sopenharmony_ci * Almost the same as Unicode's ID_Continue (UCHAR_ID_CONTINUE)
36207777dab0Sopenharmony_ci * except that Unicode recommends to ignore Cf which is less than
36217777dab0Sopenharmony_ci * u_isIDIgnorable(c).
36227777dab0Sopenharmony_ci *
36237777dab0Sopenharmony_ci * @param c the code point to be tested
36247777dab0Sopenharmony_ci * @return true if the code point may occur in an identifier according to Java
36257777dab0Sopenharmony_ci *
36267777dab0Sopenharmony_ci * @see UCHAR_ID_CONTINUE
36277777dab0Sopenharmony_ci * @see u_isIDStart
36287777dab0Sopenharmony_ci * @see u_isIDIgnorable
36297777dab0Sopenharmony_ci * @stable ICU 2.0
36307777dab0Sopenharmony_ci */
36317777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
36327777dab0Sopenharmony_ciu_isIDPart(UChar32 c);
36337777dab0Sopenharmony_ci
36347777dab0Sopenharmony_ci/**
36357777dab0Sopenharmony_ci * Determines if the specified character should be regarded
36367777dab0Sopenharmony_ci * as an ignorable character in an identifier,
36377777dab0Sopenharmony_ci * according to Java.
36387777dab0Sopenharmony_ci * True for characters with general category "Cf" (format controls) as well as
36397777dab0Sopenharmony_ci * non-whitespace ISO controls
36407777dab0Sopenharmony_ci * (U+0000..U+0008, U+000E..U+001B, U+007F..U+009F).
36417777dab0Sopenharmony_ci *
36427777dab0Sopenharmony_ci * Same as java.lang.Character.isIdentifierIgnorable().
36437777dab0Sopenharmony_ci *
36447777dab0Sopenharmony_ci * Note that Unicode just recommends to ignore Cf (format controls).
36457777dab0Sopenharmony_ci *
36467777dab0Sopenharmony_ci * @param c the code point to be tested
36477777dab0Sopenharmony_ci * @return true if the code point is ignorable in identifiers according to Java
36487777dab0Sopenharmony_ci *
36497777dab0Sopenharmony_ci * @see UCHAR_DEFAULT_IGNORABLE_CODE_POINT
36507777dab0Sopenharmony_ci * @see u_isIDStart
36517777dab0Sopenharmony_ci * @see u_isIDPart
36527777dab0Sopenharmony_ci * @stable ICU 2.0
36537777dab0Sopenharmony_ci */
36547777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
36557777dab0Sopenharmony_ciu_isIDIgnorable(UChar32 c);
36567777dab0Sopenharmony_ci
36577777dab0Sopenharmony_ci/**
36587777dab0Sopenharmony_ci * Determines if the specified character is permissible as the
36597777dab0Sopenharmony_ci * first character in a Java identifier.
36607777dab0Sopenharmony_ci * In addition to u_isIDStart(c), true for characters with
36617777dab0Sopenharmony_ci * general categories "Sc" (currency symbols) and "Pc" (connecting punctuation).
36627777dab0Sopenharmony_ci *
36637777dab0Sopenharmony_ci * Same as java.lang.Character.isJavaIdentifierStart().
36647777dab0Sopenharmony_ci *
36657777dab0Sopenharmony_ci * @param c the code point to be tested
36667777dab0Sopenharmony_ci * @return true if the code point may start a Java identifier
36677777dab0Sopenharmony_ci *
36687777dab0Sopenharmony_ci * @see     u_isJavaIDPart
36697777dab0Sopenharmony_ci * @see     u_isalpha
36707777dab0Sopenharmony_ci * @see     u_isIDStart
36717777dab0Sopenharmony_ci * @stable ICU 2.0
36727777dab0Sopenharmony_ci */
36737777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
36747777dab0Sopenharmony_ciu_isJavaIDStart(UChar32 c);
36757777dab0Sopenharmony_ci
36767777dab0Sopenharmony_ci/**
36777777dab0Sopenharmony_ci * Determines if the specified character is permissible
36787777dab0Sopenharmony_ci * in a Java identifier.
36797777dab0Sopenharmony_ci * In addition to u_isIDPart(c), true for characters with
36807777dab0Sopenharmony_ci * general category "Sc" (currency symbols).
36817777dab0Sopenharmony_ci *
36827777dab0Sopenharmony_ci * Same as java.lang.Character.isJavaIdentifierPart().
36837777dab0Sopenharmony_ci *
36847777dab0Sopenharmony_ci * @param c the code point to be tested
36857777dab0Sopenharmony_ci * @return true if the code point may occur in a Java identifier
36867777dab0Sopenharmony_ci *
36877777dab0Sopenharmony_ci * @see     u_isIDIgnorable
36887777dab0Sopenharmony_ci * @see     u_isJavaIDStart
36897777dab0Sopenharmony_ci * @see     u_isalpha
36907777dab0Sopenharmony_ci * @see     u_isdigit
36917777dab0Sopenharmony_ci * @see     u_isIDPart
36927777dab0Sopenharmony_ci * @stable ICU 2.0
36937777dab0Sopenharmony_ci */
36947777dab0Sopenharmony_ciU_CAPI UBool U_EXPORT2
36957777dab0Sopenharmony_ciu_isJavaIDPart(UChar32 c);
36967777dab0Sopenharmony_ci
36977777dab0Sopenharmony_ci/**
36987777dab0Sopenharmony_ci * The given character is mapped to its lowercase equivalent according to
36997777dab0Sopenharmony_ci * UnicodeData.txt; if the character has no lowercase equivalent, the character
37007777dab0Sopenharmony_ci * itself is returned.
37017777dab0Sopenharmony_ci *
37027777dab0Sopenharmony_ci * Same as java.lang.Character.toLowerCase().
37037777dab0Sopenharmony_ci *
37047777dab0Sopenharmony_ci * This function only returns the simple, single-code point case mapping.
37057777dab0Sopenharmony_ci * Full case mappings should be used whenever possible because they produce
37067777dab0Sopenharmony_ci * better results by working on whole strings.
37077777dab0Sopenharmony_ci * They take into account the string context and the language and can map
37087777dab0Sopenharmony_ci * to a result string with a different length as appropriate.
37097777dab0Sopenharmony_ci * Full case mappings are applied by the string case mapping functions,
37107777dab0Sopenharmony_ci * see ustring.h and the UnicodeString class.
37117777dab0Sopenharmony_ci * See also the User Guide chapter on C/POSIX migration:
37127777dab0Sopenharmony_ci * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
37137777dab0Sopenharmony_ci *
37147777dab0Sopenharmony_ci * @param c the code point to be mapped
37157777dab0Sopenharmony_ci * @return the Simple_Lowercase_Mapping of the code point, if any;
37167777dab0Sopenharmony_ci *         otherwise the code point itself.
37177777dab0Sopenharmony_ci * @stable ICU 2.0
37187777dab0Sopenharmony_ci */
37197777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
37207777dab0Sopenharmony_ciu_tolower(UChar32 c);
37217777dab0Sopenharmony_ci
37227777dab0Sopenharmony_ci/**
37237777dab0Sopenharmony_ci * The given character is mapped to its uppercase equivalent according to UnicodeData.txt;
37247777dab0Sopenharmony_ci * if the character has no uppercase equivalent, the character itself is
37257777dab0Sopenharmony_ci * returned.
37267777dab0Sopenharmony_ci *
37277777dab0Sopenharmony_ci * Same as java.lang.Character.toUpperCase().
37287777dab0Sopenharmony_ci *
37297777dab0Sopenharmony_ci * This function only returns the simple, single-code point case mapping.
37307777dab0Sopenharmony_ci * Full case mappings should be used whenever possible because they produce
37317777dab0Sopenharmony_ci * better results by working on whole strings.
37327777dab0Sopenharmony_ci * They take into account the string context and the language and can map
37337777dab0Sopenharmony_ci * to a result string with a different length as appropriate.
37347777dab0Sopenharmony_ci * Full case mappings are applied by the string case mapping functions,
37357777dab0Sopenharmony_ci * see ustring.h and the UnicodeString class.
37367777dab0Sopenharmony_ci * See also the User Guide chapter on C/POSIX migration:
37377777dab0Sopenharmony_ci * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
37387777dab0Sopenharmony_ci *
37397777dab0Sopenharmony_ci * @param c the code point to be mapped
37407777dab0Sopenharmony_ci * @return the Simple_Uppercase_Mapping of the code point, if any;
37417777dab0Sopenharmony_ci *         otherwise the code point itself.
37427777dab0Sopenharmony_ci * @stable ICU 2.0
37437777dab0Sopenharmony_ci */
37447777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
37457777dab0Sopenharmony_ciu_toupper(UChar32 c);
37467777dab0Sopenharmony_ci
37477777dab0Sopenharmony_ci/**
37487777dab0Sopenharmony_ci * The given character is mapped to its titlecase equivalent
37497777dab0Sopenharmony_ci * according to UnicodeData.txt;
37507777dab0Sopenharmony_ci * if none is defined, the character itself is returned.
37517777dab0Sopenharmony_ci *
37527777dab0Sopenharmony_ci * Same as java.lang.Character.toTitleCase().
37537777dab0Sopenharmony_ci *
37547777dab0Sopenharmony_ci * This function only returns the simple, single-code point case mapping.
37557777dab0Sopenharmony_ci * Full case mappings should be used whenever possible because they produce
37567777dab0Sopenharmony_ci * better results by working on whole strings.
37577777dab0Sopenharmony_ci * They take into account the string context and the language and can map
37587777dab0Sopenharmony_ci * to a result string with a different length as appropriate.
37597777dab0Sopenharmony_ci * Full case mappings are applied by the string case mapping functions,
37607777dab0Sopenharmony_ci * see ustring.h and the UnicodeString class.
37617777dab0Sopenharmony_ci * See also the User Guide chapter on C/POSIX migration:
37627777dab0Sopenharmony_ci * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
37637777dab0Sopenharmony_ci *
37647777dab0Sopenharmony_ci * @param c the code point to be mapped
37657777dab0Sopenharmony_ci * @return the Simple_Titlecase_Mapping of the code point, if any;
37667777dab0Sopenharmony_ci *         otherwise the code point itself.
37677777dab0Sopenharmony_ci * @stable ICU 2.0
37687777dab0Sopenharmony_ci */
37697777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
37707777dab0Sopenharmony_ciu_totitle(UChar32 c);
37717777dab0Sopenharmony_ci
37727777dab0Sopenharmony_ci/**
37737777dab0Sopenharmony_ci * The given character is mapped to its case folding equivalent according to
37747777dab0Sopenharmony_ci * UnicodeData.txt and CaseFolding.txt;
37757777dab0Sopenharmony_ci * if the character has no case folding equivalent, the character
37767777dab0Sopenharmony_ci * itself is returned.
37777777dab0Sopenharmony_ci *
37787777dab0Sopenharmony_ci * This function only returns the simple, single-code point case mapping.
37797777dab0Sopenharmony_ci * Full case mappings should be used whenever possible because they produce
37807777dab0Sopenharmony_ci * better results by working on whole strings.
37817777dab0Sopenharmony_ci * They take into account the string context and the language and can map
37827777dab0Sopenharmony_ci * to a result string with a different length as appropriate.
37837777dab0Sopenharmony_ci * Full case mappings are applied by the string case mapping functions,
37847777dab0Sopenharmony_ci * see ustring.h and the UnicodeString class.
37857777dab0Sopenharmony_ci * See also the User Guide chapter on C/POSIX migration:
37867777dab0Sopenharmony_ci * https://unicode-org.github.io/icu/userguide/icu/posix#case-mappings
37877777dab0Sopenharmony_ci *
37887777dab0Sopenharmony_ci * @param c the code point to be mapped
37897777dab0Sopenharmony_ci * @param options Either U_FOLD_CASE_DEFAULT or U_FOLD_CASE_EXCLUDE_SPECIAL_I
37907777dab0Sopenharmony_ci * @return the Simple_Case_Folding of the code point, if any;
37917777dab0Sopenharmony_ci *         otherwise the code point itself.
37927777dab0Sopenharmony_ci * @stable ICU 2.0
37937777dab0Sopenharmony_ci */
37947777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
37957777dab0Sopenharmony_ciu_foldCase(UChar32 c, uint32_t options);
37967777dab0Sopenharmony_ci
37977777dab0Sopenharmony_ci/**
37987777dab0Sopenharmony_ci * Returns the decimal digit value of the code point in the
37997777dab0Sopenharmony_ci * specified radix.
38007777dab0Sopenharmony_ci *
38017777dab0Sopenharmony_ci * If the radix is not in the range <code>2<=radix<=36</code> or if the
38027777dab0Sopenharmony_ci * value of <code>c</code> is not a valid digit in the specified
38037777dab0Sopenharmony_ci * radix, <code>-1</code> is returned. A character is a valid digit
38047777dab0Sopenharmony_ci * if at least one of the following is true:
38057777dab0Sopenharmony_ci * <ul>
38067777dab0Sopenharmony_ci * <li>The character has a decimal digit value.
38077777dab0Sopenharmony_ci *     Such characters have the general category "Nd" (decimal digit numbers)
38087777dab0Sopenharmony_ci *     and a Numeric_Type of Decimal.
38097777dab0Sopenharmony_ci *     In this case the value is the character's decimal digit value.</li>
38107777dab0Sopenharmony_ci * <li>The character is one of the uppercase Latin letters
38117777dab0Sopenharmony_ci *     <code>'A'</code> through <code>'Z'</code>.
38127777dab0Sopenharmony_ci *     In this case the value is <code>c-'A'+10</code>.</li>
38137777dab0Sopenharmony_ci * <li>The character is one of the lowercase Latin letters
38147777dab0Sopenharmony_ci *     <code>'a'</code> through <code>'z'</code>.
38157777dab0Sopenharmony_ci *     In this case the value is <code>ch-'a'+10</code>.</li>
38167777dab0Sopenharmony_ci * <li>Latin letters from both the ASCII range (0061..007A, 0041..005A)
38177777dab0Sopenharmony_ci *     as well as from the Fullwidth ASCII range (FF41..FF5A, FF21..FF3A)
38187777dab0Sopenharmony_ci *     are recognized.</li>
38197777dab0Sopenharmony_ci * </ul>
38207777dab0Sopenharmony_ci *
38217777dab0Sopenharmony_ci * Same as java.lang.Character.digit().
38227777dab0Sopenharmony_ci *
38237777dab0Sopenharmony_ci * @param   ch      the code point to be tested.
38247777dab0Sopenharmony_ci * @param   radix   the radix.
38257777dab0Sopenharmony_ci * @return  the numeric value represented by the character in the
38267777dab0Sopenharmony_ci *          specified radix,
38277777dab0Sopenharmony_ci *          or -1 if there is no value or if the value exceeds the radix.
38287777dab0Sopenharmony_ci *
38297777dab0Sopenharmony_ci * @see     UCHAR_NUMERIC_TYPE
38307777dab0Sopenharmony_ci * @see     u_forDigit
38317777dab0Sopenharmony_ci * @see     u_charDigitValue
38327777dab0Sopenharmony_ci * @see     u_isdigit
38337777dab0Sopenharmony_ci * @stable ICU 2.0
38347777dab0Sopenharmony_ci */
38357777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
38367777dab0Sopenharmony_ciu_digit(UChar32 ch, int8_t radix);
38377777dab0Sopenharmony_ci
38387777dab0Sopenharmony_ci/**
38397777dab0Sopenharmony_ci * Determines the character representation for a specific digit in
38407777dab0Sopenharmony_ci * the specified radix. If the value of <code>radix</code> is not a
38417777dab0Sopenharmony_ci * valid radix, or the value of <code>digit</code> is not a valid
38427777dab0Sopenharmony_ci * digit in the specified radix, the null character
38437777dab0Sopenharmony_ci * (<code>U+0000</code>) is returned.
38447777dab0Sopenharmony_ci * <p>
38457777dab0Sopenharmony_ci * The <code>radix</code> argument is valid if it is greater than or
38467777dab0Sopenharmony_ci * equal to 2 and less than or equal to 36.
38477777dab0Sopenharmony_ci * The <code>digit</code> argument is valid if
38487777dab0Sopenharmony_ci * <code>0 <= digit < radix</code>.
38497777dab0Sopenharmony_ci * <p>
38507777dab0Sopenharmony_ci * If the digit is less than 10, then
38517777dab0Sopenharmony_ci * <code>'0' + digit</code> is returned. Otherwise, the value
38527777dab0Sopenharmony_ci * <code>'a' + digit - 10</code> is returned.
38537777dab0Sopenharmony_ci *
38547777dab0Sopenharmony_ci * Same as java.lang.Character.forDigit().
38557777dab0Sopenharmony_ci *
38567777dab0Sopenharmony_ci * @param   digit   the number to convert to a character.
38577777dab0Sopenharmony_ci * @param   radix   the radix.
38587777dab0Sopenharmony_ci * @return  the <code>char</code> representation of the specified digit
38597777dab0Sopenharmony_ci *          in the specified radix.
38607777dab0Sopenharmony_ci *
38617777dab0Sopenharmony_ci * @see     u_digit
38627777dab0Sopenharmony_ci * @see     u_charDigitValue
38637777dab0Sopenharmony_ci * @see     u_isdigit
38647777dab0Sopenharmony_ci * @stable ICU 2.0
38657777dab0Sopenharmony_ci */
38667777dab0Sopenharmony_ciU_CAPI UChar32 U_EXPORT2
38677777dab0Sopenharmony_ciu_forDigit(int32_t digit, int8_t radix);
38687777dab0Sopenharmony_ci
38697777dab0Sopenharmony_ci#if !UCONFIG_NO_NORMALIZATION
38707777dab0Sopenharmony_ci/**
38717777dab0Sopenharmony_ci * Get the FC_NFKC_Closure property string for a character.
38727777dab0Sopenharmony_ci * See Unicode Standard Annex #15 for details, search for "FC_NFKC_Closure"
38737777dab0Sopenharmony_ci * or for "FNC": http://www.unicode.org/reports/tr15/
38747777dab0Sopenharmony_ci *
38757777dab0Sopenharmony_ci * @param c The character (code point) for which to get the FC_NFKC_Closure string.
38767777dab0Sopenharmony_ci *             It must be <code>0<=c<=0x10ffff</code>.
38777777dab0Sopenharmony_ci * @param dest Destination address for copying the string.
38787777dab0Sopenharmony_ci *             The string will be zero-terminated if possible.
38797777dab0Sopenharmony_ci *             If there is no FC_NFKC_Closure string,
38807777dab0Sopenharmony_ci *             then the buffer will be set to the empty string.
38817777dab0Sopenharmony_ci * @param destCapacity <code>==sizeof(dest)</code>
38827777dab0Sopenharmony_ci * @param pErrorCode Pointer to a UErrorCode variable.
38837777dab0Sopenharmony_ci * @return The length of the string, or 0 if there is no FC_NFKC_Closure string for this character.
38847777dab0Sopenharmony_ci *         If the destCapacity is less than or equal to the length, then the buffer
38857777dab0Sopenharmony_ci *         contains the truncated name and the returned length indicates the full
38867777dab0Sopenharmony_ci *         length of the name.
38877777dab0Sopenharmony_ci *         The length does not include the zero-termination.
38887777dab0Sopenharmony_ci *
38897777dab0Sopenharmony_ci * @stable ICU 2.2
38907777dab0Sopenharmony_ci */
38917777dab0Sopenharmony_ciU_CAPI int32_t U_EXPORT2
38927777dab0Sopenharmony_ciu_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);
38937777dab0Sopenharmony_ci
38947777dab0Sopenharmony_ci#endif
38957777dab0Sopenharmony_ci
38967777dab0Sopenharmony_ci
38977777dab0Sopenharmony_ciU_CDECL_END
38987777dab0Sopenharmony_ci
38997777dab0Sopenharmony_ci#endif /*_UCHAR*/
39007777dab0Sopenharmony_ci/*eof*/
3901