2001-07-10 18:33:40 +00:00
|
|
|
/*
|
2007-07-27 03:12:12 +00:00
|
|
|
**********************************************************************
|
2015-03-04 22:23:14 +00:00
|
|
|
* Copyright (C) 1997-2015, International Business Machines
|
2007-07-27 03:12:12 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
|
|
|
*
|
|
|
|
* File USCRIPT.H
|
|
|
|
*
|
|
|
|
* Modification History:
|
|
|
|
*
|
|
|
|
* Date Name Description
|
|
|
|
* 07/06/2001 Ram Creation.
|
|
|
|
******************************************************************************
|
|
|
|
*/
|
|
|
|
|
2001-07-10 18:33:40 +00:00
|
|
|
#ifndef USCRIPT_H
|
|
|
|
#define USCRIPT_H
|
2004-03-26 22:08:00 +00:00
|
|
|
#include "unicode/utypes.h"
|
2001-07-10 18:33:40 +00:00
|
|
|
|
2001-11-13 22:47:47 +00:00
|
|
|
/**
|
2005-06-22 22:39:36 +00:00
|
|
|
* \file
|
|
|
|
* \brief C API: Unicode Script Information
|
|
|
|
*/
|
2015-03-04 22:23:14 +00:00
|
|
|
|
2005-06-22 22:39:36 +00:00
|
|
|
/**
|
2006-02-09 21:38:12 +00:00
|
|
|
* Constants for ISO 15924 script codes.
|
|
|
|
*
|
2015-03-04 22:23:14 +00:00
|
|
|
* The current set of script code constants supports at least all scripts
|
|
|
|
* that are encoded in the version of Unicode which ICU currently supports.
|
|
|
|
* The names of the constants are usually derived from the
|
|
|
|
* Unicode script property value aliases.
|
|
|
|
* See UAX #24 Unicode Script Property (http://www.unicode.org/reports/tr24/)
|
|
|
|
* and http://www.unicode.org/Public/UCD/latest/ucd/PropertyValueAliases.txt .
|
2006-02-09 21:38:12 +00:00
|
|
|
*
|
|
|
|
* Starting with ICU 3.6, constants for most ISO 15924 script codes
|
2015-03-04 22:23:14 +00:00
|
|
|
* are included, for use with language tags, CLDR data, and similar.
|
|
|
|
* Some of those codes are not used in the Unicode Character Database (UCD).
|
|
|
|
* For example, there are no characters that have a UCD script property value of
|
|
|
|
* Hans or Hant. All Han ideographs have the Hani script property value in Unicode.
|
2006-02-09 21:38:12 +00:00
|
|
|
*
|
2015-03-04 22:23:14 +00:00
|
|
|
* Private-use codes Qaaa..Qabx are not included.
|
2006-02-09 21:38:12 +00:00
|
|
|
*
|
2015-03-04 22:23:14 +00:00
|
|
|
* Starting with ICU 55, script codes are only added when their scripts
|
|
|
|
* have been or will certainly be encoded in Unicode,
|
|
|
|
* and have been assigned Unicode script property value aliases,
|
|
|
|
* to ensure that their script names are stable and match the names of the constants.
|
|
|
|
* Script codes like Latf and Aran that are not subject to separate encoding
|
|
|
|
* may be added at any time.
|
2001-11-13 22:47:47 +00:00
|
|
|
*
|
2003-11-18 02:37:24 +00:00
|
|
|
* @stable ICU 2.2
|
2001-11-13 22:47:47 +00:00
|
|
|
*/
|
2005-06-28 22:23:05 +00:00
|
|
|
typedef enum UScriptCode {
|
2011-12-23 04:20:35 +00:00
|
|
|
/*
|
|
|
|
* Note: UScriptCode constants and their ISO script code comments
|
|
|
|
* are parsed by preparseucd.py.
|
|
|
|
* It matches lines like
|
|
|
|
* USCRIPT_<Unicode Script value name> = <integer>, / * <ISO script code> * /
|
|
|
|
*/
|
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_INVALID_CODE = -1,
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_COMMON = 0, /* Zyyy */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2009-11-13 19:25:21 +00:00
|
|
|
USCRIPT_INHERITED = 1, /* Zinh */ /* "Code for inherited script", for non-spacing combining marks; also Qaai */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_ARABIC = 2, /* Arab */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_ARMENIAN = 3, /* Armn */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_BENGALI = 4, /* Beng */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_BOPOMOFO = 5, /* Bopo */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_CHEROKEE = 6, /* Cher */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2004-10-13 00:39:42 +00:00
|
|
|
USCRIPT_COPTIC = 7, /* Copt */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_CYRILLIC = 8, /* Cyrl */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_DESERET = 9, /* Dsrt */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_DEVANAGARI = 10, /* Deva */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_ETHIOPIC = 11, /* Ethi */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_GEORGIAN = 12, /* Geor */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_GOTHIC = 13, /* Goth */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_GREEK = 14, /* Grek */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_GUJARATI = 15, /* Gujr */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_GURMUKHI = 16, /* Guru */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_HAN = 17, /* Hani */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_HANGUL = 18, /* Hang */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_HEBREW = 19, /* Hebr */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_HIRAGANA = 20, /* Hira */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_KANNADA = 21, /* Knda */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_KATAKANA = 22, /* Kana */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_KHMER = 23, /* Khmr */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_LAO = 24, /* Laoo */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_LATIN = 25, /* Latn */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_MALAYALAM = 26, /* Mlym */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_MONGOLIAN = 27, /* Mong */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_MYANMAR = 28, /* Mymr */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_OGHAM = 29, /* Ogam */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_OLD_ITALIC = 30, /* Ital */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_ORIYA = 31, /* Orya */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_RUNIC = 32, /* Runr */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_SINHALA = 33, /* Sinh */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_SYRIAC = 34, /* Syrc */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_TAMIL = 35, /* Taml */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_TELUGU = 36, /* Telu */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_THAANA = 37, /* Thaa */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_THAI = 38, /* Thai */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_TIBETAN = 39, /* Tibt */
|
2004-11-02 07:28:07 +00:00
|
|
|
/** Canadian_Aboriginal script. @stable ICU 2.6 */
|
2003-02-27 00:59:50 +00:00
|
|
|
USCRIPT_CANADIAN_ABORIGINAL = 40, /* Cans */
|
2003-11-18 02:37:24 +00:00
|
|
|
/** Canadian_Aboriginal script (alias). @stable ICU 2.2 */
|
2003-03-04 00:47:01 +00:00
|
|
|
USCRIPT_UCAS = USCRIPT_CANADIAN_ABORIGINAL,
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2001-09-11 05:00:34 +00:00
|
|
|
USCRIPT_YI = 41, /* Yiii */
|
2011-05-03 22:15:31 +00:00
|
|
|
/* New scripts in Unicode 3.2 */
|
|
|
|
/** @stable ICU 2.2 */
|
2002-06-01 00:34:36 +00:00
|
|
|
USCRIPT_TAGALOG = 42, /* Tglg */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2002-06-01 00:34:36 +00:00
|
|
|
USCRIPT_HANUNOO = 43, /* Hano */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2002-06-01 00:34:36 +00:00
|
|
|
USCRIPT_BUHID = 44, /* Buhd */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.2 */
|
2002-06-01 00:34:36 +00:00
|
|
|
USCRIPT_TAGBANWA = 45, /* Tagb */
|
2003-03-04 00:47:01 +00:00
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/* New scripts in Unicode 4 */
|
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_BRAILLE = 46, /* Brai */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_CYPRIOT = 47, /* Cprt */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_LIMBU = 48, /* Limb */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_LINEAR_B = 49, /* Linb */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_OSMANYA = 50, /* Osma */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_SHAVIAN = 51, /* Shaw */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_TAI_LE = 52, /* Tale */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 2.6 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_UGARITIC = 53, /* Ugar */
|
2003-03-04 00:47:01 +00:00
|
|
|
|
2006-01-18 03:34:19 +00:00
|
|
|
/** New script code in Unicode 4.0.1 @stable ICU 3.0 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_KATAKANA_OR_HIRAGANA = 54,/*Hrkt */
|
2010-09-21 00:12:49 +00:00
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/* New scripts in Unicode 4.1 */
|
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_BUGINESE = 55, /* Bugi */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_GLAGOLITIC = 56, /* Glag */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_KHAROSHTHI = 57, /* Khar */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_SYLOTI_NAGRI = 58, /* Sylo */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_NEW_TAI_LUE = 59, /* Talu */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_TIFINAGH = 60, /* Tfng */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.4 */
|
2006-02-09 01:27:00 +00:00
|
|
|
USCRIPT_OLD_PERSIAN = 61, /* Xpeo */
|
|
|
|
|
2014-04-14 22:30:09 +00:00
|
|
|
/* New script codes from Unicode and ISO 15924 */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_BALINESE = 62, /* Bali */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_BATAK = 63, /* Batk */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_BLISSYMBOLS = 64, /* Blis */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_BRAHMI = 65, /* Brah */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_CHAM = 66, /* Cham */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_CIRTH = 67, /* Cirt */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC = 68, /* Cyrs */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_DEMOTIC_EGYPTIAN = 69, /* Egyd */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_HIERATIC_EGYPTIAN = 70, /* Egyh */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_EGYPTIAN_HIEROGLYPHS = 71, /* Egyp */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_KHUTSURI = 72, /* Geok */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_SIMPLIFIED_HAN = 73, /* Hans */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_TRADITIONAL_HAN = 74, /* Hant */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_PAHAWH_HMONG = 75, /* Hmng */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_OLD_HUNGARIAN = 76, /* Hung */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_HARAPPAN_INDUS = 77, /* Inds */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_JAVANESE = 78, /* Java */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_KAYAH_LI = 79, /* Kali */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_LATIN_FRAKTUR = 80, /* Latf */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_LATIN_GAELIC = 81, /* Latg */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_LEPCHA = 82, /* Lepc */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_LINEAR_A = 83, /* Lina */
|
2010-09-21 00:12:49 +00:00
|
|
|
/** @stable ICU 4.6 */
|
|
|
|
USCRIPT_MANDAIC = 84, /* Mand */
|
|
|
|
/** @stable ICU 3.6 */
|
|
|
|
USCRIPT_MANDAEAN = USCRIPT_MANDAIC,
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_MAYAN_HIEROGLYPHS = 85, /* Maya */
|
2010-09-21 00:12:49 +00:00
|
|
|
/** @stable ICU 4.6 */
|
|
|
|
USCRIPT_MEROITIC_HIEROGLYPHS = 86, /* Mero */
|
|
|
|
/** @stable ICU 3.6 */
|
|
|
|
USCRIPT_MEROITIC = USCRIPT_MEROITIC_HIEROGLYPHS,
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_NKO = 87, /* Nkoo */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_ORKHON = 88, /* Orkh */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_OLD_PERMIC = 89, /* Perm */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_PHAGS_PA = 90, /* Phag */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_PHOENICIAN = 91, /* Phnx */
|
2013-05-15 21:51:04 +00:00
|
|
|
/** @stable ICU 52 */
|
|
|
|
USCRIPT_MIAO = 92, /* Plrd */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2013-05-15 21:51:04 +00:00
|
|
|
USCRIPT_PHONETIC_POLLARD = USCRIPT_MIAO,
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_RONGORONGO = 93, /* Roro */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_SARATI = 94, /* Sara */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_ESTRANGELO_SYRIAC = 95, /* Syre */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_WESTERN_SYRIAC = 96, /* Syrj */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_EASTERN_SYRIAC = 97, /* Syrn */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_TENGWAR = 98, /* Teng */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_VAI = 99, /* Vaii */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2009-11-13 19:25:21 +00:00
|
|
|
USCRIPT_VISIBLE_SPEECH = 100,/* Visp */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_CUNEIFORM = 101,/* Xsux */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-02-16 01:21:14 +00:00
|
|
|
USCRIPT_UNWRITTEN_LANGUAGES = 102,/* Zxxx */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.6 */
|
2006-03-03 20:59:01 +00:00
|
|
|
USCRIPT_UNKNOWN = 103,/* Zzzz */ /* Unknown="Code for uncoded script", for unassigned code points */
|
2006-11-08 23:41:46 +00:00
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_CARIAN = 104,/* Cari */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_JAPANESE = 105,/* Jpan */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_LANNA = 106,/* Lana */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_LYCIAN = 107,/* Lyci */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_LYDIAN = 108,/* Lydi */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_OL_CHIKI = 109,/* Olck */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_REJANG = 110,/* Rjng */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_SAURASHTRA = 111,/* Saur */
|
2015-05-28 23:16:00 +00:00
|
|
|
/** Sutton SignWriting @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_SIGN_WRITING = 112,/* Sgnw */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2006-11-08 23:41:46 +00:00
|
|
|
USCRIPT_SUNDANESE = 113,/* Sund */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2007-03-06 00:41:47 +00:00
|
|
|
USCRIPT_MOON = 114,/* Moon */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 3.8 */
|
2007-03-06 00:41:47 +00:00
|
|
|
USCRIPT_MEITEI_MAYEK = 115,/* Mtei */
|
2006-11-08 23:41:46 +00:00
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_IMPERIAL_ARAMAIC = 116,/* Armi */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_AVESTAN = 117,/* Avst */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_CHAKMA = 118,/* Cakm */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_KOREAN = 119,/* Kore */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_KAITHI = 120,/* Kthi */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_MANICHAEAN = 121,/* Mani */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_INSCRIPTIONAL_PAHLAVI = 122,/* Phli */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_PSALTER_PAHLAVI = 123,/* Phlp */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_BOOK_PAHLAVI = 124,/* Phlv */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_INSCRIPTIONAL_PARTHIAN = 125,/* Prti */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_SAMARITAN = 126,/* Samr */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_TAI_VIET = 127,/* Tavt */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_MATHEMATICAL_NOTATION = 128,/* Zmth */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.0 */
|
2008-04-04 22:47:43 +00:00
|
|
|
USCRIPT_SYMBOLS = 129,/* Zsym */
|
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.4 */
|
2009-11-13 19:25:21 +00:00
|
|
|
USCRIPT_BAMUM = 130,/* Bamu */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.4 */
|
2009-11-13 19:25:21 +00:00
|
|
|
USCRIPT_LISU = 131,/* Lisu */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.4 */
|
2009-11-13 19:25:21 +00:00
|
|
|
USCRIPT_NAKHI_GEBA = 132,/* Nkgb */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.4 */
|
2009-11-13 19:25:21 +00:00
|
|
|
USCRIPT_OLD_SOUTH_ARABIAN = 133,/* Sarb */
|
|
|
|
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_BASSA_VAH = 134,/* Bass */
|
2014-08-21 00:16:17 +00:00
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_DUPLOYAN = 135,/* Dupl */
|
2014-09-16 08:09:06 +00:00
|
|
|
#ifndef U_HIDE_DEPRECATED_API
|
2014-08-21 00:16:17 +00:00
|
|
|
/** @deprecated ICU 54 Typo, use USCRIPT_DUPLOYAN */
|
|
|
|
USCRIPT_DUPLOYAN_SHORTAND = USCRIPT_DUPLOYAN,
|
2014-09-16 08:09:06 +00:00
|
|
|
#endif /* U_HIDE_DEPRECATED_API */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_ELBASAN = 136,/* Elba */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_GRANTHA = 137,/* Gran */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_KPELLE = 138,/* Kpel */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_LOMA = 139,/* Loma */
|
2014-04-14 22:30:09 +00:00
|
|
|
/** Mende Kikakui @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_MENDE = 140,/* Mend */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_MEROITIC_CURSIVE = 141,/* Merc */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_OLD_NORTH_ARABIAN = 142,/* Narb */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_NABATAEAN = 143,/* Nbat */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_PALMYRENE = 144,/* Palm */
|
2014-04-14 22:30:09 +00:00
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_KHUDAWADI = 145,/* Sind */
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2014-04-14 22:30:09 +00:00
|
|
|
USCRIPT_SINDHI = USCRIPT_KHUDAWADI,
|
2011-05-03 22:15:31 +00:00
|
|
|
/** @stable ICU 4.6 */
|
2010-09-21 00:12:49 +00:00
|
|
|
USCRIPT_WARANG_CITI = 146,/* Wara */
|
|
|
|
|
2011-05-10 20:56:53 +00:00
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_AFAKA = 147,/* Afak */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_JURCHEN = 148,/* Jurc */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_MRO = 149,/* Mroo */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_NUSHU = 150,/* Nshu */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_SHARADA = 151,/* Shrd */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_SORA_SOMPENG = 152,/* Sora */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_TAKRI = 153,/* Takr */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_TANGUT = 154,/* Tang */
|
|
|
|
/** @stable ICU 4.8 */
|
|
|
|
USCRIPT_WOLEAI = 155,/* Wole */
|
|
|
|
|
2011-12-08 22:37:24 +00:00
|
|
|
/** @stable ICU 49 */
|
2012-01-23 19:51:38 +00:00
|
|
|
USCRIPT_ANATOLIAN_HIEROGLYPHS = 156,/* Hluw */
|
2011-12-08 22:37:24 +00:00
|
|
|
/** @stable ICU 49 */
|
2012-01-23 19:51:38 +00:00
|
|
|
USCRIPT_KHOJKI = 157,/* Khoj */
|
|
|
|
/** @stable ICU 49 */
|
|
|
|
USCRIPT_TIRHUTA = 158,/* Tirh */
|
2011-12-08 22:37:24 +00:00
|
|
|
|
2013-05-15 21:51:04 +00:00
|
|
|
/** @stable ICU 52 */
|
|
|
|
USCRIPT_CAUCASIAN_ALBANIAN = 159,/* Aghb */
|
|
|
|
/** @stable ICU 52 */
|
|
|
|
USCRIPT_MAHAJANI = 160,/* Mahj */
|
|
|
|
|
2014-04-14 22:30:09 +00:00
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_AHOM = 161,/* Ahom */
|
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_HATRAN = 162,/* Hatr */
|
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_MODI = 163,/* Modi */
|
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_MULTANI = 164,/* Mult */
|
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_PAU_CIN_HAU = 165,/* Pauc */
|
|
|
|
/** @stable ICU 54 */
|
|
|
|
USCRIPT_SIDDHAM = 166,/* Sidd */
|
|
|
|
|
2015-03-04 22:23:14 +00:00
|
|
|
/**
|
|
|
|
* One higher than the last script code constant.
|
2015-03-04 22:31:07 +00:00
|
|
|
* This value increases as constants for script codes are added.
|
2015-03-04 22:23:14 +00:00
|
|
|
*
|
|
|
|
* There are constants for Unicode 7 script property values.
|
|
|
|
* There are constants for ISO 15924 script codes assigned on or before 2013-10-12.
|
|
|
|
* There are no constants for private use codes from Qaaa - Qabx
|
|
|
|
* except as used in the UCD.
|
|
|
|
*
|
|
|
|
* @stable ICU 2.2
|
|
|
|
*/
|
2014-04-14 22:30:09 +00:00
|
|
|
USCRIPT_CODE_LIMIT = 167
|
2001-07-16 16:49:46 +00:00
|
|
|
} UScriptCode;
|
2001-07-11 23:52:58 +00:00
|
|
|
|
2001-07-10 18:33:40 +00:00
|
|
|
/**
|
2014-08-28 23:51:38 +00:00
|
|
|
* Gets the script codes associated with the given locale or ISO 15924 abbreviation or name.
|
2002-05-13 21:50:59 +00:00
|
|
|
* Fills in USCRIPT_MALAYALAM given "Malayam" OR "Mlym".
|
2001-10-23 02:00:50 +00:00
|
|
|
* Fills in USCRIPT_LATIN given "en" OR "en_US"
|
2014-08-28 23:51:38 +00:00
|
|
|
* If the required capacity is greater than the capacity of the destination buffer,
|
|
|
|
* then the error code is set to U_BUFFER_OVERFLOW_ERROR and the required capacity is returned.
|
2002-11-01 14:51:43 +00:00
|
|
|
*
|
|
|
|
* <p>Note: To search by short or long script alias only, use
|
2014-08-28 23:51:38 +00:00
|
|
|
* u_getPropertyValueEnum(UCHAR_SCRIPT, alias) instead. That does
|
2002-11-01 14:51:43 +00:00
|
|
|
* a fast lookup with no access of the locale data.
|
2014-08-28 23:51:38 +00:00
|
|
|
*
|
2002-10-30 18:25:27 +00:00
|
|
|
* @param nameOrAbbrOrLocale name of the script, as given in
|
|
|
|
* PropertyValueAliases.txt, or ISO 15924 code or locale
|
2001-10-23 02:00:50 +00:00
|
|
|
* @param fillIn the UScriptCode buffer to fill in the script code
|
|
|
|
* @param capacity the capacity (size) fo UScriptCode buffer passed in.
|
2001-07-10 18:33:40 +00:00
|
|
|
* @param err the error status code.
|
2001-10-23 02:00:50 +00:00
|
|
|
* @return The number of script codes filled in the buffer passed in
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2001-07-10 18:33:40 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE int32_t U_EXPORT2
|
2001-10-23 02:00:50 +00:00
|
|
|
uscript_getCode(const char* nameOrAbbrOrLocale,UScriptCode* fillIn,int32_t capacity,UErrorCode *err);
|
2001-07-10 18:33:40 +00:00
|
|
|
|
|
|
|
/**
|
2014-08-29 20:14:00 +00:00
|
|
|
* Returns the long Unicode script name, if there is one.
|
|
|
|
* Otherwise returns the 4-letter ISO 15924 script code.
|
|
|
|
* Returns "Malayam" given USCRIPT_MALAYALAM.
|
|
|
|
*
|
2001-07-10 18:33:40 +00:00
|
|
|
* @param scriptCode UScriptCode enum
|
2014-08-29 20:14:00 +00:00
|
|
|
* @return long script name as given in PropertyValueAliases.txt, or the 4-letter code,
|
|
|
|
* or NULL if scriptCode is invalid
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2001-07-10 18:33:40 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE const char* U_EXPORT2
|
2001-09-11 05:00:34 +00:00
|
|
|
uscript_getName(UScriptCode scriptCode);
|
2001-07-10 18:33:40 +00:00
|
|
|
|
|
|
|
/**
|
2014-08-29 20:14:00 +00:00
|
|
|
* Returns the 4-letter ISO 15924 script code,
|
|
|
|
* which is the same as the short Unicode script name if Unicode has names for the script.
|
|
|
|
* Returns "Mlym" given USCRIPT_MALAYALAM.
|
|
|
|
*
|
2001-07-10 18:33:40 +00:00
|
|
|
* @param scriptCode UScriptCode enum
|
2014-08-29 20:14:00 +00:00
|
|
|
* @return short script name (4-letter code), or NULL if scriptCode is invalid
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2001-07-10 18:33:40 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE const char* U_EXPORT2
|
2001-09-11 05:00:34 +00:00
|
|
|
uscript_getShortName(UScriptCode scriptCode);
|
2001-07-10 18:33:40 +00:00
|
|
|
|
2010-09-21 00:12:49 +00:00
|
|
|
/**
|
2001-09-21 05:09:22 +00:00
|
|
|
* Gets the script code associated with the given codepoint.
|
2002-05-13 21:50:59 +00:00
|
|
|
* Returns USCRIPT_MALAYALAM given 0x0D02
|
2001-09-21 05:09:22 +00:00
|
|
|
* @param codepoint UChar32 codepoint
|
|
|
|
* @param err the error status code.
|
2002-11-13 20:03:11 +00:00
|
|
|
* @return The UScriptCode, or 0 if codepoint is invalid
|
2004-03-26 19:42:04 +00:00
|
|
|
* @stable ICU 2.4
|
2001-09-21 05:09:22 +00:00
|
|
|
*/
|
2004-03-26 19:42:04 +00:00
|
|
|
U_STABLE UScriptCode U_EXPORT2
|
2001-09-21 05:09:22 +00:00
|
|
|
uscript_getScript(UChar32 codepoint, UErrorCode *err);
|
|
|
|
|
2010-09-21 00:12:49 +00:00
|
|
|
/**
|
2012-02-06 20:11:22 +00:00
|
|
|
* Do the Script_Extensions of code point c contain script sc?
|
|
|
|
* If c does not have explicit Script_Extensions, then this tests whether
|
|
|
|
* c has the Script property value sc.
|
2010-09-21 00:12:49 +00:00
|
|
|
*
|
|
|
|
* Some characters are commonly used in multiple scripts.
|
|
|
|
* For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
|
|
|
|
*
|
|
|
|
* The Script_Extensions property is provisional. It may be modified or removed
|
|
|
|
* in future versions of the Unicode Standard, and thus in ICU.
|
|
|
|
* @param c code point
|
|
|
|
* @param sc script code
|
2012-02-06 20:11:22 +00:00
|
|
|
* @return TRUE if sc is in Script_Extensions(c)
|
2013-02-22 20:15:50 +00:00
|
|
|
* @stable ICU 49
|
2010-09-21 00:12:49 +00:00
|
|
|
*/
|
2013-02-22 20:15:50 +00:00
|
|
|
U_STABLE UBool U_EXPORT2
|
2010-09-21 00:12:49 +00:00
|
|
|
uscript_hasScript(UChar32 c, UScriptCode sc);
|
2001-07-10 18:33:40 +00:00
|
|
|
|
2010-09-21 00:12:49 +00:00
|
|
|
/**
|
|
|
|
* Writes code point c's Script_Extensions as a list of UScriptCode values
|
2012-02-03 23:36:05 +00:00
|
|
|
* to the output scripts array and returns the number of script codes.
|
|
|
|
* - If c does have Script_Extensions, then the Script property value
|
|
|
|
* (normally Common or Inherited) is not included.
|
|
|
|
* - If c does not have Script_Extensions, then the one Script code is written to the output array.
|
|
|
|
* - If c is not a valid code point, then the one USCRIPT_UNKNOWN code is written.
|
|
|
|
* In other words, if the return value is 1,
|
|
|
|
* then the output array contains exactly c's single Script code.
|
|
|
|
* If the return value is n>=2, then the output array contains c's n Script_Extensions script codes.
|
2010-09-21 00:12:49 +00:00
|
|
|
*
|
|
|
|
* Some characters are commonly used in multiple scripts.
|
|
|
|
* For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
|
|
|
|
*
|
|
|
|
* If there are more than capacity script codes to be written, then
|
|
|
|
* U_BUFFER_OVERFLOW_ERROR is set and the number of Script_Extensions is returned.
|
|
|
|
* (Usual ICU buffer handling behavior.)
|
|
|
|
*
|
|
|
|
* The Script_Extensions property is provisional. It may be modified or removed
|
|
|
|
* in future versions of the Unicode Standard, and thus in ICU.
|
|
|
|
* @param c code point
|
|
|
|
* @param scripts output script code array
|
|
|
|
* @param capacity capacity of the scripts array
|
|
|
|
* @param errorCode Standard ICU error code. Its input value must
|
|
|
|
* pass the U_SUCCESS() test, or else the function returns
|
|
|
|
* immediately. Check for U_FAILURE() on output or use with
|
|
|
|
* function chaining. (See User Guide for details.)
|
2012-02-03 23:36:05 +00:00
|
|
|
* @return number of script codes in c's Script_Extensions, or 1 for the single Script value,
|
2010-09-21 00:12:49 +00:00
|
|
|
* written to scripts unless U_BUFFER_OVERFLOW_ERROR indicates insufficient capacity
|
2013-02-22 20:15:50 +00:00
|
|
|
* @stable ICU 49
|
2010-09-21 00:12:49 +00:00
|
|
|
*/
|
2013-02-22 20:15:50 +00:00
|
|
|
U_STABLE int32_t U_EXPORT2
|
2010-09-21 00:12:49 +00:00
|
|
|
uscript_getScriptExtensions(UChar32 c,
|
|
|
|
UScriptCode *scripts, int32_t capacity,
|
2011-05-05 01:35:22 +00:00
|
|
|
UErrorCode *errorCode);
|
2001-07-10 18:33:40 +00:00
|
|
|
|
2013-02-17 00:49:18 +00:00
|
|
|
/**
|
|
|
|
* Script usage constants.
|
|
|
|
* See UAX #31 Unicode Identifier and Pattern Syntax.
|
|
|
|
* http://www.unicode.org/reports/tr31/#Table_Candidate_Characters_for_Exclusion_from_Identifiers
|
|
|
|
*
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
|
|
|
typedef enum UScriptUsage {
|
2014-03-13 20:33:16 +00:00
|
|
|
/** Not encoded in Unicode. @stable ICU 51 */
|
2013-02-17 00:49:18 +00:00
|
|
|
USCRIPT_USAGE_NOT_ENCODED,
|
2014-03-13 20:33:16 +00:00
|
|
|
/** Unknown script usage. @stable ICU 51 */
|
2013-02-17 00:49:18 +00:00
|
|
|
USCRIPT_USAGE_UNKNOWN,
|
2014-03-13 20:33:16 +00:00
|
|
|
/** Candidate for Exclusion from Identifiers. @stable ICU 51 */
|
2013-02-17 00:49:18 +00:00
|
|
|
USCRIPT_USAGE_EXCLUDED,
|
2014-03-13 20:33:16 +00:00
|
|
|
/** Limited Use script. @stable ICU 51 */
|
2013-02-17 00:49:18 +00:00
|
|
|
USCRIPT_USAGE_LIMITED_USE,
|
2014-03-13 20:33:16 +00:00
|
|
|
/** Aspirational Use script. @stable ICU 51 */
|
2013-02-17 00:49:18 +00:00
|
|
|
USCRIPT_USAGE_ASPIRATIONAL,
|
2014-03-13 20:33:16 +00:00
|
|
|
/** Recommended script. @stable ICU 51 */
|
2013-02-17 00:49:18 +00:00
|
|
|
USCRIPT_USAGE_RECOMMENDED
|
|
|
|
} UScriptUsage;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Writes the script sample character string.
|
|
|
|
* This string normally consists of one code point but might be longer.
|
|
|
|
* The string is empty if the script is not encoded.
|
|
|
|
*
|
|
|
|
* @param script script code
|
|
|
|
* @param dest output string array
|
|
|
|
* @param capacity number of UChars in the dest array
|
|
|
|
* @param pErrorCode standard ICU in/out error code, must pass U_SUCCESS() on input
|
|
|
|
* @return the string length, even if U_BUFFER_OVERFLOW_ERROR
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
2014-03-13 20:33:16 +00:00
|
|
|
U_STABLE int32_t U_EXPORT2
|
2013-02-17 00:49:18 +00:00
|
|
|
uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode);
|
|
|
|
|
|
|
|
#if U_SHOW_CPLUSPLUS_API
|
|
|
|
|
|
|
|
U_NAMESPACE_BEGIN
|
|
|
|
class UnicodeString;
|
|
|
|
U_NAMESPACE_END
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the script sample character string.
|
|
|
|
* This string normally consists of one code point but might be longer.
|
|
|
|
* The string is empty if the script is not encoded.
|
|
|
|
*
|
|
|
|
* @param script script code
|
|
|
|
* @return the sample character string
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
|
|
|
U_COMMON_API icu::UnicodeString U_EXPORT2
|
|
|
|
uscript_getSampleUnicodeString(UScriptCode script);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.
|
|
|
|
* Returns USCRIPT_USAGE_NOT_ENCODED if the script is not encoded in Unicode.
|
|
|
|
*
|
|
|
|
* @param script script code
|
|
|
|
* @return script usage
|
|
|
|
* @see UScriptUsage
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
2014-03-13 20:33:16 +00:00
|
|
|
U_STABLE UScriptUsage U_EXPORT2
|
2013-02-17 00:49:18 +00:00
|
|
|
uscript_getUsage(UScriptCode script);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns TRUE if the script is written right-to-left.
|
|
|
|
* For example, Arab and Hebr.
|
|
|
|
*
|
|
|
|
* @param script script code
|
|
|
|
* @return TRUE if the script is right-to-left
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
2014-03-13 20:33:16 +00:00
|
|
|
U_STABLE UBool U_EXPORT2
|
2013-02-17 00:49:18 +00:00
|
|
|
uscript_isRightToLeft(UScriptCode script);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns TRUE if the script allows line breaks between letters (excluding hyphenation).
|
|
|
|
* Such a script typically requires dictionary-based line breaking.
|
|
|
|
* For example, Hani and Thai.
|
|
|
|
*
|
|
|
|
* @param script script code
|
|
|
|
* @return TRUE if the script allows line breaks between letters
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
2014-03-13 20:33:16 +00:00
|
|
|
U_STABLE UBool U_EXPORT2
|
2013-02-17 00:49:18 +00:00
|
|
|
uscript_breaksBetweenLetters(UScriptCode script);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns TRUE if in modern (or most recent) usage of the script case distinctions are customary.
|
|
|
|
* For example, Latn and Cyrl.
|
|
|
|
*
|
|
|
|
* @param script script code
|
|
|
|
* @return TRUE if the script is cased
|
2014-03-13 20:33:16 +00:00
|
|
|
* @stable ICU 51
|
2013-02-17 00:49:18 +00:00
|
|
|
*/
|
2014-03-13 20:33:16 +00:00
|
|
|
U_STABLE UBool U_EXPORT2
|
2013-02-17 00:49:18 +00:00
|
|
|
uscript_isCased(UScriptCode script);
|
|
|
|
|
2010-09-21 00:12:49 +00:00
|
|
|
#endif
|