• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  **********************************************************************
3  *   Copyright (C) 1997-2011, 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 
20 /**
21  * \file
22  * \brief C API: Unicode Script Information
23  */
24 
25 /**
26  * Constants for ISO 15924 script codes.
27  *
28  * Many of these script codes - those from Unicode's ScriptNames.txt -
29  * are character property values for Unicode's Script property.
30  * See UAX #24 Script Names (http://www.unicode.org/reports/tr24/).
31  *
32  * Starting with ICU 3.6, constants for most ISO 15924 script codes
33  * are included (currently excluding private-use codes Qaaa..Qabx).
34  * For scripts for which there are codes in ISO 15924 but which are not
35  * used in the Unicode Character Database (UCD), there are no Unicode characters
36  * associated with those scripts.
37  *
38  * For example, there are no characters that have a UCD script code of
39  * Hans or Hant. All Han ideographs have the Hani script code.
40  * The Hans and Hant script codes are used with CLDR data.
41  *
42  * ISO 15924 script codes are included for use with CLDR and similar.
43  *
44  * @stable ICU 2.2
45  */
46 typedef enum UScriptCode {
47       /** @stable ICU 2.2 */
48       USCRIPT_INVALID_CODE = -1,
49       /** @stable ICU 2.2 */
50       USCRIPT_COMMON       =  0,  /* Zyyy */
51       /** @stable ICU 2.2 */
52       USCRIPT_INHERITED    =  1,  /* Zinh */ /* "Code for inherited script", for non-spacing combining marks; also Qaai */
53       /** @stable ICU 2.2 */
54       USCRIPT_ARABIC       =  2,  /* Arab */
55       /** @stable ICU 2.2 */
56       USCRIPT_ARMENIAN     =  3,  /* Armn */
57       /** @stable ICU 2.2 */
58       USCRIPT_BENGALI      =  4,  /* Beng */
59       /** @stable ICU 2.2 */
60       USCRIPT_BOPOMOFO     =  5,  /* Bopo */
61       /** @stable ICU 2.2 */
62       USCRIPT_CHEROKEE     =  6,  /* Cher */
63       /** @stable ICU 2.2 */
64       USCRIPT_COPTIC       =  7,  /* Copt */
65       /** @stable ICU 2.2 */
66       USCRIPT_CYRILLIC     =  8,  /* Cyrl */
67       /** @stable ICU 2.2 */
68       USCRIPT_DESERET      =  9,  /* Dsrt */
69       /** @stable ICU 2.2 */
70       USCRIPT_DEVANAGARI   = 10,  /* Deva */
71       /** @stable ICU 2.2 */
72       USCRIPT_ETHIOPIC     = 11,  /* Ethi */
73       /** @stable ICU 2.2 */
74       USCRIPT_GEORGIAN     = 12,  /* Geor */
75       /** @stable ICU 2.2 */
76       USCRIPT_GOTHIC       = 13,  /* Goth */
77       /** @stable ICU 2.2 */
78       USCRIPT_GREEK        = 14,  /* Grek */
79       /** @stable ICU 2.2 */
80       USCRIPT_GUJARATI     = 15,  /* Gujr */
81       /** @stable ICU 2.2 */
82       USCRIPT_GURMUKHI     = 16,  /* Guru */
83       /** @stable ICU 2.2 */
84       USCRIPT_HAN          = 17,  /* Hani */
85       /** @stable ICU 2.2 */
86       USCRIPT_HANGUL       = 18,  /* Hang */
87       /** @stable ICU 2.2 */
88       USCRIPT_HEBREW       = 19,  /* Hebr */
89       /** @stable ICU 2.2 */
90       USCRIPT_HIRAGANA     = 20,  /* Hira */
91       /** @stable ICU 2.2 */
92       USCRIPT_KANNADA      = 21,  /* Knda */
93       /** @stable ICU 2.2 */
94       USCRIPT_KATAKANA     = 22,  /* Kana */
95       /** @stable ICU 2.2 */
96       USCRIPT_KHMER        = 23,  /* Khmr */
97       /** @stable ICU 2.2 */
98       USCRIPT_LAO          = 24,  /* Laoo */
99       /** @stable ICU 2.2 */
100       USCRIPT_LATIN        = 25,  /* Latn */
101       /** @stable ICU 2.2 */
102       USCRIPT_MALAYALAM    = 26,  /* Mlym */
103       /** @stable ICU 2.2 */
104       USCRIPT_MONGOLIAN    = 27,  /* Mong */
105       /** @stable ICU 2.2 */
106       USCRIPT_MYANMAR      = 28,  /* Mymr */
107       /** @stable ICU 2.2 */
108       USCRIPT_OGHAM        = 29,  /* Ogam */
109       /** @stable ICU 2.2 */
110       USCRIPT_OLD_ITALIC   = 30,  /* Ital */
111       /** @stable ICU 2.2 */
112       USCRIPT_ORIYA        = 31,  /* Orya */
113       /** @stable ICU 2.2 */
114       USCRIPT_RUNIC        = 32,  /* Runr */
115       /** @stable ICU 2.2 */
116       USCRIPT_SINHALA      = 33,  /* Sinh */
117       /** @stable ICU 2.2 */
118       USCRIPT_SYRIAC       = 34,  /* Syrc */
119       /** @stable ICU 2.2 */
120       USCRIPT_TAMIL        = 35,  /* Taml */
121       /** @stable ICU 2.2 */
122       USCRIPT_TELUGU       = 36,  /* Telu */
123       /** @stable ICU 2.2 */
124       USCRIPT_THAANA       = 37,  /* Thaa */
125       /** @stable ICU 2.2 */
126       USCRIPT_THAI         = 38,  /* Thai */
127       /** @stable ICU 2.2 */
128       USCRIPT_TIBETAN      = 39,  /* Tibt */
129       /** Canadian_Aboriginal script. @stable ICU 2.6 */
130       USCRIPT_CANADIAN_ABORIGINAL = 40,  /* Cans */
131       /** Canadian_Aboriginal script (alias). @stable ICU 2.2 */
132       USCRIPT_UCAS         = USCRIPT_CANADIAN_ABORIGINAL,
133       /** @stable ICU 2.2 */
134       USCRIPT_YI           = 41,  /* Yiii */
135       /* New scripts in Unicode 3.2 */
136       /** @stable ICU 2.2 */
137       USCRIPT_TAGALOG      = 42,  /* Tglg */
138       /** @stable ICU 2.2 */
139       USCRIPT_HANUNOO      = 43,  /* Hano */
140       /** @stable ICU 2.2 */
141       USCRIPT_BUHID        = 44,  /* Buhd */
142       /** @stable ICU 2.2 */
143       USCRIPT_TAGBANWA     = 45,  /* Tagb */
144 
145       /* New scripts in Unicode 4 */
146       /** @stable ICU 2.6 */
147       USCRIPT_BRAILLE      = 46,  /* Brai */
148       /** @stable ICU 2.6 */
149       USCRIPT_CYPRIOT      = 47,  /* Cprt */
150       /** @stable ICU 2.6 */
151       USCRIPT_LIMBU        = 48,  /* Limb */
152       /** @stable ICU 2.6 */
153       USCRIPT_LINEAR_B     = 49,  /* Linb */
154       /** @stable ICU 2.6 */
155       USCRIPT_OSMANYA      = 50,  /* Osma */
156       /** @stable ICU 2.6 */
157       USCRIPT_SHAVIAN      = 51,  /* Shaw */
158       /** @stable ICU 2.6 */
159       USCRIPT_TAI_LE       = 52,  /* Tale */
160       /** @stable ICU 2.6 */
161       USCRIPT_UGARITIC     = 53,  /* Ugar */
162 
163       /** New script code in Unicode 4.0.1 @stable ICU 3.0 */
164       USCRIPT_KATAKANA_OR_HIRAGANA = 54,/*Hrkt */
165 
166       /* New scripts in Unicode 4.1 */
167       /** @stable ICU 3.4 */
168       USCRIPT_BUGINESE      = 55, /* Bugi */
169       /** @stable ICU 3.4 */
170       USCRIPT_GLAGOLITIC    = 56, /* Glag */
171       /** @stable ICU 3.4 */
172       USCRIPT_KHAROSHTHI    = 57, /* Khar */
173       /** @stable ICU 3.4 */
174       USCRIPT_SYLOTI_NAGRI  = 58, /* Sylo */
175       /** @stable ICU 3.4 */
176       USCRIPT_NEW_TAI_LUE   = 59, /* Talu */
177       /** @stable ICU 3.4 */
178       USCRIPT_TIFINAGH      = 60, /* Tfng */
179       /** @stable ICU 3.4 */
180       USCRIPT_OLD_PERSIAN   = 61, /* Xpeo */
181 
182       /* New script codes from ISO 15924 */
183       /** @stable ICU 3.6 */
184       USCRIPT_BALINESE                      = 62, /* Bali */
185       /** @stable ICU 3.6 */
186       USCRIPT_BATAK                         = 63, /* Batk */
187       /** @stable ICU 3.6 */
188       USCRIPT_BLISSYMBOLS                   = 64, /* Blis */
189       /** @stable ICU 3.6 */
190       USCRIPT_BRAHMI                        = 65, /* Brah */
191       /** @stable ICU 3.6 */
192       USCRIPT_CHAM                          = 66, /* Cham */
193       /** @stable ICU 3.6 */
194       USCRIPT_CIRTH                         = 67, /* Cirt */
195       /** @stable ICU 3.6 */
196       USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC  = 68, /* Cyrs */
197       /** @stable ICU 3.6 */
198       USCRIPT_DEMOTIC_EGYPTIAN              = 69, /* Egyd */
199       /** @stable ICU 3.6 */
200       USCRIPT_HIERATIC_EGYPTIAN             = 70, /* Egyh */
201       /** @stable ICU 3.6 */
202       USCRIPT_EGYPTIAN_HIEROGLYPHS          = 71, /* Egyp */
203       /** @stable ICU 3.6 */
204       USCRIPT_KHUTSURI                      = 72, /* Geok */
205       /** @stable ICU 3.6 */
206       USCRIPT_SIMPLIFIED_HAN                = 73, /* Hans */
207       /** @stable ICU 3.6 */
208       USCRIPT_TRADITIONAL_HAN               = 74, /* Hant */
209       /** @stable ICU 3.6 */
210       USCRIPT_PAHAWH_HMONG                  = 75, /* Hmng */
211       /** @stable ICU 3.6 */
212       USCRIPT_OLD_HUNGARIAN                 = 76, /* Hung */
213       /** @stable ICU 3.6 */
214       USCRIPT_HARAPPAN_INDUS                = 77, /* Inds */
215       /** @stable ICU 3.6 */
216       USCRIPT_JAVANESE                      = 78, /* Java */
217       /** @stable ICU 3.6 */
218       USCRIPT_KAYAH_LI                      = 79, /* Kali */
219       /** @stable ICU 3.6 */
220       USCRIPT_LATIN_FRAKTUR                 = 80, /* Latf */
221       /** @stable ICU 3.6 */
222       USCRIPT_LATIN_GAELIC                  = 81, /* Latg */
223       /** @stable ICU 3.6 */
224       USCRIPT_LEPCHA                        = 82, /* Lepc */
225       /** @stable ICU 3.6 */
226       USCRIPT_LINEAR_A                      = 83, /* Lina */
227       /** @stable ICU 4.6 */
228       USCRIPT_MANDAIC                       = 84, /* Mand */
229       /** @stable ICU 3.6 */
230       USCRIPT_MANDAEAN                      = USCRIPT_MANDAIC,
231       /** @stable ICU 3.6 */
232       USCRIPT_MAYAN_HIEROGLYPHS             = 85, /* Maya */
233       /** @stable ICU 4.6 */
234       USCRIPT_MEROITIC_HIEROGLYPHS          = 86, /* Mero */
235       /** @stable ICU 3.6 */
236       USCRIPT_MEROITIC                      = USCRIPT_MEROITIC_HIEROGLYPHS,
237       /** @stable ICU 3.6 */
238       USCRIPT_NKO                           = 87, /* Nkoo */
239       /** @stable ICU 3.6 */
240       USCRIPT_ORKHON                        = 88, /* Orkh */
241       /** @stable ICU 3.6 */
242       USCRIPT_OLD_PERMIC                    = 89, /* Perm */
243       /** @stable ICU 3.6 */
244       USCRIPT_PHAGS_PA                      = 90, /* Phag */
245       /** @stable ICU 3.6 */
246       USCRIPT_PHOENICIAN                    = 91, /* Phnx */
247       /** @stable ICU 3.6 */
248       USCRIPT_PHONETIC_POLLARD              = 92, /* Plrd */
249       /** @stable ICU 3.6 */
250       USCRIPT_RONGORONGO                    = 93, /* Roro */
251       /** @stable ICU 3.6 */
252       USCRIPT_SARATI                        = 94, /* Sara */
253       /** @stable ICU 3.6 */
254       USCRIPT_ESTRANGELO_SYRIAC             = 95, /* Syre */
255       /** @stable ICU 3.6 */
256       USCRIPT_WESTERN_SYRIAC                = 96, /* Syrj */
257       /** @stable ICU 3.6 */
258       USCRIPT_EASTERN_SYRIAC                = 97, /* Syrn */
259       /** @stable ICU 3.6 */
260       USCRIPT_TENGWAR                       = 98, /* Teng */
261       /** @stable ICU 3.6 */
262       USCRIPT_VAI                           = 99, /* Vaii */
263       /** @stable ICU 3.6 */
264       USCRIPT_VISIBLE_SPEECH                = 100,/* Visp */
265       /** @stable ICU 3.6 */
266       USCRIPT_CUNEIFORM                     = 101,/* Xsux */
267       /** @stable ICU 3.6 */
268       USCRIPT_UNWRITTEN_LANGUAGES           = 102,/* Zxxx */
269       /** @stable ICU 3.6 */
270       USCRIPT_UNKNOWN                       = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */
271 
272       /* New script codes from ISO 15924 */
273       /** @stable ICU 3.8 */
274       USCRIPT_CARIAN                        = 104,/* Cari */
275       /** @stable ICU 3.8 */
276       USCRIPT_JAPANESE                      = 105,/* Jpan */
277       /** @stable ICU 3.8 */
278       USCRIPT_LANNA                         = 106,/* Lana */
279       /** @stable ICU 3.8 */
280       USCRIPT_LYCIAN                        = 107,/* Lyci */
281       /** @stable ICU 3.8 */
282       USCRIPT_LYDIAN                        = 108,/* Lydi */
283       /** @stable ICU 3.8 */
284       USCRIPT_OL_CHIKI                      = 109,/* Olck */
285       /** @stable ICU 3.8 */
286       USCRIPT_REJANG                        = 110,/* Rjng */
287       /** @stable ICU 3.8 */
288       USCRIPT_SAURASHTRA                    = 111,/* Saur */
289       /** @stable ICU 3.8 */
290       USCRIPT_SIGN_WRITING                  = 112,/* Sgnw */
291       /** @stable ICU 3.8 */
292       USCRIPT_SUNDANESE                     = 113,/* Sund */
293       /** @stable ICU 3.8 */
294       USCRIPT_MOON                          = 114,/* Moon */
295       /** @stable ICU 3.8 */
296       USCRIPT_MEITEI_MAYEK                  = 115,/* Mtei */
297 
298       /* New script codes from ISO 15924 */
299       /** @stable ICU 4.0 */
300       USCRIPT_IMPERIAL_ARAMAIC              = 116,/* Armi */
301       /** @stable ICU 4.0 */
302       USCRIPT_AVESTAN                       = 117,/* Avst */
303       /** @stable ICU 4.0 */
304       USCRIPT_CHAKMA                        = 118,/* Cakm */
305       /** @stable ICU 4.0 */
306       USCRIPT_KOREAN                        = 119,/* Kore */
307       /** @stable ICU 4.0 */
308       USCRIPT_KAITHI                        = 120,/* Kthi */
309       /** @stable ICU 4.0 */
310       USCRIPT_MANICHAEAN                    = 121,/* Mani */
311       /** @stable ICU 4.0 */
312       USCRIPT_INSCRIPTIONAL_PAHLAVI         = 122,/* Phli */
313       /** @stable ICU 4.0 */
314       USCRIPT_PSALTER_PAHLAVI               = 123,/* Phlp */
315       /** @stable ICU 4.0 */
316       USCRIPT_BOOK_PAHLAVI                  = 124,/* Phlv */
317       /** @stable ICU 4.0 */
318       USCRIPT_INSCRIPTIONAL_PARTHIAN        = 125,/* Prti */
319       /** @stable ICU 4.0 */
320       USCRIPT_SAMARITAN                     = 126,/* Samr */
321       /** @stable ICU 4.0 */
322       USCRIPT_TAI_VIET                      = 127,/* Tavt */
323       /** @stable ICU 4.0 */
324       USCRIPT_MATHEMATICAL_NOTATION         = 128,/* Zmth */
325       /** @stable ICU 4.0 */
326       USCRIPT_SYMBOLS                       = 129,/* Zsym */
327 
328       /* New script codes from ISO 15924 */
329       /** @stable ICU 4.4 */
330       USCRIPT_BAMUM                         = 130,/* Bamu */
331       /** @stable ICU 4.4 */
332       USCRIPT_LISU                          = 131,/* Lisu */
333       /** @stable ICU 4.4 */
334       USCRIPT_NAKHI_GEBA                    = 132,/* Nkgb */
335       /** @stable ICU 4.4 */
336       USCRIPT_OLD_SOUTH_ARABIAN             = 133,/* Sarb */
337 
338       /* New script codes from ISO 15924 */
339       /** @stable ICU 4.6 */
340       USCRIPT_BASSA_VAH                     = 134,/* Bass */
341       /** @stable ICU 4.6 */
342       USCRIPT_DUPLOYAN_SHORTAND             = 135,/* Dupl */
343       /** @stable ICU 4.6 */
344       USCRIPT_ELBASAN                       = 136,/* Elba */
345       /** @stable ICU 4.6 */
346       USCRIPT_GRANTHA                       = 137,/* Gran */
347       /** @stable ICU 4.6 */
348       USCRIPT_KPELLE                        = 138,/* Kpel */
349       /** @stable ICU 4.6 */
350       USCRIPT_LOMA                          = 139,/* Loma */
351       /** @stable ICU 4.6 */
352       USCRIPT_MENDE                         = 140,/* Mend */
353       /** @stable ICU 4.6 */
354       USCRIPT_MEROITIC_CURSIVE              = 141,/* Merc */
355       /** @stable ICU 4.6 */
356       USCRIPT_OLD_NORTH_ARABIAN             = 142,/* Narb */
357       /** @stable ICU 4.6 */
358       USCRIPT_NABATAEAN                     = 143,/* Nbat */
359       /** @stable ICU 4.6 */
360       USCRIPT_PALMYRENE                     = 144,/* Palm */
361       /** @stable ICU 4.6 */
362       USCRIPT_SINDHI                        = 145,/* Sind */
363       /** @stable ICU 4.6 */
364       USCRIPT_WARANG_CITI                   = 146,/* Wara */
365 
366       /** @stable ICU 4.8 */
367       USCRIPT_AFAKA                         = 147,/* Afak */
368       /** @stable ICU 4.8 */
369       USCRIPT_JURCHEN                       = 148,/* Jurc */
370       /** @stable ICU 4.8 */
371       USCRIPT_MRO                           = 149,/* Mroo */
372       /** @stable ICU 4.8 */
373       USCRIPT_NUSHU                         = 150,/* Nshu */
374       /** @stable ICU 4.8 */
375       USCRIPT_SHARADA                       = 151,/* Shrd */
376       /** @stable ICU 4.8 */
377       USCRIPT_SORA_SOMPENG                  = 152,/* Sora */
378       /** @stable ICU 4.8 */
379       USCRIPT_TAKRI                         = 153,/* Takr */
380       /** @stable ICU 4.8 */
381       USCRIPT_TANGUT                        = 154,/* Tang */
382       /** @stable ICU 4.8 */
383       USCRIPT_WOLEAI                        = 155,/* Wole */
384 
385       /* Private use codes from Qaaa - Qabx are not supported */
386 
387       /** @stable ICU 2.2 */
388       USCRIPT_CODE_LIMIT    = 156
389 } UScriptCode;
390 
391 /**
392  * Gets script codes associated with the given locale or ISO 15924 abbreviation or name.
393  * Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym".
394  * Fills in USCRIPT_LATIN given "en" OR "en_US"
395  * If required capacity is greater than capacity of the destination buffer then the error code
396  * is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned
397  *
398  * <p>Note: To search by short or long script alias only, use
399  * u_getPropertyValueEnum(UCHAR_SCRIPT, alias) instead.  This does
400  * a fast lookup with no access of the locale data.
401  * @param nameOrAbbrOrLocale name of the script, as given in
402  * PropertyValueAliases.txt, or ISO 15924 code or locale
403  * @param fillIn the UScriptCode buffer to fill in the script code
404  * @param capacity the capacity (size) fo UScriptCode buffer passed in.
405  * @param err the error status code.
406  * @return The number of script codes filled in the buffer passed in
407  * @stable ICU 2.4
408  */
409 U_STABLE int32_t  U_EXPORT2
410 uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err);
411 
412 /**
413  * Gets a script name associated with the given script code.
414  * Returns  "Malayam" given USCRIPT_MALAYALAM
415  * @param scriptCode UScriptCode enum
416  * @return script long name as given in
417  * PropertyValueAliases.txt, or NULL if scriptCode is invalid
418  * @stable ICU 2.4
419  */
420 U_STABLE const char*  U_EXPORT2
421 uscript_getName(UScriptCode scriptCode);
422 
423 /**
424  * Gets a script name associated with the given script code.
425  * Returns  "Mlym" given USCRIPT_MALAYALAM
426  * @param scriptCode UScriptCode enum
427  * @return script abbreviated name as given in
428  * PropertyValueAliases.txt, or NULL if scriptCode is invalid
429  * @stable ICU 2.4
430  */
431 U_STABLE const char*  U_EXPORT2
432 uscript_getShortName(UScriptCode scriptCode);
433 
434 /**
435  * Gets the script code associated with the given codepoint.
436  * Returns USCRIPT_MALAYALAM given 0x0D02
437  * @param codepoint UChar32 codepoint
438  * @param err the error status code.
439  * @return The UScriptCode, or 0 if codepoint is invalid
440  * @stable ICU 2.4
441  */
442 U_STABLE UScriptCode  U_EXPORT2
443 uscript_getScript(UChar32 codepoint, UErrorCode *err);
444 
445 /**
446  * Is code point c used in script sc?
447  * That is, does code point c have the Script property value sc,
448  * or do code point c's Script_Extensions include script code sc?
449  *
450  * Some characters are commonly used in multiple scripts.
451  * For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
452  *
453  * The Script_Extensions property is provisional. It may be modified or removed
454  * in future versions of the Unicode Standard, and thus in ICU.
455  * @param c code point
456  * @param sc script code
457  * @return TRUE if Script(c)==sc or sc is in Script_Extensions(c)
458  * @draft ICU 4.6
459  */
460 U_DRAFT UBool U_EXPORT2
461 uscript_hasScript(UChar32 c, UScriptCode sc);
462 
463 /**
464  * Writes code point c's Script_Extensions as a list of UScriptCode values
465  * to the output scripts array.
466  *
467  * Some characters are commonly used in multiple scripts.
468  * For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
469  *
470  * If there are more than capacity script codes to be written, then
471  * U_BUFFER_OVERFLOW_ERROR is set and the number of Script_Extensions is returned.
472  * (Usual ICU buffer handling behavior.)
473  *
474  * The Script_Extensions property is provisional. It may be modified or removed
475  * in future versions of the Unicode Standard, and thus in ICU.
476  * @param c code point
477  * @param scripts output script code array
478  * @param capacity capacity of the scripts array
479  * @param errorCode Standard ICU error code. Its input value must
480  *                  pass the U_SUCCESS() test, or else the function returns
481  *                  immediately. Check for U_FAILURE() on output or use with
482  *                  function chaining. (See User Guide for details.)
483  * @return number of script codes in c's Script_Extensions,
484  *         written to scripts unless U_BUFFER_OVERFLOW_ERROR indicates insufficient capacity
485  * @draft ICU 4.6
486  */
487 U_DRAFT int32_t U_EXPORT2
488 uscript_getScriptExtensions(UChar32 c,
489                             UScriptCode *scripts, int32_t capacity,
490                             UErrorCode *errorCode);
491 
492 #endif
493