ICU 50.1.2  50.1.2
uchar.h
Go to the documentation of this file.
1 /*
2 **********************************************************************
3 * Copyright (C) 1997-2012, 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.2"
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,
485 
499 
507 
510  UCHAR_AGE=0x4000,
527  UCHAR_NAME=0x4005,
568 } UProperty;
569 
575 typedef enum UCharCategory
576 {
577  /*
578  * Note: UCharCategory constants and their API comments are parsed by preparseucd.py.
579  * It matches pairs of lines like
580  * / ** <Unicode 2-letter General_Category value> comment... * /
581  * U_<[A-Z_]+> = <integer>,
582  */
583 
648 } UCharCategory;
649 
664 #define U_GC_CN_MASK U_MASK(U_GENERAL_OTHER_TYPES)
665 
667 #define U_GC_LU_MASK U_MASK(U_UPPERCASE_LETTER)
668 
669 #define U_GC_LL_MASK U_MASK(U_LOWERCASE_LETTER)
670 
671 #define U_GC_LT_MASK U_MASK(U_TITLECASE_LETTER)
672 
673 #define U_GC_LM_MASK U_MASK(U_MODIFIER_LETTER)
674 
675 #define U_GC_LO_MASK U_MASK(U_OTHER_LETTER)
676 
678 #define U_GC_MN_MASK U_MASK(U_NON_SPACING_MARK)
679 
680 #define U_GC_ME_MASK U_MASK(U_ENCLOSING_MARK)
681 
682 #define U_GC_MC_MASK U_MASK(U_COMBINING_SPACING_MARK)
683 
685 #define U_GC_ND_MASK U_MASK(U_DECIMAL_DIGIT_NUMBER)
686 
687 #define U_GC_NL_MASK U_MASK(U_LETTER_NUMBER)
688 
689 #define U_GC_NO_MASK U_MASK(U_OTHER_NUMBER)
690 
692 #define U_GC_ZS_MASK U_MASK(U_SPACE_SEPARATOR)
693 
694 #define U_GC_ZL_MASK U_MASK(U_LINE_SEPARATOR)
695 
696 #define U_GC_ZP_MASK U_MASK(U_PARAGRAPH_SEPARATOR)
697 
699 #define U_GC_CC_MASK U_MASK(U_CONTROL_CHAR)
700 
701 #define U_GC_CF_MASK U_MASK(U_FORMAT_CHAR)
702 
703 #define U_GC_CO_MASK U_MASK(U_PRIVATE_USE_CHAR)
704 
705 #define U_GC_CS_MASK U_MASK(U_SURROGATE)
706 
708 #define U_GC_PD_MASK U_MASK(U_DASH_PUNCTUATION)
709 
710 #define U_GC_PS_MASK U_MASK(U_START_PUNCTUATION)
711 
712 #define U_GC_PE_MASK U_MASK(U_END_PUNCTUATION)
713 
714 #define U_GC_PC_MASK U_MASK(U_CONNECTOR_PUNCTUATION)
715 
716 #define U_GC_PO_MASK U_MASK(U_OTHER_PUNCTUATION)
717 
719 #define U_GC_SM_MASK U_MASK(U_MATH_SYMBOL)
720 
721 #define U_GC_SC_MASK U_MASK(U_CURRENCY_SYMBOL)
722 
723 #define U_GC_SK_MASK U_MASK(U_MODIFIER_SYMBOL)
724 
725 #define U_GC_SO_MASK U_MASK(U_OTHER_SYMBOL)
726 
728 #define U_GC_PI_MASK U_MASK(U_INITIAL_PUNCTUATION)
729 
730 #define U_GC_PF_MASK U_MASK(U_FINAL_PUNCTUATION)
731 
732 
734 #define U_GC_L_MASK \
735  (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK|U_GC_LM_MASK|U_GC_LO_MASK)
736 
738 #define U_GC_LC_MASK \
739  (U_GC_LU_MASK|U_GC_LL_MASK|U_GC_LT_MASK)
740 
742 #define U_GC_M_MASK (U_GC_MN_MASK|U_GC_ME_MASK|U_GC_MC_MASK)
743 
745 #define U_GC_N_MASK (U_GC_ND_MASK|U_GC_NL_MASK|U_GC_NO_MASK)
746 
748 #define U_GC_Z_MASK (U_GC_ZS_MASK|U_GC_ZL_MASK|U_GC_ZP_MASK)
749 
751 #define U_GC_C_MASK \
752  (U_GC_CN_MASK|U_GC_CC_MASK|U_GC_CF_MASK|U_GC_CO_MASK|U_GC_CS_MASK)
753 
755 #define U_GC_P_MASK \
756  (U_GC_PD_MASK|U_GC_PS_MASK|U_GC_PE_MASK|U_GC_PC_MASK|U_GC_PO_MASK| \
757  U_GC_PI_MASK|U_GC_PF_MASK)
758 
760 #define U_GC_S_MASK (U_GC_SM_MASK|U_GC_SC_MASK|U_GC_SK_MASK|U_GC_SO_MASK)
761 
766 typedef enum UCharDirection {
767  /*
768  * Note: UCharDirection constants and their API comments are parsed by preparseucd.py.
769  * It matches pairs of lines like
770  * / ** <Unicode 1..3-letter Bidi_Class value> comment... * /
771  * U_<[A-Z_]+> = <integer>,
772  */
773 
815 
821  /*
822  * Note: UBlockCode constants are parsed by preparseucd.py.
823  * It matches lines like
824  * UBLOCK_<Unicode Block value name> = <integer>,
825  */
826 
828  UBLOCK_NO_BLOCK = 0, /*[none]*/ /* Special range indicating No_Block */
829 
831  UBLOCK_BASIC_LATIN = 1, /*[0000]*/
832 
835 
837  UBLOCK_LATIN_EXTENDED_A =3, /*[0100]*/
838 
840  UBLOCK_LATIN_EXTENDED_B =4, /*[0180]*/
841 
843  UBLOCK_IPA_EXTENSIONS =5, /*[0250]*/
844 
847 
850 
855  UBLOCK_GREEK =8, /*[0370]*/
856 
858  UBLOCK_CYRILLIC =9, /*[0400]*/
859 
861  UBLOCK_ARMENIAN =10, /*[0530]*/
862 
864  UBLOCK_HEBREW =11, /*[0590]*/
865 
867  UBLOCK_ARABIC =12, /*[0600]*/
868 
870  UBLOCK_SYRIAC =13, /*[0700]*/
871 
873  UBLOCK_THAANA =14, /*[0780]*/
874 
876  UBLOCK_DEVANAGARI =15, /*[0900]*/
877 
879  UBLOCK_BENGALI =16, /*[0980]*/
880 
882  UBLOCK_GURMUKHI =17, /*[0A00]*/
883 
885  UBLOCK_GUJARATI =18, /*[0A80]*/
886 
888  UBLOCK_ORIYA =19, /*[0B00]*/
889 
891  UBLOCK_TAMIL =20, /*[0B80]*/
892 
894  UBLOCK_TELUGU =21, /*[0C00]*/
895 
897  UBLOCK_KANNADA =22, /*[0C80]*/
898 
900  UBLOCK_MALAYALAM =23, /*[0D00]*/
901 
903  UBLOCK_SINHALA =24, /*[0D80]*/
904 
906  UBLOCK_THAI =25, /*[0E00]*/
907 
909  UBLOCK_LAO =26, /*[0E80]*/
910 
912  UBLOCK_TIBETAN =27, /*[0F00]*/
913 
915  UBLOCK_MYANMAR =28, /*[1000]*/
916 
918  UBLOCK_GEORGIAN =29, /*[10A0]*/
919 
921  UBLOCK_HANGUL_JAMO =30, /*[1100]*/
922 
924  UBLOCK_ETHIOPIC =31, /*[1200]*/
925 
927  UBLOCK_CHEROKEE =32, /*[13A0]*/
928 
931 
933  UBLOCK_OGHAM =34, /*[1680]*/
934 
936  UBLOCK_RUNIC =35, /*[16A0]*/
937 
939  UBLOCK_KHMER =36, /*[1780]*/
940 
942  UBLOCK_MONGOLIAN =37, /*[1800]*/
943 
946 
948  UBLOCK_GREEK_EXTENDED =39, /*[1F00]*/
949 
952 
955 
957  UBLOCK_CURRENCY_SYMBOLS =42, /*[20A0]*/
958 
964 
967 
969  UBLOCK_NUMBER_FORMS =45, /*[2150]*/
970 
972  UBLOCK_ARROWS =46, /*[2190]*/
973 
976 
979 
981  UBLOCK_CONTROL_PICTURES =49, /*[2400]*/
982 
985 
988 
990  UBLOCK_BOX_DRAWING =52, /*[2500]*/
991 
993  UBLOCK_BLOCK_ELEMENTS =53, /*[2580]*/
994 
996  UBLOCK_GEOMETRIC_SHAPES =54, /*[25A0]*/
997 
1000 
1002  UBLOCK_DINGBATS =56, /*[2700]*/
1003 
1005  UBLOCK_BRAILLE_PATTERNS =57, /*[2800]*/
1006 
1009 
1011  UBLOCK_KANGXI_RADICALS =59, /*[2F00]*/
1012 
1015 
1018 
1020  UBLOCK_HIRAGANA =62, /*[3040]*/
1021 
1023  UBLOCK_KATAKANA =63, /*[30A0]*/
1024 
1026  UBLOCK_BOPOMOFO =64, /*[3100]*/
1027 
1030 
1032  UBLOCK_KANBUN =66, /*[3190]*/
1033 
1036 
1039 
1042 
1045 
1048 
1050  UBLOCK_YI_SYLLABLES =72, /*[A000]*/
1051 
1053  UBLOCK_YI_RADICALS =73, /*[A490]*/
1054 
1056  UBLOCK_HANGUL_SYLLABLES =74, /*[AC00]*/
1057 
1059  UBLOCK_HIGH_SURROGATES =75, /*[D800]*/
1060 
1063 
1065  UBLOCK_LOW_SURROGATES =77, /*[DC00]*/
1066 
1076  UBLOCK_PRIVATE_USE_AREA =78, /*[E000]*/
1087 
1090 
1093 
1096 
1099 
1102 
1105 
1108 
1110  UBLOCK_SPECIALS =86, /*[FFF0]*/
1111 
1114 
1115  /* New blocks in Unicode 3.1 */
1116 
1118  UBLOCK_OLD_ITALIC = 88, /*[10300]*/
1120  UBLOCK_GOTHIC = 89, /*[10330]*/
1122  UBLOCK_DESERET = 90, /*[10400]*/
1126  UBLOCK_MUSICAL_SYMBOLS = 92, /*[1D100]*/
1134  UBLOCK_TAGS = 96, /*[E0000]*/
1135 
1136  /* New blocks in Unicode 3.2 */
1137 
1146  UBLOCK_TAGALOG = 98, /*[1700]*/
1148  UBLOCK_HANUNOO = 99, /*[1720]*/
1150  UBLOCK_BUHID = 100, /*[1740]*/
1152  UBLOCK_TAGBANWA = 101, /*[1760]*/
1166  UBLOCK_VARIATION_SELECTORS = 108, /*[FE00]*/
1171 
1172  /* New blocks in Unicode 4 */
1173 
1175  UBLOCK_LIMBU = 111, /*[1900]*/
1177  UBLOCK_TAI_LE = 112, /*[1950]*/
1179  UBLOCK_KHMER_SYMBOLS = 113, /*[19E0]*/
1181  UBLOCK_PHONETIC_EXTENSIONS = 114, /*[1D00]*/
1187  UBLOCK_LINEAR_B_SYLLABARY = 117, /*[10000]*/
1189  UBLOCK_LINEAR_B_IDEOGRAMS = 118, /*[10080]*/
1191  UBLOCK_AEGEAN_NUMBERS = 119, /*[10100]*/
1193  UBLOCK_UGARITIC = 120, /*[10380]*/
1195  UBLOCK_SHAVIAN = 121, /*[10450]*/
1197  UBLOCK_OSMANYA = 122, /*[10480]*/
1199  UBLOCK_CYPRIOT_SYLLABARY = 123, /*[10800]*/
1201  UBLOCK_TAI_XUAN_JING_SYMBOLS = 124, /*[1D300]*/
1204 
1205  /* New blocks in Unicode 4.1 */
1206 
1210  UBLOCK_ANCIENT_GREEK_NUMBERS = 127, /*[10140]*/
1212  UBLOCK_ARABIC_SUPPLEMENT = 128, /*[0750]*/
1214  UBLOCK_BUGINESE = 129, /*[1A00]*/
1216  UBLOCK_CJK_STROKES = 130, /*[31C0]*/
1220  UBLOCK_COPTIC = 132, /*[2C80]*/
1222  UBLOCK_ETHIOPIC_EXTENDED = 133, /*[2D80]*/
1224  UBLOCK_ETHIOPIC_SUPPLEMENT = 134, /*[1380]*/
1226  UBLOCK_GEORGIAN_SUPPLEMENT = 135, /*[2D00]*/
1228  UBLOCK_GLAGOLITIC = 136, /*[2C00]*/
1230  UBLOCK_KHAROSHTHI = 137, /*[10A00]*/
1234  UBLOCK_NEW_TAI_LUE = 139, /*[1980]*/
1236  UBLOCK_OLD_PERSIAN = 140, /*[103A0]*/
1242  UBLOCK_SYLOTI_NAGRI = 143, /*[A800]*/
1244  UBLOCK_TIFINAGH = 144, /*[2D30]*/
1246  UBLOCK_VERTICAL_FORMS = 145, /*[FE10]*/
1247 
1248  /* New blocks in Unicode 5.0 */
1249 
1251  UBLOCK_NKO = 146, /*[07C0]*/
1253  UBLOCK_BALINESE = 147, /*[1B00]*/
1255  UBLOCK_LATIN_EXTENDED_C = 148, /*[2C60]*/
1257  UBLOCK_LATIN_EXTENDED_D = 149, /*[A720]*/
1259  UBLOCK_PHAGS_PA = 150, /*[A840]*/
1261  UBLOCK_PHOENICIAN = 151, /*[10900]*/
1263  UBLOCK_CUNEIFORM = 152, /*[12000]*/
1267  UBLOCK_COUNTING_ROD_NUMERALS = 154, /*[1D360]*/
1268 
1269  /* New blocks in Unicode 5.1 */
1270 
1272  UBLOCK_SUNDANESE = 155, /*[1B80]*/
1274  UBLOCK_LEPCHA = 156, /*[1C00]*/
1276  UBLOCK_OL_CHIKI = 157, /*[1C50]*/
1278  UBLOCK_CYRILLIC_EXTENDED_A = 158, /*[2DE0]*/
1280  UBLOCK_VAI = 159, /*[A500]*/
1282  UBLOCK_CYRILLIC_EXTENDED_B = 160, /*[A640]*/
1284  UBLOCK_SAURASHTRA = 161, /*[A880]*/
1286  UBLOCK_KAYAH_LI = 162, /*[A900]*/
1288  UBLOCK_REJANG = 163, /*[A930]*/
1290  UBLOCK_CHAM = 164, /*[AA00]*/
1292  UBLOCK_ANCIENT_SYMBOLS = 165, /*[10190]*/
1294  UBLOCK_PHAISTOS_DISC = 166, /*[101D0]*/
1296  UBLOCK_LYCIAN = 167, /*[10280]*/
1298  UBLOCK_CARIAN = 168, /*[102A0]*/
1300  UBLOCK_LYDIAN = 169, /*[10920]*/
1302  UBLOCK_MAHJONG_TILES = 170, /*[1F000]*/
1304  UBLOCK_DOMINO_TILES = 171, /*[1F030]*/
1305 
1306  /* New blocks in Unicode 5.2 */
1307 
1309  UBLOCK_SAMARITAN = 172, /*[0800]*/
1313  UBLOCK_TAI_THAM = 174, /*[1A20]*/
1315  UBLOCK_VEDIC_EXTENSIONS = 175, /*[1CD0]*/
1317  UBLOCK_LISU = 176, /*[A4D0]*/
1319  UBLOCK_BAMUM = 177, /*[A6A0]*/
1323  UBLOCK_DEVANAGARI_EXTENDED = 179, /*[A8E0]*/
1327  UBLOCK_JAVANESE = 181, /*[A980]*/
1329  UBLOCK_MYANMAR_EXTENDED_A = 182, /*[AA60]*/
1331  UBLOCK_TAI_VIET = 183, /*[AA80]*/
1333  UBLOCK_MEETEI_MAYEK = 184, /*[ABC0]*/
1337  UBLOCK_IMPERIAL_ARAMAIC = 186, /*[10840]*/
1339  UBLOCK_OLD_SOUTH_ARABIAN = 187, /*[10A60]*/
1341  UBLOCK_AVESTAN = 188, /*[10B00]*/
1345  UBLOCK_INSCRIPTIONAL_PAHLAVI = 190, /*[10B60]*/
1347  UBLOCK_OLD_TURKIC = 191, /*[10C00]*/
1349  UBLOCK_RUMI_NUMERAL_SYMBOLS = 192, /*[10E60]*/
1351  UBLOCK_KAITHI = 193, /*[11080]*/
1353  UBLOCK_EGYPTIAN_HIEROGLYPHS = 194, /*[13000]*/
1360 
1361  /* New blocks in Unicode 6.0 */
1362 
1364  UBLOCK_MANDAIC = 198, /*[0840]*/
1366  UBLOCK_BATAK = 199, /*[1BC0]*/
1368  UBLOCK_ETHIOPIC_EXTENDED_A = 200, /*[AB00]*/
1370  UBLOCK_BRAHMI = 201, /*[11000]*/
1372  UBLOCK_BAMUM_SUPPLEMENT = 202, /*[16800]*/
1374  UBLOCK_KANA_SUPPLEMENT = 203, /*[1B000]*/
1376  UBLOCK_PLAYING_CARDS = 204, /*[1F0A0]*/
1380  UBLOCK_EMOTICONS = 206, /*[1F600]*/
1384  UBLOCK_ALCHEMICAL_SYMBOLS = 208, /*[1F700]*/
1387 
1388  /* New blocks in Unicode 6.1 */
1389 
1391  UBLOCK_ARABIC_EXTENDED_A = 210, /*[08A0]*/
1395  UBLOCK_CHAKMA = 212, /*[11100]*/
1399  UBLOCK_MEROITIC_CURSIVE = 214, /*[109A0]*/
1401  UBLOCK_MEROITIC_HIEROGLYPHS = 215, /*[10980]*/
1403  UBLOCK_MIAO = 216, /*[16F00]*/
1405  UBLOCK_SHARADA = 217, /*[11180]*/
1407  UBLOCK_SORA_SOMPENG = 218, /*[110D0]*/
1411  UBLOCK_TAKRI = 220, /*[11680]*/
1412 
1415 
1418 };
1419 
1421 typedef enum UBlockCode UBlockCode;
1422 
1430 typedef enum UEastAsianWidth {
1431  /*
1432  * Note: UEastAsianWidth constants are parsed by preparseucd.py.
1433  * It matches lines like
1434  * U_EA_<Unicode East_Asian_Width value name>
1435  */
1436 
1437  U_EA_NEUTRAL, /*[N]*/
1438  U_EA_AMBIGUOUS, /*[A]*/
1439  U_EA_HALFWIDTH, /*[H]*/
1440  U_EA_FULLWIDTH, /*[F]*/
1441  U_EA_NARROW, /*[Na]*/
1442  U_EA_WIDE, /*[W]*/
1443  U_EA_COUNT
1444 } UEastAsianWidth;
1445 
1457 typedef enum UCharNameChoice {
1472 } UCharNameChoice;
1473 
1487 typedef enum UPropertyNameChoice {
1488  U_SHORT_PROPERTY_NAME,
1489  U_LONG_PROPERTY_NAME,
1490  U_PROPERTY_NAME_CHOICE_COUNT
1492 
1499 typedef enum UDecompositionType {
1500  /*
1501  * Note: UDecompositionType constants are parsed by preparseucd.py.
1502  * It matches lines like
1503  * U_DT_<Unicode Decomposition_Type value name>
1504  */
1505 
1506  U_DT_NONE, /*[none]*/
1507  U_DT_CANONICAL, /*[can]*/
1508  U_DT_COMPAT, /*[com]*/
1509  U_DT_CIRCLE, /*[enc]*/
1510  U_DT_FINAL, /*[fin]*/
1511  U_DT_FONT, /*[font]*/
1512  U_DT_FRACTION, /*[fra]*/
1513  U_DT_INITIAL, /*[init]*/
1514  U_DT_ISOLATED, /*[iso]*/
1515  U_DT_MEDIAL, /*[med]*/
1516  U_DT_NARROW, /*[nar]*/
1517  U_DT_NOBREAK, /*[nb]*/
1518  U_DT_SMALL, /*[sml]*/
1519  U_DT_SQUARE, /*[sqr]*/
1520  U_DT_SUB, /*[sub]*/
1521  U_DT_SUPER, /*[sup]*/
1522  U_DT_VERTICAL, /*[vert]*/
1523  U_DT_WIDE, /*[wide]*/
1524  U_DT_COUNT /* 18 */
1526 
1533 typedef enum UJoiningType {
1534  /*
1535  * Note: UJoiningType constants are parsed by preparseucd.py.
1536  * It matches lines like
1537  * U_JT_<Unicode Joining_Type value name>
1538  */
1539 
1540  U_JT_NON_JOINING, /*[U]*/
1541  U_JT_JOIN_CAUSING, /*[C]*/
1542  U_JT_DUAL_JOINING, /*[D]*/
1543  U_JT_LEFT_JOINING, /*[L]*/
1544  U_JT_RIGHT_JOINING, /*[R]*/
1545  U_JT_TRANSPARENT, /*[T]*/
1546  U_JT_COUNT /* 6 */
1547 } UJoiningType;
1548 
1555 typedef enum UJoiningGroup {
1556  /*
1557  * Note: UJoiningGroup constants are parsed by preparseucd.py.
1558  * It matches lines like
1559  * U_JG_<Unicode Joining_Group value name>
1560  */
1561 
1562  U_JG_NO_JOINING_GROUP,
1563  U_JG_AIN,
1564  U_JG_ALAPH,
1565  U_JG_ALEF,
1566  U_JG_BEH,
1567  U_JG_BETH,
1568  U_JG_DAL,
1569  U_JG_DALATH_RISH,
1570  U_JG_E,
1571  U_JG_FEH,
1572  U_JG_FINAL_SEMKATH,
1573  U_JG_GAF,
1574  U_JG_GAMAL,
1575  U_JG_HAH,
1577  U_JG_HAMZA_ON_HEH_GOAL=U_JG_TEH_MARBUTA_GOAL,
1578  U_JG_HE,
1579  U_JG_HEH,
1580  U_JG_HEH_GOAL,
1581  U_JG_HETH,
1582  U_JG_KAF,
1583  U_JG_KAPH,
1584  U_JG_KNOTTED_HEH,
1585  U_JG_LAM,
1586  U_JG_LAMADH,
1587  U_JG_MEEM,
1588  U_JG_MIM,
1589  U_JG_NOON,
1590  U_JG_NUN,
1591  U_JG_PE,
1592  U_JG_QAF,
1593  U_JG_QAPH,
1594  U_JG_REH,
1595  U_JG_REVERSED_PE,
1596  U_JG_SAD,
1597  U_JG_SADHE,
1598  U_JG_SEEN,
1599  U_JG_SEMKATH,
1600  U_JG_SHIN,
1601  U_JG_SWASH_KAF,
1602  U_JG_SYRIAC_WAW,
1603  U_JG_TAH,
1604  U_JG_TAW,
1605  U_JG_TEH_MARBUTA,
1606  U_JG_TETH,
1607  U_JG_WAW,
1608  U_JG_YEH,
1609  U_JG_YEH_BARREE,
1610  U_JG_YEH_WITH_TAIL,
1611  U_JG_YUDH,
1612  U_JG_YUDH_HE,
1613  U_JG_ZAIN,
1621  U_JG_COUNT
1622 } UJoiningGroup;
1623 
1631  /*
1632  * Note: UGraphemeClusterBreak constants are parsed by preparseucd.py.
1633  * It matches lines like
1634  * U_GCB_<Unicode Grapheme_Cluster_Break value name>
1635  */
1636 
1637  U_GCB_OTHER = 0, /*[XX]*/
1638  U_GCB_CONTROL = 1, /*[CN]*/
1639  U_GCB_CR = 2, /*[CR]*/
1640  U_GCB_EXTEND = 3, /*[EX]*/
1641  U_GCB_L = 4, /*[L]*/
1642  U_GCB_LF = 5, /*[LF]*/
1643  U_GCB_LV = 6, /*[LV]*/
1644  U_GCB_LVT = 7, /*[LVT]*/
1645  U_GCB_T = 8, /*[T]*/
1646  U_GCB_V = 9, /*[V]*/
1647  U_GCB_SPACING_MARK = 10, /*[SM]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1648  U_GCB_PREPEND = 11, /*[PP]*/
1649  U_GCB_REGIONAL_INDICATOR = 12, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1650  U_GCB_COUNT = 13
1652 
1660 typedef enum UWordBreakValues {
1661  /*
1662  * Note: UWordBreakValues constants are parsed by preparseucd.py.
1663  * It matches lines like
1664  * U_WB_<Unicode Word_Break value name>
1665  */
1666 
1667  U_WB_OTHER = 0, /*[XX]*/
1668  U_WB_ALETTER = 1, /*[LE]*/
1669  U_WB_FORMAT = 2, /*[FO]*/
1670  U_WB_KATAKANA = 3, /*[KA]*/
1671  U_WB_MIDLETTER = 4, /*[ML]*/
1672  U_WB_MIDNUM = 5, /*[MN]*/
1673  U_WB_NUMERIC = 6, /*[NU]*/
1674  U_WB_EXTENDNUMLET = 7, /*[EX]*/
1675  U_WB_CR = 8, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1676  U_WB_EXTEND = 9, /*[Extend]*/
1677  U_WB_LF = 10, /*[LF]*/
1678  U_WB_MIDNUMLET =11, /*[MB]*/
1679  U_WB_NEWLINE =12, /*[NL]*/
1680  U_WB_REGIONAL_INDICATOR = 13, /*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1681  U_WB_COUNT = 14
1683 
1690 typedef enum USentenceBreak {
1691  /*
1692  * Note: USentenceBreak constants are parsed by preparseucd.py.
1693  * It matches lines like
1694  * U_SB_<Unicode Sentence_Break value name>
1695  */
1696 
1697  U_SB_OTHER = 0, /*[XX]*/
1698  U_SB_ATERM = 1, /*[AT]*/
1699  U_SB_CLOSE = 2, /*[CL]*/
1700  U_SB_FORMAT = 3, /*[FO]*/
1701  U_SB_LOWER = 4, /*[LO]*/
1702  U_SB_NUMERIC = 5, /*[NU]*/
1703  U_SB_OLETTER = 6, /*[LE]*/
1704  U_SB_SEP = 7, /*[SE]*/
1705  U_SB_SP = 8, /*[SP]*/
1706  U_SB_STERM = 9, /*[ST]*/
1707  U_SB_UPPER = 10, /*[UP]*/
1708  U_SB_CR = 11, /*[CR]*/ /* from here on: new in Unicode 5.1/ICU 4.0 */
1709  U_SB_EXTEND = 12, /*[EX]*/
1710  U_SB_LF = 13, /*[LF]*/
1711  U_SB_SCONTINUE = 14, /*[SC]*/
1712  U_SB_COUNT = 15
1713 } USentenceBreak;
1714 
1721 typedef enum ULineBreak {
1722  /*
1723  * Note: ULineBreak constants are parsed by preparseucd.py.
1724  * It matches lines like
1725  * U_LB_<Unicode Line_Break value name>
1726  */
1727 
1728  U_LB_UNKNOWN = 0, /*[XX]*/
1729  U_LB_AMBIGUOUS = 1, /*[AI]*/
1730  U_LB_ALPHABETIC = 2, /*[AL]*/
1731  U_LB_BREAK_BOTH = 3, /*[B2]*/
1732  U_LB_BREAK_AFTER = 4, /*[BA]*/
1733  U_LB_BREAK_BEFORE = 5, /*[BB]*/
1734  U_LB_MANDATORY_BREAK = 6, /*[BK]*/
1735  U_LB_CONTINGENT_BREAK = 7, /*[CB]*/
1736  U_LB_CLOSE_PUNCTUATION = 8, /*[CL]*/
1737  U_LB_COMBINING_MARK = 9, /*[CM]*/
1738  U_LB_CARRIAGE_RETURN = 10, /*[CR]*/
1739  U_LB_EXCLAMATION = 11, /*[EX]*/
1740  U_LB_GLUE = 12, /*[GL]*/
1741  U_LB_HYPHEN = 13, /*[HY]*/
1742  U_LB_IDEOGRAPHIC = 14, /*[ID]*/
1744  U_LB_INSEPARABLE = 15, /*[IN]*/
1745  U_LB_INSEPERABLE = U_LB_INSEPARABLE,
1746  U_LB_INFIX_NUMERIC = 16, /*[IS]*/
1747  U_LB_LINE_FEED = 17, /*[LF]*/
1748  U_LB_NONSTARTER = 18, /*[NS]*/
1749  U_LB_NUMERIC = 19, /*[NU]*/
1750  U_LB_OPEN_PUNCTUATION = 20, /*[OP]*/
1751  U_LB_POSTFIX_NUMERIC = 21, /*[PO]*/
1752  U_LB_PREFIX_NUMERIC = 22, /*[PR]*/
1753  U_LB_QUOTATION = 23, /*[QU]*/
1754  U_LB_COMPLEX_CONTEXT = 24, /*[SA]*/
1755  U_LB_SURROGATE = 25, /*[SG]*/
1756  U_LB_SPACE = 26, /*[SP]*/
1757  U_LB_BREAK_SYMBOLS = 27, /*[SY]*/
1758  U_LB_ZWSPACE = 28, /*[ZW]*/
1759  U_LB_NEXT_LINE = 29, /*[NL]*/ /* from here on: new in Unicode 4/ICU 2.6 */
1760  U_LB_WORD_JOINER = 30, /*[WJ]*/
1761  U_LB_H2 = 31, /*[H2]*/ /* from here on: new in Unicode 4.1/ICU 3.4 */
1762  U_LB_H3 = 32, /*[H3]*/
1763  U_LB_JL = 33, /*[JL]*/
1764  U_LB_JT = 34, /*[JT]*/
1765  U_LB_JV = 35, /*[JV]*/
1766  U_LB_CLOSE_PARENTHESIS = 36, /*[CP]*/ /* new in Unicode 5.2/ICU 4.4 */
1767  U_LB_CONDITIONAL_JAPANESE_STARTER = 37,/*[CJ]*/ /* new in Unicode 6.1/ICU 49 */
1768  U_LB_HEBREW_LETTER = 38, /*[HL]*/ /* new in Unicode 6.1/ICU 49 */
1769  U_LB_REGIONAL_INDICATOR = 39,/*[RI]*/ /* new in Unicode 6.2/ICU 50 */
1770  U_LB_COUNT = 40
1771 } ULineBreak;
1772 
1779 typedef enum UNumericType {
1780  /*
1781  * Note: UNumericType constants are parsed by preparseucd.py.
1782  * It matches lines like
1783  * U_NT_<Unicode Numeric_Type value name>
1784  */
1785 
1786  U_NT_NONE, /*[None]*/
1787  U_NT_DECIMAL, /*[de]*/
1788  U_NT_DIGIT, /*[di]*/
1789  U_NT_NUMERIC, /*[nu]*/
1790  U_NT_COUNT
1791 } UNumericType;
1792 
1799 typedef enum UHangulSyllableType {
1800  /*
1801  * Note: UHangulSyllableType constants are parsed by preparseucd.py.
1802  * It matches lines like
1803  * U_HST_<Unicode Hangul_Syllable_Type value name>
1804  */
1805 
1806  U_HST_NOT_APPLICABLE, /*[NA]*/
1807  U_HST_LEADING_JAMO, /*[L]*/
1808  U_HST_VOWEL_JAMO, /*[V]*/
1809  U_HST_TRAILING_JAMO, /*[T]*/
1810  U_HST_LV_SYLLABLE, /*[LV]*/
1811  U_HST_LVT_SYLLABLE, /*[LVT]*/
1812  U_HST_COUNT
1814 
1841 U_STABLE UBool U_EXPORT2
1843 
1856 U_STABLE UBool U_EXPORT2
1858 
1871 U_STABLE UBool U_EXPORT2
1873 
1886 U_STABLE UBool U_EXPORT2
1888 
1907 U_STABLE UBool U_EXPORT2
1909 
1947 U_STABLE int32_t U_EXPORT2
1949 
1968 U_STABLE int32_t U_EXPORT2
1970 
1997 U_STABLE int32_t U_EXPORT2
1999 
2022 U_STABLE double U_EXPORT2
2024 
2032 #define U_NO_NUMERIC_VALUE ((double)-123456789.)
2033 
2057 U_STABLE UBool U_EXPORT2
2058 u_islower(UChar32 c);
2059 
2084 U_STABLE UBool U_EXPORT2
2085 u_isupper(UChar32 c);
2086 
2101 U_STABLE UBool U_EXPORT2
2102 u_istitle(UChar32 c);
2103 
2122 U_STABLE UBool U_EXPORT2
2123 u_isdigit(UChar32 c);
2124 
2143 U_STABLE UBool U_EXPORT2
2144 u_isalpha(UChar32 c);
2145 
2164 U_STABLE UBool U_EXPORT2
2165 u_isalnum(UChar32 c);
2166 
2187 U_STABLE UBool U_EXPORT2
2188 u_isxdigit(UChar32 c);
2189 
2203 U_STABLE UBool U_EXPORT2
2204 u_ispunct(UChar32 c);
2205 
2222 U_STABLE UBool U_EXPORT2
2223 u_isgraph(UChar32 c);
2224 
2251 U_STABLE UBool U_EXPORT2
2252 u_isblank(UChar32 c);
2253 
2276 U_STABLE UBool U_EXPORT2
2277 u_isdefined(UChar32 c);
2278 
2297 U_STABLE UBool U_EXPORT2
2298 u_isspace(UChar32 c);
2299 
2318 U_STABLE UBool U_EXPORT2
2320 
2358 U_STABLE UBool U_EXPORT2
2360 
2382 U_STABLE UBool U_EXPORT2
2383 u_iscntrl(UChar32 c);
2384 
2397 U_STABLE UBool U_EXPORT2
2399 
2415 U_STABLE UBool U_EXPORT2
2416 u_isprint(UChar32 c);
2417 
2436 U_STABLE UBool U_EXPORT2
2437 u_isbase(UChar32 c);
2438 
2455 U_STABLE UCharDirection U_EXPORT2
2457 
2473 U_STABLE UBool U_EXPORT2
2475 
2495 U_STABLE UChar32 U_EXPORT2
2497 
2509 U_STABLE int8_t U_EXPORT2
2510 u_charType(UChar32 c);
2511 
2525 #define U_GET_GC_MASK(c) U_MASK(u_charType(c))
2526 
2544 typedef UBool U_CALLCONV
2545 UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type);
2546 
2566 U_STABLE void U_EXPORT2
2567 u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context);
2568 
2569 #if !UCONFIG_NO_NORMALIZATION
2570 
2578 U_STABLE uint8_t U_EXPORT2
2580 
2581 #endif
2582 
2606 U_STABLE int32_t U_EXPORT2
2608 
2618 U_STABLE UBlockCode U_EXPORT2
2620 
2653 U_STABLE int32_t U_EXPORT2
2654 u_charName(UChar32 code, UCharNameChoice nameChoice,
2655  char *buffer, int32_t bufferLength,
2656  UErrorCode *pErrorCode);
2657 
2676 U_STABLE int32_t U_EXPORT2
2678  char *dest, int32_t destCapacity,
2679  UErrorCode *pErrorCode);
2680 
2701 U_STABLE UChar32 U_EXPORT2
2702 u_charFromName(UCharNameChoice nameChoice,
2703  const char *name,
2704  UErrorCode *pErrorCode);
2705 
2723 typedef UBool U_CALLCONV UEnumCharNamesFn(void *context,
2724  UChar32 code,
2725  UCharNameChoice nameChoice,
2726  const char *name,
2727  int32_t length);
2728 
2750 U_STABLE void U_EXPORT2
2751 u_enumCharNames(UChar32 start, UChar32 limit,
2752  UEnumCharNamesFn *fn,
2753  void *context,
2754  UCharNameChoice nameChoice,
2755  UErrorCode *pErrorCode);
2756 
2788 U_STABLE const char* U_EXPORT2
2789 u_getPropertyName(UProperty property,
2790  UPropertyNameChoice nameChoice);
2791 
2811 U_STABLE UProperty U_EXPORT2
2812 u_getPropertyEnum(const char* alias);
2813 
2861 U_STABLE const char* U_EXPORT2
2863  int32_t value,
2864  UPropertyNameChoice nameChoice);
2865 
2897 U_STABLE int32_t U_EXPORT2
2899  const char* alias);
2900 
2918 U_STABLE UBool U_EXPORT2
2919 u_isIDStart(UChar32 c);
2920 
2942 U_STABLE UBool U_EXPORT2
2943 u_isIDPart(UChar32 c);
2944 
2965 U_STABLE UBool U_EXPORT2
2967 
2984 U_STABLE UBool U_EXPORT2
2986 
3005 U_STABLE UBool U_EXPORT2
3007 
3030 U_STABLE UChar32 U_EXPORT2
3031 u_tolower(UChar32 c);
3032 
3055 U_STABLE UChar32 U_EXPORT2
3056 u_toupper(UChar32 c);
3057 
3080 U_STABLE UChar32 U_EXPORT2
3081 u_totitle(UChar32 c);
3082 
3084 #define U_FOLD_CASE_DEFAULT 0
3085 
3102 #define U_FOLD_CASE_EXCLUDE_SPECIAL_I 1
3103 
3126 U_STABLE UChar32 U_EXPORT2
3127 u_foldCase(UChar32 c, uint32_t options);
3128 
3167 U_STABLE int32_t U_EXPORT2
3168 u_digit(UChar32 ch, int8_t radix);
3169 
3198 U_STABLE UChar32 U_EXPORT2
3199 u_forDigit(int32_t digit, int8_t radix);
3200 
3215 U_STABLE void U_EXPORT2
3216 u_charAge(UChar32 c, UVersionInfo versionArray);
3217 
3229 U_STABLE void U_EXPORT2
3230 u_getUnicodeVersion(UVersionInfo versionArray);
3231 
3232 #if !UCONFIG_NO_NORMALIZATION
3233 
3254 U_STABLE int32_t U_EXPORT2
3255 u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);
3256 
3257 #endif
3258 
3259 
3261 
3262 #endif /*_UCHAR*/
3263 /*eof*/
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.
Definition: uversion.h:57
Binary property Ideographic.
Definition: uchar.h:237
Unicode 4.0.1 renames the &quot;Cyrillic Supplementary&quot; block to &quot;Cyrillic Supplement&quot;.
Definition: uchar.h:1144
Binary property Changes_When_Lowercased.
Definition: uchar.h:389
Binary property IDS_Binary_Operator (new in Unicode 3.2).
Definition: uchar.h:241
Binary property Case_Ignorable.
Definition: uchar.h:387
UBool u_isUWhiteSpace(UChar32 c)
Check if a code point has the White_Space Unicode property.
UBool u_istitle(UChar32 c)
Determines whether the specified code point is a titlecase letter.
Enumerated property NFC_Quick_Check.
Definition: uchar.h:450
UChar32 u_totitle(UChar32 c)
The given character is mapped to its titlecase equivalent according to UnicodeData.txt; if none is defined, the character itself is returned.
Provisional property Script_Extensions (new in Unicode 6.0).
Definition: uchar.h:560
const char * u_getPropertyName(UProperty property, UPropertyNameChoice nameChoice)
Return the Unicode name for a given property, as given in the Unicode database file PropertyAliases...
Same as UBLOCK_PRIVATE_USE_AREA.
Definition: uchar.h:1086
UChar32 u_foldCase(UChar32 c, uint32_t options)
The given character is mapped to its case folding equivalent according to UnicodeData.txt and CaseFolding.txt; if the character has no case folding equivalent, the character itself is returned.
First constant for enumerated/integer Unicode properties.
Definition: uchar.h:407
Binary property XID_Start.
Definition: uchar.h:294
Binary property Join_Control.
Definition: uchar.h:248
Binary property Logical_Order_Exception (new in Unicode 3.2).
Definition: uchar.h:252
Binary property White_Space.
Definition: uchar.h:287
String property Titlecase_Mapping.
Definition: uchar.h:542
One more than the last constant for enumerated/integer Unicode properties.
Definition: uchar.h:484
Enumerated property Numeric_Type.
Definition: uchar.h:435
Binary property xdigit (a C/POSIX character class).
Definition: uchar.h:383
UBlockCode ublock_getCode(UChar32 c)
Returns the Unicode allocation block that contains the character.
Binary property Alphabetic.
Definition: uchar.h:175
First constant for double Unicode properties.
Definition: uchar.h:504
UBool UEnumCharNamesFn(void *context, UChar32 code, UCharNameChoice nameChoice, const char *name, int32_t length)
Type of a callback function for u_enumCharNames() that gets called for each Unicode character with th...
Definition: uchar.h:2723
UBool u_isgraph(UChar32 c)
Determines whether the specified code point is a &quot;graphic&quot; character (printable, excluding spaces)...
Cn &quot;Other, Not Assigned (no characters in [UnicodeData.txt] have this property)&quot; (same as U_UNASSIGNE...
Definition: uchar.h:587
String property Simple_Case_Folding.
Definition: uchar.h:530
Binary property NFC_Inert.
Definition: uchar.h:330
Binary property graph (a C/POSIX character class).
Definition: uchar.h:373
String property Bidi_Mirroring_Glyph.
Definition: uchar.h:515
One more than the last constant for bit-mask Unicode properties.
Definition: uchar.h:498
UBool u_isdefined(UChar32 c)
Determines whether the specified code point is &quot;defined&quot;, which usually means that it is assigned a c...
Enumerated property Block.
Definition: uchar.h:410
Represents a nonexistent or invalid property or property value.
Definition: uchar.h:567
Renamed from the misspelled &quot;inseperable&quot; in Unicode 4.0.1/ICU 3.0.
Definition: uchar.h:1744
Binary property Radical (new in Unicode 3.2).
Definition: uchar.h:267
UCharDirection
This specifies the language directional property of a character set.
Definition: uchar.h:766
Binary property IDS_Trinary_Operator (new in Unicode 3.2).
Definition: uchar.h:245
Binary property Grapheme_Link (new in Unicode 3.2).
Definition: uchar.h:219
Enumerated property Decomposition_Type.
Definition: uchar.h:416
#define U_CALLCONV
Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...
Definition: platform.h:752
String property Case_Folding.
Definition: uchar.h:518
String property Name.
Definition: uchar.h:527
String property Simple_Uppercase_Mapping.
Definition: uchar.h:539
UChar32 u_forDigit(int32_t digit, int8_t radix)
Determines the character representation for a specific digit in the specified radix.
Enumerated property Bidi_Class.
Definition: uchar.h:405
int32_t u_charDigitValue(UChar32 c)
Returns the decimal digit value of a decimal digit character.
Enumerated property General_Category.
Definition: uchar.h:423
Sm.
Definition: uchar.h:635
String property Unicode_1_Name.
Definition: uchar.h:547
int32_t u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Get the FC_NFKC_Closure property string for a character.
UNumericType
Numeric Type constants.
Definition: uchar.h:1779
Binary property Pattern_White_Space (new in Unicode 4.1).
Definition: uchar.h:358
UBool u_iscntrl(UChar32 c)
Determines whether the specified code point is a control character (as defined by this function)...
UBool UCharEnumTypeRange(const void *context, UChar32 start, UChar32 limit, UCharCategory type)
Callback from u_enumCharTypes(), is called for each contiguous range of code points c (where start&lt;=c...
Definition: uchar.h:2545
Binary property Changes_When_Casefolded.
Definition: uchar.h:395
Binary property NFD_Inert.
Definition: uchar.h:316
Binary property Diacritic.
Definition: uchar.h:200
Binary property Terminal_Punctuation.
Definition: uchar.h:276
UChar32 u_charFromName(UCharNameChoice nameChoice, const char *name, UErrorCode *pErrorCode)
Find a Unicode character by its name and return its code point value.
UBool u_isUAlphabetic(UChar32 c)
Check if a code point has the Alphabetic Unicode property.
Enumerated property NFD_Quick_Check.
Definition: uchar.h:444
void u_charAge(UChar32 c, UVersionInfo versionArray)
Get the &quot;age&quot; of the code point.
int32_t u_getPropertyValueEnum(UProperty property, const char *alias)
Return the property value integer for a given value name, as specified in the Unicode database file P...
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
Definition: umachine.h:82
Binary property STerm (new in Unicode 4.0.1).
Definition: uchar.h:303
Enumerated property Joining_Group.
Definition: uchar.h:426
Binary property ID_Continue.
Definition: uchar.h:230
Binary property blank (a C/POSIX character class).
Definition: uchar.h:368
Binary property Quotation_Mark.
Definition: uchar.h:263
Binary property Changes_When_NFKC_Casefolded.
Definition: uchar.h:399
First constant for binary Unicode properties.
Definition: uchar.h:177
Binary property Noncharacter_Code_Point.
Definition: uchar.h:261
Binary property Hyphen.
Definition: uchar.h:225
Enumerated property East_Asian_Width.
Definition: uchar.h:420
ULineBreak
Line Break constants.
Definition: uchar.h:1721
Binary property Full_Composition_Exclusion.
Definition: uchar.h:208
Bitmask property General_Category_Mask.
Definition: uchar.h:494
String property Simple_Titlecase_Mapping.
Definition: uchar.h:536
Unicode 3.2 renames this block to &quot;Combining Diacritical Marks for Symbols&quot;.
Definition: uchar.h:963
int32_t u_digit(UChar32 ch, int8_t radix)
Returns the decimal digit value of the code point in the specified radix.
UDecompositionType
Decomposition Type constants.
Definition: uchar.h:1499
UBool u_isprint(UChar32 c)
Determines whether the specified code point is a printable character.
UBool u_isxdigit(UChar32 c)
Determines whether the specified code point is a hexadecimal digit.
UHangulSyllableType
Hangul Syllable Type constants.
Definition: uchar.h:1799
String property Simple_Lowercase_Mapping.
Definition: uchar.h:533
Binary property print (a C/POSIX character class).
Definition: uchar.h:378
Binary property Case_Sensitive.
Definition: uchar.h:298
Standard or synthetic character name.
Definition: uchar.h:1467
Binary property Bidi_Mirrored.
Definition: uchar.h:188
Binary property NFKC_Inert.
Definition: uchar.h:337
int32_t u_getIntPropertyValue(UChar32 c, UProperty which)
Get the property value for an enumerated or integer Unicode property for a code point.
Binary property Changes_When_Casemapped.
Definition: uchar.h:397
First constant for string Unicode properties.
Definition: uchar.h:512
Binary property Grapheme_Extend (new in Unicode 3.2).
Definition: uchar.h:216
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
Definition: umachine.h:298
UGraphemeClusterBreak
Grapheme Cluster Break constants.
Definition: uchar.h:1630
New No_Block value in Unicode 4.
Definition: uchar.h:828
Binary property Extender.
Definition: uchar.h:204
Double property Numeric_Value.
Definition: uchar.h:502
Binary property Math.
Definition: uchar.h:257
Unicode character name (Name property).
Definition: uchar.h:1459
Binary property Grapheme_Base (new in Unicode 3.2).
Definition: uchar.h:212
Binary property NFKD_Inert.
Definition: uchar.h:323
uint8_t u_getCombiningClass(UChar32 c)
Returns the combining class of the code point as specified in UnicodeData.txt.
UBool u_isbase(UChar32 c)
Determines whether the specified code point is a base character.
UCharCategory
Data for enumerated Unicode general category types.
Definition: uchar.h:575
const char * u_getPropertyValueName(UProperty property, int32_t value, UPropertyNameChoice nameChoice)
Return the Unicode name for a given property value, as given in the Unicode database file PropertyVal...
Enumerated property Sentence_Break (new in Unicode 4.1).
Definition: uchar.h:477
double u_getNumericValue(UChar32 c)
Get the numeric value for a Unicode code point as defined in the Unicode Character Database...
Binary property Lowercase.
Definition: uchar.h:255
UBool u_isJavaIDStart(UChar32 c)
Determines if the specified character is permissible as the first character in a Java identifier...
First constant for bit-mask Unicode properties.
Definition: uchar.h:496
UBool u_isspace(UChar32 c)
Determines if the specified character is a space character or not.
USentenceBreak
Sentence Break constants.
Definition: uchar.h:1690
Binary property Unified_Ideograph (new in Unicode 3.2).
Definition: uchar.h:280
Enumerated property Canonical_Combining_Class.
Definition: uchar.h:413
UCharNameChoice
Selector constants for u_charName().
Definition: uchar.h:1457
One more than the last constant for binary Unicode properties.
Definition: uchar.h:401
UBool u_isJavaIDPart(UChar32 c)
Determines if the specified character is permissible in a Java identifier.
Enumerated property Script.
Definition: uchar.h:438
Unicode 3.2 renames this block to &quot;Greek and Coptic&quot;.
Definition: uchar.h:855
Binary property Hex_Digit.
Definition: uchar.h:222
String property Uppercase_Mapping.
Definition: uchar.h:550
UPropertyNameChoice
Selector constants for u_getPropertyName() and u_getPropertyValueName().
Definition: uchar.h:1487
String property Lowercase_Mapping.
Definition: uchar.h:524
UCharDirection u_charDirection(UChar32 c)
Returns the bidirectional category value for the code point, which is used in the Unicode bidirection...
UBool u_islower(UChar32 c)
Determines whether the specified code point has the general category &quot;Ll&quot; (lowercase letter)...
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
Definition: umachine.h:278
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
Definition: umachine.h:83
Enumerated property NFKC_Quick_Check.
Definition: uchar.h:453
UProperty
Selection constants for Unicode properties.
Definition: uchar.h:161
void u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context)
Enumerate efficiently all code points with their Unicode general categories.
Enumerated property Hangul_Syllable_Type, new in Unicode 4.
Definition: uchar.h:441
Binary property Dash.
Definition: uchar.h:190
Binary property alnum (a C/POSIX character class).
Definition: uchar.h:363
Cf.
Definition: uchar.h:619
Binary property Variation_Selector (new in Unicode 4.0.1).
Definition: uchar.h:309
UBool u_isUUppercase(UChar32 c)
Check if a code point has the Uppercase Unicode property.
UBlockCode
Constants for Unicode blocks, see the Unicode Data file Blocks.txt.
Definition: uchar.h:820
Enumerated property Word_Break (new in Unicode 4.1).
Definition: uchar.h:482
Binary property Deprecated (new in Unicode 3.2).
Definition: uchar.h:197
Binary property Bidi_Control.
Definition: uchar.h:183
Binary property XID_Continue.
Definition: uchar.h:291
Same as UBLOCK_PRIVATE_USE.
Definition: uchar.h:1076
UBool u_hasBinaryProperty(UChar32 c, UProperty which)
Check a binary Unicode property for a code point.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
Definition: utypes.h:476
Binary property Uppercase.
Definition: uchar.h:283
void u_getUnicodeVersion(UVersionInfo versionArray)
Gets the Unicode version information.
Binary property Changes_When_Uppercased.
Definition: uchar.h:391
UJoiningGroup
Joining Group constants.
Definition: uchar.h:1555
Binary property Cased.
Definition: uchar.h:385
Cs.
Definition: uchar.h:623
UEastAsianWidth
East Asian Width constants.
Definition: uchar.h:1430
UBool u_isupper(UChar32 c)
Determines whether the specified code point has the general category &quot;Lu&quot; (uppercase letter)...
Enumerated property Trail_Canonical_Combining_Class.
Definition: uchar.h:467
UBool u_isULowercase(UChar32 c)
Check if a code point has the Lowercase Unicode property.
Non-category for unassigned and non-character code points.
Definition: uchar.h:585
UBool u_ispunct(UChar32 c)
Determines whether the specified code point is a punctuation character.
First constant for Unicode properties with unusual value types.
Definition: uchar.h:562
UWordBreakValues
Word Break constants.
Definition: uchar.h:1660
void u_enumCharNames(UChar32 start, UChar32 limit, UEnumCharNamesFn *fn, void *context, UCharNameChoice nameChoice, UErrorCode *pErrorCode)
Enumerate all assigned Unicode characters between the start and limit code points (start inclusive...
int32_t u_getIntPropertyMaxValue(UProperty which)
Get the maximum value for an enumerated/integer/binary Unicode property.
Enumerated property Joining_Type.
Definition: uchar.h:429
One more than the last constant for double Unicode properties.
Definition: uchar.h:506
Basic definitions for ICU, for both C and C++ APIs.
UBool u_isIDPart(UChar32 c)
Determines if the specified character is permissible in an identifier according to Java...
Enumerated property Lead_Canonical_Combining_Class.
Definition: uchar.h:460
Binary property ASCII_Hex_Digit.
Definition: uchar.h:179
UJoiningType
Joining Type constants.
Definition: uchar.h:1533
UBool u_isIDStart(UChar32 c)
Determines if the specified character is permissible as the first character in an identifier accordin...
Binary property Soft_Dotted (new in Unicode 3.2).
Definition: uchar.h:272
One more than the last constant for string Unicode properties.
Definition: uchar.h:552
Binary Property Segment_Starter.
Definition: uchar.h:348
UChar32 u_toupper(UChar32 c)
The given character is mapped to its uppercase equivalent according to UnicodeData.txt; if the character has no uppercase equivalent, the character itself is returned.
Binary property ID_Start.
Definition: uchar.h:234
int32_t u_getIntPropertyMinValue(UProperty which)
Get the minimum value for an enumerated/integer/binary Unicode property.
UBool u_isJavaSpaceChar(UChar32 c)
Determine if the specified code point is a space character according to Java.
UBool u_isMirrored(UChar32 c)
Determines whether the code point has the Bidi_Mirrored property.
Corrected name from NameAliases.txt.
Definition: uchar.h:1469
Binary property Changes_When_Titlecased.
Definition: uchar.h:393
UChar32 u_tolower(UChar32 c)
The given character is mapped to its lowercase equivalent according to UnicodeData.txt; if the character has no lowercase equivalent, the character itself is returned.
Enumerated property Line_Break.
Definition: uchar.h:432
UBool u_isIDIgnorable(UChar32 c)
Determines if the specified character should be regarded as an ignorable character in an identifier...
Enumerated property Grapheme_Cluster_Break (new in Unicode 4.1).
Definition: uchar.h:472
UBool u_isdigit(UChar32 c)
Determines whether the specified code point is a digit character according to Java.
UProperty u_getPropertyEnum(const char *alias)
Return the UProperty enum for a given property name, as specified in the Unicode database file Proper...
UBool u_isWhitespace(UChar32 c)
Determines if the specified code point is a whitespace character according to Java/ICU.
Deprecated string property ISO_Comment.
Definition: uchar.h:521
UBool u_isblank(UChar32 c)
Determines whether the specified code point is a &quot;blank&quot; or &quot;horizontal space&quot;, a character that visi...
UBool u_isalpha(UChar32 c)
Determines whether the specified code point is a letter character.
Binary property Default_Ignorable_Code_Point (new in Unicode 3.2).
Definition: uchar.h:194
The Unicode_1_Name property value which is of little practical value.
Definition: uchar.h:1465
int32_t u_getISOComment(UChar32 c, char *dest, int32_t destCapacity, UErrorCode *pErrorCode)
Returns an empty string.
One higher than the last enum UCharCategory constant.
Definition: uchar.h:647
UBool u_isalnum(UChar32 c)
Determines whether the specified code point is an alphanumeric character (letter or digit) according ...
Binary property Pattern_Syntax (new in Unicode 4.1).
Definition: uchar.h:353
One more than the last constant for Unicode properties with unusual value types.
Definition: uchar.h:565
UChar32 u_charMirror(UChar32 c)
Maps the specified character to a &quot;mirror-image&quot; character.
UBool u_isISOControl(UChar32 c)
Determines whether the specified code point is an ISO control code.
int8_t u_charType(UChar32 c)
Returns the general category value for the code point.
int32_t u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode)
Retrieve the name of a Unicode character.
String property Age.
Definition: uchar.h:510
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition: umachine.h:109
int8_t UBool
The ICU boolean type.
Definition: umachine.h:200
Enumerated property NFKD_Quick_Check.
Definition: uchar.h:447