- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

# uscript.h

Go to the documentation of this file.

    00001 /*
    00002  **********************************************************************
    00003  *   Copyright (C) 1997-2009, International Business Machines
    00004  *   Corporation and others.  All Rights Reserved.
    00005  **********************************************************************
    00006  *
    00007  * File USCRIPT.H
    00008  *
    00009  * Modification History:
    00010  *
    00011  *   Date        Name        Description
    00012  *   07/06/2001    Ram         Creation.
    00013  ******************************************************************************
    00014  */
    00015
    00016 #ifndef USCRIPT_H
    00017 #define USCRIPT_H
    00018 #include "unicode/utypes.h"
    00019
    00046 typedef enum UScriptCode {
    00047       USCRIPT_INVALID_CODE = -1,
    00048       USCRIPT_COMMON       =  0 , /* Zyyy */
    00049       USCRIPT_INHERITED    =  1,  /* Zinh */ /* "Code for inherited script", for non-spacing combining marks; also Qaai */
    00050       USCRIPT_ARABIC       =  2,  /* Arab */
    00051       USCRIPT_ARMENIAN     =  3,  /* Armn */
    00052       USCRIPT_BENGALI      =  4,  /* Beng */
    00053       USCRIPT_BOPOMOFO     =  5,  /* Bopo */
    00054       USCRIPT_CHEROKEE     =  6,  /* Cher */
    00055       USCRIPT_COPTIC       =  7,  /* Copt */
    00056       USCRIPT_CYRILLIC     =  8,  /* Cyrl */
    00057       USCRIPT_DESERET      =  9,  /* Dsrt */
    00058       USCRIPT_DEVANAGARI   = 10,  /* Deva */
    00059       USCRIPT_ETHIOPIC     = 11,  /* Ethi */
    00060       USCRIPT_GEORGIAN     = 12,  /* Geor */
    00061       USCRIPT_GOTHIC       = 13,  /* Goth */
    00062       USCRIPT_GREEK        = 14,  /* Grek */
    00063       USCRIPT_GUJARATI     = 15,  /* Gujr */
    00064       USCRIPT_GURMUKHI     = 16,  /* Guru */
    00065       USCRIPT_HAN          = 17,  /* Hani */
    00066       USCRIPT_HANGUL       = 18,  /* Hang */
    00067       USCRIPT_HEBREW       = 19,  /* Hebr */
    00068       USCRIPT_HIRAGANA     = 20,  /* Hira */
    00069       USCRIPT_KANNADA      = 21,  /* Knda */
    00070       USCRIPT_KATAKANA     = 22,  /* Kana */
    00071       USCRIPT_KHMER        = 23,  /* Khmr */
    00072       USCRIPT_LAO          = 24,  /* Laoo */
    00073       USCRIPT_LATIN        = 25,  /* Latn */
    00074       USCRIPT_MALAYALAM    = 26,  /* Mlym */
    00075       USCRIPT_MONGOLIAN    = 27,  /* Mong */
    00076       USCRIPT_MYANMAR      = 28,  /* Mymr */
    00077       USCRIPT_OGHAM        = 29,  /* Ogam */
    00078       USCRIPT_OLD_ITALIC   = 30,  /* Ital */
    00079       USCRIPT_ORIYA        = 31,  /* Orya */
    00080       USCRIPT_RUNIC        = 32,  /* Runr */
    00081       USCRIPT_SINHALA      = 33,  /* Sinh */
    00082       USCRIPT_SYRIAC       = 34,  /* Syrc */
    00083       USCRIPT_TAMIL        = 35,  /* Taml */
    00084       USCRIPT_TELUGU       = 36,  /* Telu */
    00085       USCRIPT_THAANA       = 37,  /* Thaa */
    00086       USCRIPT_THAI         = 38,  /* Thai */
    00087       USCRIPT_TIBETAN      = 39,  /* Tibt */
    00089       USCRIPT_CANADIAN_ABORIGINAL = 40,  /* Cans */
    00091       USCRIPT_UCAS         = USCRIPT_CANADIAN_ABORIGINAL,
    00092       USCRIPT_YI           = 41,  /* Yiii */
    00093       USCRIPT_TAGALOG      = 42,  /* Tglg */
    00094       USCRIPT_HANUNOO      = 43,  /* Hano */
    00095       USCRIPT_BUHID        = 44,  /* Buhd */
    00096       USCRIPT_TAGBANWA     = 45,  /* Tagb */
    00097
    00098       /* New scripts in Unicode 4 @stable ICU 2.6 */
    00099       USCRIPT_BRAILLE      = 46,  /* Brai */
    00100       USCRIPT_CYPRIOT      = 47,  /* Cprt */
    00101       USCRIPT_LIMBU        = 48,  /* Limb */
    00102       USCRIPT_LINEAR_B     = 49,  /* Linb */
    00103       USCRIPT_OSMANYA      = 50,  /* Osma */
    00104       USCRIPT_SHAVIAN      = 51,  /* Shaw */
    00105       USCRIPT_TAI_LE       = 52,  /* Tale */
    00106       USCRIPT_UGARITIC     = 53,  /* Ugar */
    00107
    00109       USCRIPT_KATAKANA_OR_HIRAGANA = 54,/*Hrkt */
    00110
    00111       /* New scripts in Unicode 4.1 @stable ICU 3.4 */
    00112       USCRIPT_BUGINESE      = 55, /* Bugi */
    00113       USCRIPT_GLAGOLITIC    = 56, /* Glag */
    00114       USCRIPT_KHAROSHTHI    = 57, /* Khar */
    00115       USCRIPT_SYLOTI_NAGRI  = 58, /* Sylo */
    00116       USCRIPT_NEW_TAI_LUE   = 59, /* Talu */
    00117       USCRIPT_TIFINAGH      = 60, /* Tfng */
    00118       USCRIPT_OLD_PERSIAN   = 61, /* Xpeo */
    00119
    00120       /* New script codes from ISO 15924 @stable ICU 3.6 */
    00121       USCRIPT_BALINESE                      = 62, /* Bali */
    00122       USCRIPT_BATAK                         = 63, /* Batk */
    00123       USCRIPT_BLISSYMBOLS                   = 64, /* Blis */
    00124       USCRIPT_BRAHMI                        = 65, /* Brah */
    00125       USCRIPT_CHAM                          = 66, /* Cham */
    00126       USCRIPT_CIRTH                         = 67, /* Cirt */
    00127       USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC  = 68, /* Cyrs */
    00128       USCRIPT_DEMOTIC_EGYPTIAN              = 69, /* Egyd */
    00129       USCRIPT_HIERATIC_EGYPTIAN             = 70, /* Egyh */
    00130       USCRIPT_EGYPTIAN_HIEROGLYPHS          = 71, /* Egyp */
    00131       USCRIPT_KHUTSURI                      = 72, /* Geok */
    00132       USCRIPT_SIMPLIFIED_HAN                = 73, /* Hans */
    00133       USCRIPT_TRADITIONAL_HAN               = 74, /* Hant */
    00134       USCRIPT_PAHAWH_HMONG                  = 75, /* Hmng */
    00135       USCRIPT_OLD_HUNGARIAN                 = 76, /* Hung */
    00136       USCRIPT_HARAPPAN_INDUS                = 77, /* Inds */
    00137       USCRIPT_JAVANESE                      = 78, /* Java */
    00138       USCRIPT_KAYAH_LI                      = 79, /* Kali */
    00139       USCRIPT_LATIN_FRAKTUR                 = 80, /* Latf */
    00140       USCRIPT_LATIN_GAELIC                  = 81, /* Latg */
    00141       USCRIPT_LEPCHA                        = 82, /* Lepc */
    00142       USCRIPT_LINEAR_A                      = 83, /* Lina */
    00143       USCRIPT_MANDAEAN                      = 84, /* Mand */
    00144       USCRIPT_MAYAN_HIEROGLYPHS             = 85, /* Maya */
    00145       USCRIPT_MEROITIC                      = 86, /* Mero */
    00146       USCRIPT_NKO                           = 87, /* Nkoo */
    00147       USCRIPT_ORKHON                        = 88, /* Orkh */
    00148       USCRIPT_OLD_PERMIC                    = 89, /* Perm */
    00149       USCRIPT_PHAGS_PA                      = 90, /* Phag */
    00150       USCRIPT_PHOENICIAN                    = 91, /* Phnx */
    00151       USCRIPT_PHONETIC_POLLARD              = 92, /* Plrd */
    00152       USCRIPT_RONGORONGO                    = 93, /* Roro */
    00153       USCRIPT_SARATI                        = 94, /* Sara */
    00154       USCRIPT_ESTRANGELO_SYRIAC             = 95, /* Syre */
    00155       USCRIPT_WESTERN_SYRIAC                = 96, /* Syrj */
    00156       USCRIPT_EASTERN_SYRIAC                = 97, /* Syrn */
    00157       USCRIPT_TENGWAR                       = 98, /* Teng */
    00158       USCRIPT_VAI                           = 99, /* Vaii */
    00159       USCRIPT_VISIBLE_SPEECH                = 100,/* Visp */
    00160       USCRIPT_CUNEIFORM                     = 101,/* Xsux */
    00161       USCRIPT_UNWRITTEN_LANGUAGES           = 102,/* Zxxx */
    00162       USCRIPT_UNKNOWN                       = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */
    00163
    00164       /* New script codes from ISO 15924 @stable ICU 3.8 */
    00165       USCRIPT_CARIAN                        = 104,/* Cari */
    00166       USCRIPT_JAPANESE                      = 105,/* Jpan */
    00167       USCRIPT_LANNA                         = 106,/* Lana */
    00168       USCRIPT_LYCIAN                        = 107,/* Lyci */
    00169       USCRIPT_LYDIAN                        = 108,/* Lydi */
    00170       USCRIPT_OL_CHIKI                      = 109,/* Olck */
    00171       USCRIPT_REJANG                        = 110,/* Rjng */
    00172       USCRIPT_SAURASHTRA                    = 111,/* Saur */
    00173       USCRIPT_SIGN_WRITING                  = 112,/* Sgnw */
    00174       USCRIPT_SUNDANESE                     = 113,/* Sund */
    00175       USCRIPT_MOON                          = 114,/* Moon */
    00176       USCRIPT_MEITEI_MAYEK                  = 115,/* Mtei */
    00177
    00178       /* New script codes from ISO 15924 @stable ICU 4.0 */
    00179       USCRIPT_IMPERIAL_ARAMAIC              = 116,/* Armi */
    00180       USCRIPT_AVESTAN                       = 117,/* Avst */
    00181       USCRIPT_CHAKMA                        = 118,/* Cakm */
    00182       USCRIPT_KOREAN                        = 119,/* Kore */
    00183       USCRIPT_KAITHI                        = 120,/* Kthi */
    00184       USCRIPT_MANICHAEAN                    = 121,/* Mani */
    00185       USCRIPT_INSCRIPTIONAL_PAHLAVI         = 122,/* Phli */
    00186       USCRIPT_PSALTER_PAHLAVI               = 123,/* Phlp */
    00187       USCRIPT_BOOK_PAHLAVI                  = 124,/* Phlv */
    00188       USCRIPT_INSCRIPTIONAL_PARTHIAN        = 125,/* Prti */
    00189       USCRIPT_SAMARITAN                     = 126,/* Samr */
    00190       USCRIPT_TAI_VIET                      = 127,/* Tavt */
    00191       USCRIPT_MATHEMATICAL_NOTATION         = 128,/* Zmth */
    00192       USCRIPT_SYMBOLS                       = 129,/* Zsym */
    00193
    00194       /* New script codes from ISO 15924 @draft ICU 4.4 */
    00195       USCRIPT_BAMUM                         = 130,/* Bamu */
    00196       USCRIPT_LISU                          = 131,/* Lisu */
    00197       USCRIPT_NAKHI_GEBA                    = 132,/* Nkgb */
    00198       USCRIPT_OLD_SOUTH_ARABIAN             = 133,/* Sarb */
    00199
    00200       /* Private use codes from Qaaa - Qabx are not supported*/
    00201       USCRIPT_CODE_LIMIT    = 134
    00202 } UScriptCode;
    00203
    00222 U_STABLE int32_t  U_EXPORT2
    00223 uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err);
    00224
    00233 U_STABLE const char*  U_EXPORT2
    00234 uscript_getName(UScriptCode scriptCode);
    00235
    00244 U_STABLE const char*  U_EXPORT2
    00245 uscript_getShortName(UScriptCode scriptCode);
    00246
    00255 U_STABLE UScriptCode  U_EXPORT2
    00256 uscript_getScript(UChar32 codepoint, UErrorCode *err);
    00257
    00258 #endif
    00259
    00260

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines