ICU 57.1 57.1
uscript.h
Go to the documentation of this file.
1/*
2 **********************************************************************
3 * Copyright (C) 1997-2015, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 *
7 * File USCRIPT.H
8 *
9 * Modification History:
10 *
11 * Date Name Description
12 * 07/06/2001 Ram Creation.
13 ******************************************************************************
14 */
15
16#ifndef USCRIPT_H
17#define USCRIPT_H
18#include "unicode/utypes.h"
19
24
52typedef enum UScriptCode {
53 /*
54 * Note: UScriptCode constants and their ISO script code comments
55 * are parsed by preparseucd.py.
56 * It matches lines like
57 * USCRIPT_<Unicode Script value name> = <integer>, / * <ISO script code> * /
58 */
59
63 USCRIPT_COMMON = 0, /* Zyyy */
65 USCRIPT_INHERITED = 1, /* Zinh */ /* "Code for inherited script", for non-spacing combining marks; also Qaai */
67 USCRIPT_ARABIC = 2, /* Arab */
69 USCRIPT_ARMENIAN = 3, /* Armn */
71 USCRIPT_BENGALI = 4, /* Beng */
73 USCRIPT_BOPOMOFO = 5, /* Bopo */
75 USCRIPT_CHEROKEE = 6, /* Cher */
77 USCRIPT_COPTIC = 7, /* Copt */
79 USCRIPT_CYRILLIC = 8, /* Cyrl */
81 USCRIPT_DESERET = 9, /* Dsrt */
83 USCRIPT_DEVANAGARI = 10, /* Deva */
85 USCRIPT_ETHIOPIC = 11, /* Ethi */
87 USCRIPT_GEORGIAN = 12, /* Geor */
89 USCRIPT_GOTHIC = 13, /* Goth */
91 USCRIPT_GREEK = 14, /* Grek */
93 USCRIPT_GUJARATI = 15, /* Gujr */
95 USCRIPT_GURMUKHI = 16, /* Guru */
97 USCRIPT_HAN = 17, /* Hani */
99 USCRIPT_HANGUL = 18, /* Hang */
101 USCRIPT_HEBREW = 19, /* Hebr */
103 USCRIPT_HIRAGANA = 20, /* Hira */
105 USCRIPT_KANNADA = 21, /* Knda */
107 USCRIPT_KATAKANA = 22, /* Kana */
109 USCRIPT_KHMER = 23, /* Khmr */
111 USCRIPT_LAO = 24, /* Laoo */
113 USCRIPT_LATIN = 25, /* Latn */
115 USCRIPT_MALAYALAM = 26, /* Mlym */
117 USCRIPT_MONGOLIAN = 27, /* Mong */
119 USCRIPT_MYANMAR = 28, /* Mymr */
121 USCRIPT_OGHAM = 29, /* Ogam */
123 USCRIPT_OLD_ITALIC = 30, /* Ital */
125 USCRIPT_ORIYA = 31, /* Orya */
127 USCRIPT_RUNIC = 32, /* Runr */
129 USCRIPT_SINHALA = 33, /* Sinh */
131 USCRIPT_SYRIAC = 34, /* Syrc */
133 USCRIPT_TAMIL = 35, /* Taml */
135 USCRIPT_TELUGU = 36, /* Telu */
137 USCRIPT_THAANA = 37, /* Thaa */
139 USCRIPT_THAI = 38, /* Thai */
141 USCRIPT_TIBETAN = 39, /* Tibt */
147 USCRIPT_YI = 41, /* Yiii */
148 /* New scripts in Unicode 3.2 */
150 USCRIPT_TAGALOG = 42, /* Tglg */
152 USCRIPT_HANUNOO = 43, /* Hano */
154 USCRIPT_BUHID = 44, /* Buhd */
156 USCRIPT_TAGBANWA = 45, /* Tagb */
157
158 /* New scripts in Unicode 4 */
160 USCRIPT_BRAILLE = 46, /* Brai */
162 USCRIPT_CYPRIOT = 47, /* Cprt */
164 USCRIPT_LIMBU = 48, /* Limb */
166 USCRIPT_LINEAR_B = 49, /* Linb */
168 USCRIPT_OSMANYA = 50, /* Osma */
170 USCRIPT_SHAVIAN = 51, /* Shaw */
172 USCRIPT_TAI_LE = 52, /* Tale */
174 USCRIPT_UGARITIC = 53, /* Ugar */
175
178
179 /* New scripts in Unicode 4.1 */
181 USCRIPT_BUGINESE = 55, /* Bugi */
183 USCRIPT_GLAGOLITIC = 56, /* Glag */
185 USCRIPT_KHAROSHTHI = 57, /* Khar */
187 USCRIPT_SYLOTI_NAGRI = 58, /* Sylo */
189 USCRIPT_NEW_TAI_LUE = 59, /* Talu */
191 USCRIPT_TIFINAGH = 60, /* Tfng */
193 USCRIPT_OLD_PERSIAN = 61, /* Xpeo */
194
195 /* New script codes from Unicode and ISO 15924 */
197 USCRIPT_BALINESE = 62, /* Bali */
199 USCRIPT_BATAK = 63, /* Batk */
201 USCRIPT_BLISSYMBOLS = 64, /* Blis */
203 USCRIPT_BRAHMI = 65, /* Brah */
205 USCRIPT_CHAM = 66, /* Cham */
207 USCRIPT_CIRTH = 67, /* Cirt */
217 USCRIPT_KHUTSURI = 72, /* Geok */
219 USCRIPT_SIMPLIFIED_HAN = 73, /* Hans */
221 USCRIPT_TRADITIONAL_HAN = 74, /* Hant */
223 USCRIPT_PAHAWH_HMONG = 75, /* Hmng */
225 USCRIPT_OLD_HUNGARIAN = 76, /* Hung */
227 USCRIPT_HARAPPAN_INDUS = 77, /* Inds */
229 USCRIPT_JAVANESE = 78, /* Java */
231 USCRIPT_KAYAH_LI = 79, /* Kali */
233 USCRIPT_LATIN_FRAKTUR = 80, /* Latf */
235 USCRIPT_LATIN_GAELIC = 81, /* Latg */
237 USCRIPT_LEPCHA = 82, /* Lepc */
239 USCRIPT_LINEAR_A = 83, /* Lina */
241 USCRIPT_MANDAIC = 84, /* Mand */
251 USCRIPT_NKO = 87, /* Nkoo */
253 USCRIPT_ORKHON = 88, /* Orkh */
255 USCRIPT_OLD_PERMIC = 89, /* Perm */
257 USCRIPT_PHAGS_PA = 90, /* Phag */
259 USCRIPT_PHOENICIAN = 91, /* Phnx */
261 USCRIPT_MIAO = 92, /* Plrd */
265 USCRIPT_RONGORONGO = 93, /* Roro */
267 USCRIPT_SARATI = 94, /* Sara */
271 USCRIPT_WESTERN_SYRIAC = 96, /* Syrj */
273 USCRIPT_EASTERN_SYRIAC = 97, /* Syrn */
275 USCRIPT_TENGWAR = 98, /* Teng */
277 USCRIPT_VAI = 99, /* Vaii */
279 USCRIPT_VISIBLE_SPEECH = 100,/* Visp */
281 USCRIPT_CUNEIFORM = 101,/* Xsux */
285 USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */
286
288 USCRIPT_CARIAN = 104,/* Cari */
290 USCRIPT_JAPANESE = 105,/* Jpan */
292 USCRIPT_LANNA = 106,/* Lana */
294 USCRIPT_LYCIAN = 107,/* Lyci */
296 USCRIPT_LYDIAN = 108,/* Lydi */
298 USCRIPT_OL_CHIKI = 109,/* Olck */
300 USCRIPT_REJANG = 110,/* Rjng */
302 USCRIPT_SAURASHTRA = 111,/* Saur */
304 USCRIPT_SIGN_WRITING = 112,/* Sgnw */
306 USCRIPT_SUNDANESE = 113,/* Sund */
308 USCRIPT_MOON = 114,/* Moon */
310 USCRIPT_MEITEI_MAYEK = 115,/* Mtei */
311
315 USCRIPT_AVESTAN = 117,/* Avst */
317 USCRIPT_CHAKMA = 118,/* Cakm */
319 USCRIPT_KOREAN = 119,/* Kore */
321 USCRIPT_KAITHI = 120,/* Kthi */
323 USCRIPT_MANICHAEAN = 121,/* Mani */
327 USCRIPT_PSALTER_PAHLAVI = 123,/* Phlp */
329 USCRIPT_BOOK_PAHLAVI = 124,/* Phlv */
333 USCRIPT_SAMARITAN = 126,/* Samr */
335 USCRIPT_TAI_VIET = 127,/* Tavt */
339 USCRIPT_SYMBOLS = 129,/* Zsym */
340
342 USCRIPT_BAMUM = 130,/* Bamu */
344 USCRIPT_LISU = 131,/* Lisu */
346 USCRIPT_NAKHI_GEBA = 132,/* Nkgb */
349
351 USCRIPT_BASSA_VAH = 134,/* Bass */
353 USCRIPT_DUPLOYAN = 135,/* Dupl */
354#ifndef U_HIDE_DEPRECATED_API
357#endif /* U_HIDE_DEPRECATED_API */
359 USCRIPT_ELBASAN = 136,/* Elba */
361 USCRIPT_GRANTHA = 137,/* Gran */
363 USCRIPT_KPELLE = 138,/* Kpel */
365 USCRIPT_LOMA = 139,/* Loma */
367 USCRIPT_MENDE = 140,/* Mend */
373 USCRIPT_NABATAEAN = 143,/* Nbat */
375 USCRIPT_PALMYRENE = 144,/* Palm */
377 USCRIPT_KHUDAWADI = 145,/* Sind */
381 USCRIPT_WARANG_CITI = 146,/* Wara */
382
384 USCRIPT_AFAKA = 147,/* Afak */
386 USCRIPT_JURCHEN = 148,/* Jurc */
388 USCRIPT_MRO = 149,/* Mroo */
390 USCRIPT_NUSHU = 150,/* Nshu */
392 USCRIPT_SHARADA = 151,/* Shrd */
394 USCRIPT_SORA_SOMPENG = 152,/* Sora */
396 USCRIPT_TAKRI = 153,/* Takr */
398 USCRIPT_TANGUT = 154,/* Tang */
400 USCRIPT_WOLEAI = 155,/* Wole */
401
405 USCRIPT_KHOJKI = 157,/* Khoj */
407 USCRIPT_TIRHUTA = 158,/* Tirh */
408
412 USCRIPT_MAHAJANI = 160,/* Mahj */
413
415 USCRIPT_AHOM = 161,/* Ahom */
417 USCRIPT_HATRAN = 162,/* Hatr */
419 USCRIPT_MODI = 163,/* Modi */
421 USCRIPT_MULTANI = 164,/* Mult */
423 USCRIPT_PAU_CIN_HAU = 165,/* Pauc */
425 USCRIPT_SIDDHAM = 166,/* Sidd */
426
440
460U_STABLE int32_t U_EXPORT2
461uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err);
462
473U_STABLE const char* U_EXPORT2
475
485U_STABLE const char* U_EXPORT2
487
496U_STABLE UScriptCode U_EXPORT2
498
514U_STABLE UBool U_EXPORT2
516
548U_STABLE int32_t U_EXPORT2
550 UScriptCode *scripts, int32_t capacity,
551 UErrorCode *errorCode);
552
574
587U_STABLE int32_t U_EXPORT2
588uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode);
589
590#if U_SHOW_CPLUSPLUS_API
591
593class UnicodeString;
595
605U_COMMON_API icu::UnicodeString U_EXPORT2
607
608#endif
609
619U_STABLE UScriptUsage U_EXPORT2
621
630U_STABLE UBool U_EXPORT2
632
642U_STABLE UBool U_EXPORT2
644
653U_STABLE UBool U_EXPORT2
655
656#endif
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
Definition unistr.h:294
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
Definition umachine.h:332
int8_t UBool
The ICU boolean type.
Definition umachine.h:234
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:312
#define U_STABLE
This is used to declare a function as a stable public ICU C API.
Definition umachine.h:109
UBool uscript_isCased(UScriptCode script)
Returns TRUE if in modern (or most recent) usage of the script case distinctions are customary.
U_COMMON_API icu::UnicodeString uscript_getSampleUnicodeString(UScriptCode script)
Returns the script sample character string.
int32_t uscript_getScriptExtensions(UChar32 c, UScriptCode *scripts, int32_t capacity, UErrorCode *errorCode)
Writes code point c's Script_Extensions as a list of UScriptCode values to the output scripts array a...
UScriptCode
Constants for ISO 15924 script codes.
Definition uscript.h:52
@ USCRIPT_CYPRIOT
Definition uscript.h:162
@ USCRIPT_WOLEAI
Definition uscript.h:400
@ USCRIPT_INSCRIPTIONAL_PAHLAVI
Definition uscript.h:325
@ USCRIPT_BLISSYMBOLS
Definition uscript.h:201
@ USCRIPT_ARMENIAN
Definition uscript.h:69
@ USCRIPT_IMPERIAL_ARAMAIC
Definition uscript.h:313
@ USCRIPT_DESERET
Definition uscript.h:81
@ USCRIPT_NAKHI_GEBA
Definition uscript.h:346
@ USCRIPT_SIGN_WRITING
Sutton SignWriting.
Definition uscript.h:304
@ USCRIPT_SAURASHTRA
Definition uscript.h:302
@ USCRIPT_OGHAM
Definition uscript.h:121
@ USCRIPT_KHOJKI
Definition uscript.h:405
@ USCRIPT_HANGUL
Definition uscript.h:99
@ USCRIPT_GURMUKHI
Definition uscript.h:95
@ USCRIPT_CODE_LIMIT
One higher than the last script code constant.
Definition uscript.h:438
@ USCRIPT_HARAPPAN_INDUS
Definition uscript.h:227
@ USCRIPT_RUNIC
Definition uscript.h:127
@ USCRIPT_SHAVIAN
Definition uscript.h:170
@ USCRIPT_CANADIAN_ABORIGINAL
Canadian_Aboriginal script.
Definition uscript.h:143
@ USCRIPT_JAVANESE
Definition uscript.h:229
@ USCRIPT_KPELLE
Definition uscript.h:363
@ USCRIPT_OLD_NORTH_ARABIAN
Definition uscript.h:371
@ USCRIPT_BOOK_PAHLAVI
Definition uscript.h:329
@ USCRIPT_TRADITIONAL_HAN
Definition uscript.h:221
@ USCRIPT_CUNEIFORM
Definition uscript.h:281
@ USCRIPT_MENDE
Mende Kikakui.
Definition uscript.h:367
@ USCRIPT_AHOM
Definition uscript.h:415
@ USCRIPT_VAI
Definition uscript.h:277
@ USCRIPT_LATIN_GAELIC
Definition uscript.h:235
@ USCRIPT_BRAILLE
Definition uscript.h:160
@ USCRIPT_THAI
Definition uscript.h:139
@ USCRIPT_MAHAJANI
Definition uscript.h:412
@ USCRIPT_LYDIAN
Definition uscript.h:296
@ USCRIPT_MEITEI_MAYEK
Definition uscript.h:310
@ USCRIPT_SYMBOLS
Definition uscript.h:339
@ USCRIPT_MODI
Definition uscript.h:419
@ USCRIPT_BALINESE
Definition uscript.h:197
@ USCRIPT_LAO
Definition uscript.h:111
@ USCRIPT_TIRHUTA
Definition uscript.h:407
@ USCRIPT_GRANTHA
Definition uscript.h:361
@ USCRIPT_BRAHMI
Definition uscript.h:203
@ USCRIPT_ORKHON
Definition uscript.h:253
@ USCRIPT_CHAKMA
Definition uscript.h:317
@ USCRIPT_PHAGS_PA
Definition uscript.h:257
@ USCRIPT_HEBREW
Definition uscript.h:101
@ USCRIPT_YI
Definition uscript.h:147
@ USCRIPT_MONGOLIAN
Definition uscript.h:117
@ USCRIPT_BUGINESE
Definition uscript.h:181
@ USCRIPT_NABATAEAN
Definition uscript.h:373
@ USCRIPT_HANUNOO
Definition uscript.h:152
@ USCRIPT_TAGBANWA
Definition uscript.h:156
@ USCRIPT_TIBETAN
Definition uscript.h:141
@ USCRIPT_SYLOTI_NAGRI
Definition uscript.h:187
@ USCRIPT_LISU
Definition uscript.h:344
@ USCRIPT_MANICHAEAN
Definition uscript.h:323
@ USCRIPT_JAPANESE
Definition uscript.h:290
@ USCRIPT_TAGALOG
Definition uscript.h:150
@ USCRIPT_CARIAN
Definition uscript.h:288
@ USCRIPT_OLD_PERMIC
Definition uscript.h:255
@ USCRIPT_LANNA
Definition uscript.h:292
@ USCRIPT_BUHID
Definition uscript.h:154
@ USCRIPT_MEROITIC
Definition uscript.h:249
@ USCRIPT_TAI_VIET
Definition uscript.h:335
@ USCRIPT_INSCRIPTIONAL_PARTHIAN
Definition uscript.h:331
@ USCRIPT_MANDAEAN
Definition uscript.h:243
@ USCRIPT_MEROITIC_HIEROGLYPHS
Definition uscript.h:247
@ USCRIPT_UCAS
Canadian_Aboriginal script (alias).
Definition uscript.h:145
@ USCRIPT_BASSA_VAH
Definition uscript.h:351
@ USCRIPT_TAKRI
Definition uscript.h:396
@ USCRIPT_EASTERN_SYRIAC
Definition uscript.h:273
@ USCRIPT_MOON
Definition uscript.h:308
@ USCRIPT_TAMIL
Definition uscript.h:133
@ USCRIPT_HIRAGANA
Definition uscript.h:103
@ USCRIPT_PHONETIC_POLLARD
Definition uscript.h:263
@ USCRIPT_UGARITIC
Definition uscript.h:174
@ USCRIPT_ARABIC
Definition uscript.h:67
@ USCRIPT_CHAM
Definition uscript.h:205
@ USCRIPT_GREEK
Definition uscript.h:91
@ USCRIPT_WESTERN_SYRIAC
Definition uscript.h:271
@ USCRIPT_KOREAN
Definition uscript.h:319
@ USCRIPT_RONGORONGO
Definition uscript.h:265
@ USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC
Definition uscript.h:209
@ USCRIPT_BAMUM
Definition uscript.h:342
@ USCRIPT_LINEAR_B
Definition uscript.h:166
@ USCRIPT_MULTANI
Definition uscript.h:421
@ USCRIPT_ANATOLIAN_HIEROGLYPHS
Definition uscript.h:403
@ USCRIPT_SYRIAC
Definition uscript.h:131
@ USCRIPT_MATHEMATICAL_NOTATION
Definition uscript.h:337
@ USCRIPT_DUPLOYAN
Definition uscript.h:353
@ USCRIPT_MANDAIC
Definition uscript.h:241
@ USCRIPT_MAYAN_HIEROGLYPHS
Definition uscript.h:245
@ USCRIPT_COMMON
Definition uscript.h:63
@ USCRIPT_COPTIC
Definition uscript.h:77
@ USCRIPT_DEVANAGARI
Definition uscript.h:83
@ USCRIPT_LOMA
Definition uscript.h:365
@ USCRIPT_HIERATIC_EGYPTIAN
Definition uscript.h:213
@ USCRIPT_UNWRITTEN_LANGUAGES
Definition uscript.h:283
@ USCRIPT_WARANG_CITI
Definition uscript.h:381
@ USCRIPT_KAITHI
Definition uscript.h:321
@ USCRIPT_THAANA
Definition uscript.h:137
@ USCRIPT_AFAKA
Definition uscript.h:384
@ USCRIPT_KHMER
Definition uscript.h:109
@ USCRIPT_LATIN
Definition uscript.h:113
@ USCRIPT_DEMOTIC_EGYPTIAN
Definition uscript.h:211
@ USCRIPT_GLAGOLITIC
Definition uscript.h:183
@ USCRIPT_OL_CHIKI
Definition uscript.h:298
@ USCRIPT_TIFINAGH
Definition uscript.h:191
@ USCRIPT_SIDDHAM
Definition uscript.h:425
@ USCRIPT_OLD_SOUTH_ARABIAN
Definition uscript.h:348
@ USCRIPT_PAU_CIN_HAU
Definition uscript.h:423
@ USCRIPT_SAMARITAN
Definition uscript.h:333
@ USCRIPT_ELBASAN
Definition uscript.h:359
@ USCRIPT_INHERITED
Definition uscript.h:65
@ USCRIPT_PSALTER_PAHLAVI
Definition uscript.h:327
@ USCRIPT_EGYPTIAN_HIEROGLYPHS
Definition uscript.h:215
@ USCRIPT_CIRTH
Definition uscript.h:207
@ USCRIPT_PALMYRENE
Definition uscript.h:375
@ USCRIPT_PAHAWH_HMONG
Definition uscript.h:223
@ USCRIPT_CHEROKEE
Definition uscript.h:75
@ USCRIPT_INVALID_CODE
Definition uscript.h:61
@ USCRIPT_OLD_HUNGARIAN
Definition uscript.h:225
@ USCRIPT_BATAK
Definition uscript.h:199
@ USCRIPT_ETHIOPIC
Definition uscript.h:85
@ USCRIPT_CYRILLIC
Definition uscript.h:79
@ USCRIPT_LIMBU
Definition uscript.h:164
@ USCRIPT_NKO
Definition uscript.h:251
@ USCRIPT_GOTHIC
Definition uscript.h:89
@ USCRIPT_KHUTSURI
Definition uscript.h:217
@ USCRIPT_KHAROSHTHI
Definition uscript.h:185
@ USCRIPT_KATAKANA
Definition uscript.h:107
@ USCRIPT_ORIYA
Definition uscript.h:125
@ USCRIPT_OLD_ITALIC
Definition uscript.h:123
@ USCRIPT_MALAYALAM
Definition uscript.h:115
@ USCRIPT_HAN
Definition uscript.h:97
@ USCRIPT_LINEAR_A
Definition uscript.h:239
@ USCRIPT_TENGWAR
Definition uscript.h:275
@ USCRIPT_VISIBLE_SPEECH
Definition uscript.h:279
@ USCRIPT_LATIN_FRAKTUR
Definition uscript.h:233
@ USCRIPT_UNKNOWN
Definition uscript.h:285
@ USCRIPT_SINDHI
Definition uscript.h:379
@ USCRIPT_NUSHU
Definition uscript.h:390
@ USCRIPT_SIMPLIFIED_HAN
Definition uscript.h:219
@ USCRIPT_SUNDANESE
Definition uscript.h:306
@ USCRIPT_MYANMAR
Definition uscript.h:119
@ USCRIPT_NEW_TAI_LUE
Definition uscript.h:189
@ USCRIPT_MEROITIC_CURSIVE
Definition uscript.h:369
@ USCRIPT_GUJARATI
Definition uscript.h:93
@ USCRIPT_BOPOMOFO
Definition uscript.h:73
@ USCRIPT_LEPCHA
Definition uscript.h:237
@ USCRIPT_MIAO
Definition uscript.h:261
@ USCRIPT_KATAKANA_OR_HIRAGANA
New script code in Unicode 4.0.1.
Definition uscript.h:177
@ USCRIPT_JURCHEN
Definition uscript.h:386
@ USCRIPT_PHOENICIAN
Definition uscript.h:259
@ USCRIPT_SHARADA
Definition uscript.h:392
@ USCRIPT_SINHALA
Definition uscript.h:129
@ USCRIPT_KAYAH_LI
Definition uscript.h:231
@ USCRIPT_SARATI
Definition uscript.h:267
@ USCRIPT_HATRAN
Definition uscript.h:417
@ USCRIPT_TELUGU
Definition uscript.h:135
@ USCRIPT_MRO
Definition uscript.h:388
@ USCRIPT_DUPLOYAN_SHORTAND
Definition uscript.h:356
@ USCRIPT_ESTRANGELO_SYRIAC
Definition uscript.h:269
@ USCRIPT_KANNADA
Definition uscript.h:105
@ USCRIPT_OSMANYA
Definition uscript.h:168
@ USCRIPT_BENGALI
Definition uscript.h:71
@ USCRIPT_GEORGIAN
Definition uscript.h:87
@ USCRIPT_TANGUT
Definition uscript.h:398
@ USCRIPT_REJANG
Definition uscript.h:300
@ USCRIPT_KHUDAWADI
Definition uscript.h:377
@ USCRIPT_LYCIAN
Definition uscript.h:294
@ USCRIPT_SORA_SOMPENG
Definition uscript.h:394
@ USCRIPT_OLD_PERSIAN
Definition uscript.h:193
@ USCRIPT_TAI_LE
Definition uscript.h:172
@ USCRIPT_CAUCASIAN_ALBANIAN
Definition uscript.h:410
@ USCRIPT_AVESTAN
Definition uscript.h:315
const char * uscript_getName(UScriptCode scriptCode)
Returns the long Unicode script name, if there is one.
UScriptCode uscript_getScript(UChar32 codepoint, UErrorCode *err)
Gets the script code associated with the given codepoint.
UScriptUsage
Script usage constants.
Definition uscript.h:560
@ USCRIPT_USAGE_EXCLUDED
Candidate for Exclusion from Identifiers.
Definition uscript.h:566
@ USCRIPT_USAGE_RECOMMENDED
Recommended script.
Definition uscript.h:572
@ USCRIPT_USAGE_LIMITED_USE
Limited Use script.
Definition uscript.h:568
@ USCRIPT_USAGE_UNKNOWN
Unknown script usage.
Definition uscript.h:564
@ USCRIPT_USAGE_ASPIRATIONAL
Aspirational Use script.
Definition uscript.h:570
@ USCRIPT_USAGE_NOT_ENCODED
Not encoded in Unicode.
Definition uscript.h:562
const char * uscript_getShortName(UScriptCode scriptCode)
Returns the 4-letter ISO 15924 script code, which is the same as the short Unicode script name if Uni...
UScriptUsage uscript_getUsage(UScriptCode script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.
int32_t uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode)
Writes the script sample character string.
UBool uscript_isRightToLeft(UScriptCode script)
Returns TRUE if the script is written right-to-left.
UBool uscript_breaksBetweenLetters(UScriptCode script)
Returns TRUE if the script allows line breaks between letters (excluding hyphenation).
int32_t uscript_getCode(const char *nameOrAbbrOrLocale, UScriptCode *fillIn, int32_t capacity, UErrorCode *err)
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name.
UBool uscript_hasScript(UChar32 c, UScriptCode sc)
Do the Script_Extensions of code point c contain script sc?
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
Definition utypes.h:476
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.
Definition utypes.h:357
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
Definition uversion.h:130
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Definition uversion.h:129