ICU 52.1  52.1
uchar.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 1997-2013, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 *
7 * File UCHAR.H
8 *
9 * Modification History:
10 *
11 * Date Name Description
12 * 04/02/97 aliu Creation.
13 * 03/29/99 helena Updated for C APIs.
14 * 4/15/99 Madhu Updated for C Implementation and Javadoc
15 * 5/20/99 Madhu Added the function u_getVersion()
16 * 8/19/1999 srl Upgraded scripts to Unicode 3.0
17 * 8/27/1999 schererm UCharDirection constants: U_...
18 * 11/11/1999 weiv added u_isalnum(), cleaned comments
19 * 01/11/2000 helena Renamed u_getVersion to u_getUnicodeVersion().
20 ******************************************************************************
21 */
22 
23 #ifndef UCHAR_H
24 #define UCHAR_H
25 
26 #include "unicode/utypes.h"
27 
29 
30 /*==========================================================================*/
31 /* Unicode version number */
32 /*==========================================================================*/
42 #define U_UNICODE_VERSION "6.3"
43 
124 #define UCHAR_MIN_VALUE 0
125 
134 #define UCHAR_MAX_VALUE 0x10ffff
135 
140 #define U_MASK(x) ((uint32_t)1<<(x))
141 
161 typedef enum UProperty {
162  /*
163  * Note: UProperty constants are parsed by preparseucd.py.
164  * It matches lines like
165  * UCHAR_<Unicode property name>=<integer>,
166  */
167 
168  /* Note: Place UCHAR_ALPHABETIC before UCHAR_BINARY_START so that
169  debuggers display UCHAR_ALPHABETIC as the symbolic name for 0,
170  rather than UCHAR_BINARY_START. Likewise for other *_START
171  identifiers. */
172 
402 
410  UCHAR_BLOCK=0x1001,
438  UCHAR_SCRIPT=0x100A,
490 
504 
512 
515  UCHAR_AGE=0x4000,
524 #ifndef U_HIDE_DEPRECATED_API
525 
528 #endif /* U_HIDE_DEPRECATED_API */
529 
534  UCHAR_NAME=0x4005,
550 #ifndef U_HIDE_DEPRECATED_API
551 
556 #endif /* U_HIDE_DEPRECATED_API */
557 
565 
579 } UProperty;
580 
586 typedef enum UCharCategory
587 {
588  /*
589  * Note: UCharCategory constants and their API comments are parsed by preparseucd.py.
590  * It matches pairs of lines like
591  * / ** <Unicode 2-letter General_Category value> comment... * /
592  * U_<[A-Z_]+> = <integer>,
593  */
594 
659 } UCharCategory;
660 
675 #define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES)
676 
678 #define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER)
679 
680 #define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER)
681 
682 #define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER)
683 
684 #define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER)
685 
686 #define U_GC_LO_MASK U_MASK(U_OTHER_LETTER)
687 
689 #define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK)
690 
691 #define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK)
692 
693 #define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK)
694 
696 #define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER)
697 
698 #define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER)
699 
700 #define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER)
701 
703 #define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR)
704 
705 #define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR)
706 
707 #define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR)
708 
710 #define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR)
711 
712 #define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR)
713 
714 #define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR)
715 
716 #define U_GC_CS_MASK U_MASK(U_SURROGATE)
717 
719 #define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION)
720 
721 #define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION)
722 
723 #define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION)
724 
725 #define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION)
726 
727 #define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION)
728 
730 #define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL)
731 
732 #define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL)
733 
734 #define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL)
735 
736 #define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL)
737 
739 #define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION)
740 
741 #define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION)
742 
743 
745 #define U_GC_L_MASK \
746  (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK)
747 
749 #define U_GC_LC_MASK \
750  (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK)
751 
753 #define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK)
754 
756 #define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK)
757 
759 #define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK)
760 
762 #define U_GC_C_MASK \
763  (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK)
764 
766 #define U_GC_P_MASK \
767  (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \
768  U_GC_PI_MASK|U_GC_PF_MASK)
769 
771 #define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK)
772 
777 typedef enum UCharDirection {
778  /*
779  * Note: UCharDirection constants and their API comments are parsed by preparseucd.py.
780  * It matches pairs of lines like
781  * / ** <Unicode 1..3-letter Bidi_Class value> comment... * /
782  * U_<[A-Z_]+> = <integer>,
783  */
784 
834 
842  /*
843  * Note: UBidiPairedBracketType constants are parsed by preparseucd.py.
844  * It matches lines like
845  * U_BPT_<Unicode Bidi_Paired_Bracket_Type value name>
846  */
847 
855  U_BPT_COUNT /* 3 */
857 
863  /*
864  * Note: UBlockCode constants are parsed by preparseucd.py.
865  * It matches lines like
866  * UBLOCK_<Unicode Block value name> = <integer>,
867  */
868 
870  UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */
871 
873  UBLOCK_BASIC_LATIN = 1, /*[0000]*/
874 
877 
879  UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/
880 
882  UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/
883 
885  UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/
886 
889 
892 
897  UBLOCK_GREEK =8, /*[0370]*/
898 
900  UBLOCK_CYRILLIC =9, /*[0400]*/
901 
903  UBLOCK_ARMENIAN =10, /*[0530]*/
904 
906  UBLOCK_HEBREW =11, /*[0590]*/
907 
909  UBLOCK_ARABIC =12, /*[0600]*/
910 
912  UBLOCK_SYRIAC =13, /*[0700]*/
913 
915  UBLOCK_THAANA =14, /*[0780]*/
916 
918  UBLOCK_DEVANAGARI =15, /*[0900]*/
919 
921  UBLOCK_BENGALI =16, /*[0980]*/
922 
924  UBLOCK_GURMUKHI =17, /*[0A00]*/
925 
927  UBLOCK_GUJARATI =18, /*[0A80]*/
928 
930  UBLOCK_ORIYA =19, /*[0B00]*/
931 
933  UBLOCK_TAMIL =20, /*[0B80]*/
934 
936  UBLOCK_TELUGU =21, /*[0C00]*/
937 
939  UBLOCK_KANNADA =22, /*[0C80]*/
940 
942  UBLOCK_MALAYALAM =23, /*[0D00]*/
943 
945  UBLOCK_SINHALA =24, /*[0D80]*/
946 
948  UBLOCK_THAI =25, /*[0E00]*/
949 
951  UBLOCK_LAO =26, /*[0E80]*/
952 
954  UBLOCK_TIBETAN =27, /*[0F00]*/
955 
957  UBLOCK_MYANMAR =28, /*[1000]*/
958 
960  UBLOCK_GEORGIAN =29, /*[10A0]*/
961 
963  UBLOCK_HANGUL_JAMO =30, /*[1100]*/
964 
966  UBLOCK_ETHIOPIC =31, /*[1200]*/
967 
969  UBLOCK_CHEROKEE =32, /*[13A0]*/
970 
973 
975  UBLOCK_OGHAM =34, /*[1680]*/
976 
978  UBLOCK_RUNIC =35, /*[16A0]*/
979 
981  UBLOCK_KHMER =36, /*[1780]*/
982 
984  UBLOCK_MONGOLIAN =37, /*[1800]*/
985 
988 
990  UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/
991 
994 
997 
999  UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/
1000 
1006 
1009 
1011  UBLOCK_NUMBER_FORMS =45, /*[2150]*/
1012 
1014  UBLOCK_ARROWS =46, /*[2190]*/
1015 
1018 
1021 
1023  UBLOCK_CONTROL_PICTURES =49, /*[2400]*/
1024 
1027 
1030 
1032  UBLOCK_BOX_DRAWING =52, /*[2500]*/
1033 
1035  UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/
1036 
1038  UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/
1039 
1042 
1044  UBLOCK_DINGBATS =56, /*[2700]*/
1045 
1047  UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/
1048 
1051 
1053  UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/
1054 
1057 
1060 
1062  UBLOCK_HIRAGANA =62, /*[3040]*/
1063 
1065  UBLOCK_KATAKANA =63, /*[30A0]*/
1066 
1068  UBLOCK_BOPOMOFO =64, /*[3100]*/
1069 
1072 
1074  UBLOCK_KANBUN =66, /*[3190]*/
1075 
1078 
1081 
1084 
1087 
1090 
1092  UBLOCK_YI_SYLLABLES =72, /*[A000]*/
1093 
1095  UBLOCK_YI_RADICALS =73, /*[A490]*/
1096 
1098  UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/
1099 
1101  UBLOCK_HIGH_SURROGATES =75, /*[D800]*/
1102 
1105 
1107  UBLOCK_LOW_SURROGATES =77, /*[DC00]*/
1108 
1118  UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/
1129 
1132 
1135 
1138 
1141 
1144 
1147 
1150 
1152  UBLOCK_SPECIALS =86, /*[FFF0]*/
1153 
1156 
1157  /* New blocks in Unicode 3.1 */
1158 
1160  UBLOCK_OLD_ITALIC = 88, /*[10300]*/
1162  UBLOCK_GOTHIC = 89, /*[10330]*/
1164  UBLOCK_DESERET = 90, /*[10400]*/
1168  UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/
1176  UBLOCK_TAGS = 96, /*[E0000]*/
1177 
1178  /* New blocks in Unicode 3.2 */
1179 
1188  UBLOCK_TAGALOG = 98, /*[1700]*/
1190  UBLOCK_HANUNOO = 99, /*[1720]*/
1192  UBLOCK_BUHID = 100, /*[1740]*/
1194  UBLOCK_TAGBANWA = 101, /*[1760]*/
1208  UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/
1213 
1214  /* New blocks in Unicode 4 */
1215 
1217  UBLOCK_LIMBU = 111, /*[1900]*/
1219  UBLOCK_TAI_LE = 112, /*[1950]*/
1221  UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/
1223  UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/
1229  UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/
1231  UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/
1233  UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/
1235  UBLOCK_UGARITIC = 120, /*[10380]*/
1237  UBLOCK_SHAVIAN = 121, /*[10450]*/
1239  UBLOCK_OSMANYA = 122, /*[10480]*/
1241  UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/
1243  UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/
1246 
1247  /* New blocks in Unicode 4.1 */
1248 
1252  UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/
1254  UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/
1256  UBLOCK_BUGINESE = 129, /*[1A00]*/
1258  UBLOCK_CJK_STROKES = 130, /*[31C0]*/
1262  UBLOCK_COPTIC = 132, /*[2C80]*/
1264  UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/
1266  UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/
1268  UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/
1270  UBLOCK_GLAGOLITIC = 136, /*[2C00]*/
1272  UBLOCK_KHAROSHTHI = 137, /*[10A00]*/
1276  UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/
1278  UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/
1284  UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/
1286  UBLOCK_TIFINAGH = 144, /*[2D30]*/
1288  UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/
1289 
1290  /* New blocks in Unicode 5.0 */
1291 
1293  UBLOCK_NKO = 146, /*[07C0]*/
1295  UBLOCK_BALINESE = 147, /*[1B00]*/
1297  UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/
1299  UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/
1301  UBLOCK_PHAGS_PA = 150, /*[A840]*/
1303  UBLOCK_PHOENICIAN = 151, /*[10900]*/
1305  UBLOCK_CUNEIFORM = 152, /*[12000]*/
1309  UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/
1310 
1311  /* New blocks in Unicode 5.1 */
1312 
1314  UBLOCK_SUNDANESE = 155, /*[1B80]*/
1316  UBLOCK_LEPCHA = 156, /*[1C00]*/
1318  UBLOCK_OL_CHIKI = 157, /*[1C50]*/
1320  UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/
1322  UBLOCK_VAI = 159, /*[A500]*/
1324  UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/
1326  UBLOCK_SAURASHTRA = 161, /*[A880]*/
1328  UBLOCK_KAYAH_LI = 162, /*[A900]*/
1330  UBLOCK_REJANG = 163, /*[A930]*/
1332  UBLOCK_CHAM = 164, /*[AA00]*/
1334  UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/
1336  UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/
1338  UBLOCK_LYCIAN = 167, /*[10280]*/
1340  UBLOCK_CARIAN = 168, /*[102A0]*/
1342  UBLOCK_LYDIAN = 169, /*[10920]*/
1344  UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/
1346  UBLOCK_DOMINO_TILES = 171, /*[1F030]*/
1347 
1348  /* New blocks in Unicode 5.2 */
1349 
1351  UBLOCK_SAMARITAN = 172, /*[0800]*/
1355  UBLOCK_TAI_THAM = 174, /*[1A20]*/
1357  UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/
1359  UBLOCK_LISU = 176, /*[A4D0]*/
1361  UBLOCK_BAMUM = 177, /*[A6A0]*/
1365  UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/
1369  UBLOCK_JAVANESE = 181, /*[A980]*/
1371  UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/
1373  UBLOCK_TAI_VIET = 183, /*[AA80]*/
1375  UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/
1379  UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/
1381  UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/
1383  UBLOCK_AVESTAN = 188, /*[10B00]*/
1387  UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/
1389  UBLOCK_OLD_TURKIC = 191, /*[10C00]*/
1391  UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/
1393  UBLOCK_KAITHI = 193, /*[11080]*/
1395  UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/
1402 
1403  /* New blocks in Unicode 6.0 */
1404 
1406  UBLOCK_MANDAIC = 198, /*[0840]*/
1408  UBLOCK_BATAK = 199, /*[1BC0]*/
1410  UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/
1412  UBLOCK_BRAHMI = 201, /*[11000]*/
1414  UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/
1416  UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/
1418  UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/
1422  UBLOCK_EMOTICONS = 206, /*[1F600]*/
1426  UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/
1429 
1430  /* New blocks in Unicode 6.1 */
1431 
1433  UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/
1437  UBLOCK_CHAKMA = 212, /*[11100]*/
1441  UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/
1443  UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/
1445  UBLOCK_MIAO = 216, /*[16F00]*/
1447  UBLOCK_SHARADA = 217, /*[11180]*/
1449  UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/
1453  UBLOCK_TAKRI = 220, /*[11680]*/
1454 
1457 
1460 };
1461 
1463 typedef enum UBlockCode UBlockCode;
1464 
1472 typedef enum UEastAsianWidth {
1473  /*
1474  * Note: UEastAsianWidth constants are parsed by preparseucd.py.
1475  * It matches lines like
1476  * U_EA_<Unicode East_Asian_Width value name>
1477  */
1478 
1479  U_EA_NEUTRAL, /*[N]*/
1480  U_EA_AMBIGUOUS, /*[A]*/
1481  U_EA_HALFWIDTH, /*[H]*/
1482  U_EA_FULLWIDTH, /*[F]*/
1483  U_EA_NARROW, /*[Na]*/
1484  U_EA_WIDE, /*[W]*/
1485  U_EA_COUNT
1486 } UEastAsianWidth;
1487 
1499 typedef enum UCharNameChoice {
1502 #ifndef U_HIDE_DEPRECATED_API
1503 
1509 #endif /* U_HIDE_DEPRECATED_API */
1510 
1516 } UCharNameChoice;
1517 
1531 typedef enum UPropertyNameChoice {
1532  U_SHORT_PROPERTY_NAME,
1533  U_LONG_PROPERTY_NAME,
1534  U_PROPERTY_NAME_CHOICE_COUNT
1536 
1543 typedef enum UDecompositionType {
1544  /*
1545  * Note: UDecompositionType constants are parsed by preparseucd.py.
1546  * It matches lines like
1547  * U_DT_<Unicode Decomposition_Type value name>
1548  */
1549 
1550  U_DT_NONE, /*[none]*/
1551  U_DT_CANONICAL, /*[can]*/
1552  U_DT_COMPAT, /*[com]*/
1553  U_DT_CIRCLE, /*[enc]*/
1554  U_DT_FINAL, /*[fin]*/
1555  U_DT_FONT, /*[font]*/
1556  U_DT_FRACTION, /*[fra]*/
1557  U_DT_INITIAL, /*[init]*/
1558  U_DT_ISOLATED, /*[iso]*/
1559  U_DT_MEDIAL, /*[med]*/
1560  U_DT_NARROW, /*[nar]*/
1561  U_DT_NOBREAK, /*[nb]*/
1562  U_DT_SMALL, /*[sml]*/
1563  U_DT_SQUARE, /*[sqr]*/
1564  U_DT_SUB, /*[sub]*/
1565  U_DT_SUPER, /*[sup]*/
1566  U_DT_VERTICAL, /*[vert]*/
1567  U_DT_WIDE, /*[wide]*/
1568  U_DT_COUNT /* 18 */
1570 
1577 typedef enum UJoiningType {
1578  /*
1579  * Note: UJoiningType constants are parsed by preparseucd.py.
1580  * It matches lines like
1581  * U_JT_<Unicode Joining_Type value name>
1582  */
1583 
1584  U_JT_NON_JOINING, /*[U]*/
1585  U_JT_JOIN_CAUSING, /*[C]*/
1586  U_JT_DUAL_JOINING, /*[D]*/
1587  U_JT_LEFT_JOINING, /*[L]*/
1588  U_JT_RIGHT_JOINING, /*[R]*/
1589  U_JT_TRANSPARENT, /*[T]*/
1590  U_JT_COUNT /* 6 */
1591 } UJoiningType;
1592 
1599 typedef enum UJoiningGroup {
1600  /*
1601  * Note: UJoiningGroup constants are parsed by preparseucd.py.
1602  * It matches lines like
1603  * U_JG_<Unicode Joining_Group value name>
1604  */
1605 
1606  U_JG_NO_JOINING_GROUP,
1607  U_JG_AIN,
1608  U_JG_ALAPH,
1609  U_JG_ALEF,
1610  U_JG_BEH,
1611  U_JG_BETH,
1612  U_JG_DAL,
1613  U_JG_DALATH_RISH,
1614  U_JG_E,
1615  U_JG_FEH,
1616  U_JG_FINAL_SEMKATH,
1617  U_JG_GAF,
1618  U_JG_GAMAL,
1619  U_JG_HAH,
1621  U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL,
1622  U_JG_HE,
1623  U_JG_HEH,
1624  U_JG_HEH_GOAL,
1625  U_JG_HETH,
1626  U_JG_KAF,
1627  U_JG_KAPH,
1628  U_JG_KNOTTED_HEH,
1629  U_JG_LAM,
1630  U_JG_LAMADH,
1631  U_JG_MEEM,
1632  U_JG_MIM,
1633  U_JG_NOON,
1634  U_JG_NUN,
1635  U_JG_PE,
1636  U_JG_QAF,
1637  U_JG_QAPH,
1638  U_JG_REH,
1639  U_JG_REVERSED_PE,
1640  U_JG_SAD,
1641  U_JG_SADHE,
1642  U_JG_SEEN,
1643  U_JG_SEMKATH,
1644  U_JG_SHIN,
1645  U_JG_SWASH_KAF,
1646  U_JG_SYRIAC_WAW,
1647  U_JG_TAH,
1648  U_JG_TAW,
1649  U_JG_TEH_MARBUTA,
1650  U_JG_TETH,
1651  U_JG_WAW,
1652  U_JG_YEH,
1653  U_JG_YEH_BARREE,
1654  U_JG_YEH_WITH_TAIL,
1655  U_JG_YUDH,
1656  U_JG_YUDH_HE,
1657  U_JG_ZAIN,
1665  U_JG_COUNT
1666 } UJoiningGroup;
1667 
1675  /*
1676  * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py.
1677  * It matches lines like
1678  * U_GCB_<Unicode Grapheme_Cluster_Break value name>
1679  */
1680 
1681  U_GCB_OTHER = 0, /*[XX]*/
1682  U_GCB_CONTROL = 1, /*[CN]*/
1683  U_GCB_CR = 2, /*[CR]*/
1684  U_GCB_EXTEND = 3, /*[EX]*/
1685  U_GCB_L = 4, /*[L]*/
1686  U_GCB_LF = 5, /*[LF]*/
1687  U_GCB_LV = 6, /*[LV]*/
1688  U_GCB_LVT = 7, /*[LVT]*/
1689  U_GCB_T = 8, /*[T]*/
1690  U_GCB_V = 9, /*[V]*/
1691  U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1692  U_GCB_PREPEND = 11, /*[PP]*/
1693  U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1694  U_GCB_COUNT = 13
1696 
1704 typedef enum UWordBreakValues {
1705  /*
1706  * Note: UWordBreakValues constants are parsed by preparseucd.py.
1707  * It matches lines like
1708  * U_WB_<Unicode Word_Break value name>
1709  */
1710 
1711  U_WB_OTHER = 0, /*[XX]*/
1712  U_WB_ALETTER = 1, /*[LE]*/
1713  U_WB_FORMAT = 2, /*[FO]*/
1714  U_WB_KATAKANA = 3, /*[KA]*/
1715  U_WB_MIDLETTER = 4, /*[ML]*/
1716  U_WB_MIDNUM = 5, /*[MN]*/
1717  U_WB_NUMERIC = 6, /*[NU]*/
1718  U_WB_EXTENDNUMLET = 7, /*[EX]*/
1719  U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1720  U_WB_EXTEND = 9, /*[Extend]*/
1721  U_WB_LF = 10, /*[LF]*/
1722  U_WB_MIDNUMLET =11, /*[MB]*/
1723  U_WB_NEWLINE =12, /*[NL]*/
1724  U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1725  U_WB_HEBREW_LETTER = 14, /*[HL]*/ /* from here on: new in Unicode 6.3/ICU 52 */
1726  U_WB_SINGLE_QUOTE = 15, /*[SQ]*/
1727  U_WB_DOUBLE_QUOTE = 16, /*[DQ]*/
1728  U_WB_COUNT = 17
1730 
1737 typedef enum USentenceBreak {
1738  /*
1739  * Note: USentenceBreak constants are parsed by preparseucd.py.
1740  * It matches lines like
1741  * U_SB_<Unicode Sentence_Break value name>
1742  */
1743 
1744  U_SB_OTHER = 0, /*[XX]*/
1745  U_SB_ATERM = 1, /*[AT]*/
1746  U_SB_CLOSE = 2, /*[CL]*/
1747  U_SB_FORMAT = 3, /*[FO]*/
1748  U_SB_LOWER = 4, /*[LO]*/
1749  U_SB_NUMERIC = 5, /*[NU]*/
1750  U_SB_OLETTER = 6, /*[LE]*/
1751  U_SB_SEP = 7, /*[SE]*/
1752  U_SB_SP = 8, /*[SP]*/
1753  U_SB_STERM = 9, /*[ST]*/
1754  U_SB_UPPER = 10, /*[UP]*/
1755  U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1756  U_SB_EXTEND = 12, /*[EX]*/
1757  U_SB_LF = 13, /*[LF]*/
1758  U_SB_SCONTINUE = 14, /*[SC]*/
1759  U_SB_COUNT = 15
1760 } USentenceBreak;
1761 
1768 typedef enum ULineBreak {
1769  /*
1770  * Note: ULineBreak constants are parsed by preparseucd.py.
1771  * It matches lines like
1772  * U_LB_<Unicode Line_Break value name>
1773  */
1774 
1775  U_LB_UNKNOWN = 0, /*[XX]*/
1776  U_LB_AMBIGUOUS = 1, /*[AI]*/
1777  U_LB_ALPHABETIC = 2, /*[AL]*/
1778  U_LB_BREAK_BOTH = 3, /*[B2]*/
1779  U_LB_BREAK_AFTER = 4, /*[BA]*/
1780  U_LB_BREAK_BEFORE = 5, /*[BB]*/
1781  U_LB_MANDATORY_BREAK = 6, /*[BK]*/
1782  U_LB_CONTINGENT_BREAK = 7, /*[CB]*/
1783  U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/
1784  U_LB_COMBINING_MARK = 9, /*[CM]*/
1785  U_LB_CARRIAGE_RETURN = 10, /*[CR]*/
1786  U_LB_EXCLAMATION = 11, /*[EX]*/
1787  U_LB_GLUE = 12, /*[GL]*/
1788  U_LB_HYPHEN = 13, /*[HY]*/
1789  U_LB_IDEOGRAPHIC = 14, /*[ID]*/
1791  U_LB_INSEPARABLE = 15, /*[IN]*/
1792  U_LB_INSEPERABLE = U_LB_INSEPARABLE,
1793  U_LB_INFIX_NUMERIC = 16, /*[IS]*/
1794  U_LB_LINE_FEED = 17, /*[LF]*/
1795  U_LB_NONSTARTER = 18, /*[NS]*/
1796  U_LB_NUMERIC = 19, /*[NU]*/
1797  U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/
1798  U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/
1799  U_LB_PREFIX_NUMERIC = 22, /*[PR]*/
1800  U_LB_QUOTATION = 23, /*[QU]*/
1801  U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/
1802  U_LB_SURROGATE = 25, /*[SG]*/
1803  U_LB_SPACE = 26, /*[SP]*/
1804  U_LB_BREAK_SYMBOLS = 27, /*[SY]*/
1805  U_LB_ZWSPACE = 28, /*[ZW]*/
1806  U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */
1807  U_LB_WORD_JOINER = 30, /*[WJ]*/
1808  U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */
1809  U_LB_H3 = 32, /*[H3]*/
1810  U_LB_JL = 33, /*[JL]*/
1811  U_LB_JT = 34, /*[JT]*/
1812  U_LB_JV = 35, /*[JV]*/
1813  U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */
1814  U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */
1815  U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */
1816  U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1817  U_LB_COUNT = 40
1818 } ULineBreak;
1819 
1826 typedef enum UNumericType {
1827  /*
1828  * Note: UNumericType constants are parsed by preparseucd.py.
1829  * It matches lines like
1830  * U_NT_<Unicode Numeric_Type value name>
1831  */
1832 
1833  U_NT_NONE, /*[None]*/
1834  U_NT_DECIMAL, /*[de]*/
1835  U_NT_DIGIT, /*[di]*/
1836  U_NT_NUMERIC, /*[nu]*/
1837  U_NT_COUNT
1838 } UNumericType;
1839 
1846 typedef enum UHangulSyllableType {
1847  /*
1848  * Note: UHangulSyllableType constants are parsed by preparseucd.py.
1849  * It matches lines like
1850  * U_HST_<Unicode Hangul_Syllable_Type value name>
1851  */
1852 
1853  U_HST_NOT_APPLICABLE, /*[NA]*/
1854  U_HST_LEADING_JAMO, /*[L]*/
1855  U_HST_VOWEL_JAMO, /*[V]*/
1856  U_HST_TRAILING_JAMO, /*[T]*/
1857  U_HST_LV_SYLLABLE, /*[LV]*/
1858  U_HST_LVT_SYLLABLE, /*[LVT]*/
1859  U_HST_COUNT
1861 
1888 U_STABLE UBool U_EXPORT2
1890 
1903 U_STABLE UBool U_EXPORT2
1905 
1918 U_STABLE UBool U_EXPORT2
1920 
1933 U_STABLE UBool U_EXPORT2
1935 
1954 U_STABLE UBool U_EXPORT2
1956 
1994 U_STABLE int32_t U_EXPORT2
1996 
2015 U_STABLE int32_t U_EXPORT2
2017 
2044 U_STABLE int32_t U_EXPORT2
2046 
2069 U_STABLE double U_EXPORT2
2071 
2079 #define U_NO_NUMERIC_VALUE ((double)-123456789.)
2080 
2104 U_STABLE UBool U_EXPORT2
2105 u_islower(UChar32 c);
2106 
2131 U_STABLE UBool U_EXPORT2
2132 u_isupper(UChar32 c);
2133 
2148 U_STABLE UBool U_EXPORT2
2149 u_istitle(UChar32 c);
2150 
2169 U_STABLE UBool U_EXPORT2
2170 u_isdigit(UChar32 c);
2171 
2190 U_STABLE UBool U_EXPORT2
2191 u_isalpha(UChar32 c);
2192 
2211 U_STABLE UBool U_EXPORT2
2212 u_isalnum(UChar32 c);
2213 
2234 U_STABLE UBool U_EXPORT2
2235 u_isxdigit(UChar32 c);
2236 
2250 U_STABLE UBool U_EXPORT2
2251 u_ispunct(UChar32 c);
2252 
2269 U_STABLE UBool U_EXPORT2
2270 u_isgraph(UChar32 c);
2271 
2298 U_STABLE UBool U_EXPORT2
2299 u_isblank(UChar32 c);
2300 
2323 U_STABLE UBool U_EXPORT2
2324 u_isdefined(UChar32 c);
2325 
2344 U_STABLE UBool U_EXPORT2
2345 u_isspace(UChar32 c);
2346 
2365 U_STABLE UBool U_EXPORT2
2367 
2405 U_STABLE UBool U_EXPORT2
2407 
2429 U_STABLE UBool U_EXPORT2
2430 u_iscntrl(UChar32 c);
2431 
2444 U_STABLE UBool U_EXPORT2
2446 
2462 U_STABLE UBool U_EXPORT2
2463 u_isprint(UChar32 c);
2464 
2483 U_STABLE UBool U_EXPORT2
2484 u_isbase(UChar32 c);
2485 
2502 U_STABLE UCharDirection U_EXPORT2
2504 
2520 U_STABLE UBool U_EXPORT2
2522 
2542 U_STABLE UChar32 U_EXPORT2
2544 
2561 U_STABLE UChar32 U_EXPORT2
2563 
2575 U_STABLE int8_t U_EXPORT2
2576 u_charType(UChar32 c);
2577 
2591 #define U_GET_GC_MASK(c) U_MASK(u_charType(c))
2592 
2610 typedef UBool U_CALLCONV
2611 UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type);
2612 
2632 U_STABLE void U_EXPORT2
2633 u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);
2634 
2635 #if !UCONFIG_NO_NORMALIZATION
2636 
2644 U_STABLE uint8_t U_EXPORT2
2646 
2647 #endif
2648 
2672 U_STABLE int32_t U_EXPORT2
2674 
2684 U_STABLE UBlockCode U_EXPORT2
2686 
2719 U_STABLE int32_t U_EXPORT2
2720 u_charName(UChar32 code, UCharNameChoice nameChoice,
2721  char *buffer, int32_t bufferLength,
2722  UErrorCode *pErrorCode);
2723 
2724 #ifndef U_HIDE_DEPRECATED_API
2725 
2743 U_STABLE int32_t U_EXPORT2
2745  char *dest, int32_t destCapacity,
2746  UErrorCode *pErrorCode);
2747 #endif /* U_HIDE_DEPRECATED_API */
2748 
2769 U_STABLE UChar32 U_EXPORT2
2770 u_charFromName(UCharNameChoice nameChoice,
2771  const char *name,
2772  UErrorCode *pErrorCode);
2773 
2791 typedef UBool U_CALLCONV UEnumCharNamesFn(void *context,
2792  UChar32 code,
2793  UCharNameChoice nameChoice,
2794  const char *name,
2795  int32_t length);
2796 
2818 U_STABLE void U_EXPORT2
2819 u_enumCharNames(UChar32 start, UChar32 limit,
2820  UEnumCharNamesFn *fn,
2821  void *context,
2822  UCharNameChoice nameChoice,
2823  UErrorCode *pErrorCode);
2824 
2856 U_STABLE const char* U_EXPORT2
2857 u_getPropertyName(UProperty property,
2858  UPropertyNameChoice nameChoice);
2859 
2879 U_STABLE UProperty U_EXPORT2
2880 u_getPropertyEnum(const char* alias);
2881 
2929 U_STABLE const char* U_EXPORT2
2931  int32_t value,
2932  UPropertyNameChoice nameChoice);
2933 
2965 U_STABLE int32_t U_EXPORT2
2967  const char* alias);
2968 
2986 U_STABLE UBool U_EXPORT2
2987 u_isIDStart(UChar32 c);
2988 
3010 U_STABLE UBool U_EXPORT2
3011 u_isIDPart(UChar32 c);
3012 
3033 U_STABLE UBool U_EXPORT2
3035 
3052 U_STABLE UBool U_EXPORT2
3054 
3073 U_STABLE UBool U_EXPORT2
3075 
3098 U_STABLE UChar32 U_EXPORT2
3099 u_tolower(UChar32 c);
3100 
3123 U_STABLE UChar32 U_EXPORT2
3124 u_toupper(UChar32 c);
3125 
3148 U_STABLE UChar32 U_EXPORT2
3149 u_totitle(UChar32 c);
3150 
3152 #define U_FOLD_CASE_DEFAULT 0
3153 
3170 #define U_FOLD_CASE_EXCLUDE_SPECIAL_I 1
3171 
3194 U_STABLE UChar32 U_EXPORT2
3195 u_foldCase(UChar32 c, uint32_t options);
3196 
3235 U_STABLE int32_t U_EXPORT2
3236 u_digit(UChar32 ch, int8_t radix);
3237 
3266 U_STABLE UChar32 U_EXPORT2
3267 u_forDigit(int32_t digit, int8_t radix);
3268 
3283 U_STABLE void U_EXPORT2
3284 u_charAge(UChar32 c, UVersionInfo versionArray);
3285 
3297 U_STABLE void U_EXPORT2
3298 u_getUnicodeVersion(UVersionInfo versionArray);
3299 
3300 #if !UCONFIG_NO_NORMALIZATION
3301 
3322 U_STABLE int32_t U_EXPORT2
3323 u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);
3324 
3325 #endif
3326 
3327 
3329 
3330 #endif /*_UCHAR*/
3331 /*eof*/