Class UScript
- java.lang.Object
-
- com.ibm.icu.lang.UScript
-
public final class UScript extends Object
Constants for ISO 15924 script codes, and related functions.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 .
In addition, constants for many ISO 15924 script codes 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.
Private-use codes Qaaa..Qabx are not included, except as used in the UCD or in CLDR.
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.
- Status:
- Stable ICU 2.4.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UScript.ScriptUsage
Script usage constants.
-
Field Summary
Fields Modifier and Type Field Description static int
ADLAM
ISO 15924 script codestatic int
AFAKA
ISO 15924 script codestatic int
AHOM
ISO 15924 script codestatic int
ANATOLIAN_HIEROGLYPHS
ISO 15924 script codestatic int
ARABIC
Arabicstatic int
ARABIC_NASTALIQ
static int
ARMENIAN
Armenianstatic int
AVESTAN
ISO 15924 script codestatic int
BALINESE
ISO 15924 script codestatic int
BAMUM
ISO 15924 script codestatic int
BASSA_VAH
ISO 15924 script codestatic int
BATAK
ISO 15924 script codestatic int
BENGALI
Bengalistatic int
BERIA_ERFE
static int
BHAIKSUKI
ISO 15924 script codestatic int
BLISSYMBOLS
ISO 15924 script codestatic int
BOOK_PAHLAVI
ISO 15924 script codestatic int
BOPOMOFO
Bopomofostatic int
BRAHMI
ISO 15924 script codestatic int
BRAILLE
Braille Script in Unicode 4static int
BUGINESE
Script in Unicode 4.1static int
BUHID
Buhidstatic int
CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbolsstatic int
CARIAN
ISO 15924 script codestatic int
CAUCASIAN_ALBANIAN
ISO 15924 script codestatic int
CHAKMA
ISO 15924 script codestatic int
CHAM
ISO 15924 script codestatic int
CHEROKEE
Cherokeestatic int
CHORASMIAN
static int
CIRTH
ISO 15924 script codestatic int
CODE_LIMIT
Deprecated.ICU 58 The numeric value may change over time, see ICU ticket #12420.static int
COMMON
Commonstatic int
COPTIC
Copticstatic int
CUNEIFORM
ISO 15924 script codestatic int
CYPRIOT
Cypriot Script in Unicode 4static int
CYPRO_MINOAN
static int
CYRILLIC
Cyrillicstatic int
DEMOTIC_EGYPTIAN
ISO 15924 script codestatic int
DESERET
Deseretstatic int
DEVANAGARI
Devanagaristatic int
DIVES_AKURU
static int
DOGRA
ISO 15924 script codestatic int
DUPLOYAN
ISO 15924 script codestatic int
DUPLOYAN_SHORTAND
Deprecated.ICU 54static int
EASTERN_SYRIAC
ISO 15924 script codestatic int
EGYPTIAN_HIEROGLYPHS
ISO 15924 script codestatic int
ELBASAN
ISO 15924 script codestatic int
ELYMAIC
static int
ESTRANGELO_SYRIAC
ISO 15924 script codestatic int
ETHIOPIC
Ethiopicstatic int
GARAY
static int
GEORGIAN
Georgianstatic int
GLAGOLITIC
Script in Unicode 4.1static int
GOTHIC
Gothicstatic int
GRANTHA
ISO 15924 script codestatic int
GREEK
Greekstatic int
GUJARATI
Gujaratistatic int
GUNJALA_GONDI
static int
GURMUKHI
Gurmukhistatic int
GURUNG_KHEMA
static int
HAN
Hanstatic int
HAN_WITH_BOPOMOFO
ISO 15924 script codestatic int
HANGUL
Hangulstatic int
HANIFI_ROHINGYA
static int
HANUNOO
Hanunooostatic int
HARAPPAN_INDUS
ISO 15924 script codestatic int
HATRAN
ISO 15924 script codestatic int
HEBREW
Hebrewstatic int
HIERATIC_EGYPTIAN
ISO 15924 script codestatic int
HIRAGANA
Hiraganastatic int
IMPERIAL_ARAMAIC
ISO 15924 script codestatic int
INHERITED
Inheritedstatic int
INSCRIPTIONAL_PAHLAVI
ISO 15924 script codestatic int
INSCRIPTIONAL_PARTHIAN
ISO 15924 script codestatic int
INVALID_CODE
Invalid codestatic int
JAMO
ISO 15924 script codestatic int
JAPANESE
ISO 15924 script codestatic int
JAVANESE
ISO 15924 script codestatic int
JURCHEN
ISO 15924 script codestatic int
KAITHI
ISO 15924 script codestatic int
KANNADA
Kannadastatic int
KATAKANA
Katakanastatic int
KATAKANA_OR_HIRAGANA
Script in Unicode 4.0.1static int
KAWI
static int
KAYAH_LI
ISO 15924 script codestatic int
KHAROSHTHI
Script in Unicode 4.1static int
KHITAN_SMALL_SCRIPT
static int
KHMER
Khmerstatic int
KHOJKI
ISO 15924 script codestatic int
KHUDAWADI
ISO 15924 script codestatic int
KHUTSURI
ISO 15924 script codestatic int
KIRAT_RAI
static int
KOREAN
ISO 15924 script codestatic int
KPELLE
ISO 15924 script codestatic int
LANNA
ISO 15924 script codestatic int
LAO
Laostatic int
LATIN
Latinstatic int
LATIN_FRAKTUR
ISO 15924 script codestatic int
LATIN_GAELIC
ISO 15924 script codestatic int
LEPCHA
ISO 15924 script codestatic int
LIMBU
Limbu Script in Unicode 4static int
LINEAR_A
ISO 15924 script codestatic int
LINEAR_B
Linear B Script in Unicode 4static int
LISU
ISO 15924 script codestatic int
LOMA
ISO 15924 script codestatic int
LYCIAN
ISO 15924 script codestatic int
LYDIAN
ISO 15924 script codestatic int
MAHAJANI
ISO 15924 script codestatic int
MAKASAR
static int
MALAYALAM
Malayalamstatic int
MANDAEAN
ISO 15924 script codestatic int
MANDAIC
ISO 15924 script codestatic int
MANICHAEAN
ISO 15924 script codestatic int
MARCHEN
ISO 15924 script codestatic int
MASARAM_GONDI
ISO 15924 script codestatic int
MATHEMATICAL_NOTATION
ISO 15924 script codestatic int
MAYAN_HIEROGLYPHS
ISO 15924 script codestatic int
MEDEFAIDRIN
static int
MEITEI_MAYEK
ISO 15924 script codestatic int
MENDE
Mende Kikakui ISO 15924 script codestatic int
MEROITIC
ISO 15924 script codestatic int
MEROITIC_CURSIVE
ISO 15924 script codestatic int
MEROITIC_HIEROGLYPHS
ISO 15924 script codestatic int
MIAO
ISO 15924 script codestatic int
MODI
ISO 15924 script codestatic int
MONGOLIAN
Mangolianstatic int
MOON
ISO 15924 script codestatic int
MRO
ISO 15924 script codestatic int
MULTANI
ISO 15924 script codestatic int
MYANMAR
Myammarstatic int
NABATAEAN
ISO 15924 script codestatic int
NAG_MUNDARI
static int
NAKHI_GEBA
ISO 15924 script codestatic int
NANDINAGARI
static int
NEW_TAI_LUE
Script in Unicode 4.1static int
NEWA
ISO 15924 script codestatic int
NKO
ISO 15924 script codestatic int
NUSHU
ISO 15924 script codestatic int
NYIAKENG_PUACHUE_HMONG
static int
OGHAM
Oghamstatic int
OL_CHIKI
ISO 15924 script codestatic int
OL_ONAL
static int
OLD_CHURCH_SLAVONIC_CYRILLIC
ISO 15924 script codestatic int
OLD_HUNGARIAN
ISO 15924 script codestatic int
OLD_ITALIC
Old Itallicstatic int
OLD_NORTH_ARABIAN
ISO 15924 script codestatic int
OLD_PERMIC
ISO 15924 script codestatic int
OLD_PERSIAN
Script in Unicode 4.1static int
OLD_SOGDIAN
static int
OLD_SOUTH_ARABIAN
ISO 15924 script codestatic int
OLD_UYGHUR
static int
ORIYA
Oriyastatic int
ORKHON
ISO 15924 script codestatic int
OSAGE
ISO 15924 script codestatic int
OSMANYA
Osmanya Script in Unicode 4static int
PAHAWH_HMONG
ISO 15924 script codestatic int
PALMYRENE
ISO 15924 script codestatic int
PAU_CIN_HAU
ISO 15924 script codestatic int
PHAGS_PA
ISO 15924 script codestatic int
PHOENICIAN
ISO 15924 script codestatic int
PHONETIC_POLLARD
ISO 15924 script codestatic int
PSALTER_PAHLAVI
ISO 15924 script codestatic int
REJANG
ISO 15924 script codestatic int
RONGORONGO
ISO 15924 script codestatic int
RUNIC
Runicstatic int
SAMARITAN
ISO 15924 script codestatic int
SARATI
ISO 15924 script codestatic int
SAURASHTRA
ISO 15924 script codestatic int
SHARADA
ISO 15924 script codestatic int
SHAVIAN
Shavian Script in Unicode 4static int
SIDDHAM
ISO 15924 script codestatic int
SIDETIC
static int
SIGN_WRITING
ISO 15924 script code for Sutton SignWritingstatic int
SIMPLIFIED_HAN
ISO 15924 script codestatic int
SINDHI
ISO 15924 script codestatic int
SINHALA
Sinhalastatic int
SOGDIAN
static int
SORA_SOMPENG
ISO 15924 script codestatic int
SOYOMBO
ISO 15924 script codestatic int
SUNDANESE
ISO 15924 script codestatic int
SUNUWAR
static int
SYLOTI_NAGRI
Script in Unicode 4.1static int
SYMBOLS
ISO 15924 script codestatic int
SYMBOLS_EMOJI
ISO 15924 script codestatic int
SYRIAC
Syriacstatic int
TAGALOG
Tagalogstatic int
TAGBANWA
Tagbanwastatic int
TAI_LE
Tai Le Script in Unicode 4static int
TAI_VIET
ISO 15924 script codestatic int
TAI_YO
static int
TAKRI
ISO 15924 script codestatic int
TAMIL
Tamilstatic int
TANGSA
static int
TANGUT
ISO 15924 script codestatic int
TELUGU
Telugustatic int
TENGWAR
ISO 15924 script codestatic int
THAANA
Thanastatic int
THAI
Thaistatic int
TIBETAN
Tibetanstatic int
TIFINAGH
Script in Unicode 4.1static int
TIRHUTA
ISO 15924 script codestatic int
TODHRI
static int
TOLONG_SIKI
static int
TOTO
static int
TRADITIONAL_HAN
ISO 15924 script codestatic int
TRADITIONAL_HAN_WITH_LATIN
static int
TULU_TIGALARI
static int
UCAS
Unified Canadian Aboriginal Symbols (alias)static int
UGARITIC
Ugaritic Script in Unicode 4static int
UNKNOWN
ISO 15924 script codestatic int
UNWRITTEN_LANGUAGES
ISO 15924 script codestatic int
VAI
ISO 15924 script codestatic int
VISIBLE_SPEECH
ISO 15924 script codestatic int
VITHKUQI
static int
WANCHO
static int
WARANG_CITI
ISO 15924 script codestatic int
WESTERN_SYRIAC
ISO 15924 script codestatic int
WOLEAI
ISO 15924 script codestatic int
YEZIDI
static int
YI
Yi syllablesstatic int
ZANABAZAR_SQUARE
ISO 15924 script code
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
breaksBetweenLetters(int script)
Returns true if the script allows line breaks between letters (excluding hyphenation).static int[]
getCode(ULocale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.static int[]
getCode(String nameOrAbbrOrLocale)
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name.static int[]
getCode(Locale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.static int
getCodeFromName(String nameOrAbbr)
Returns the script code associated with the given Unicode script property alias (name or abbreviation).static String
getName(int scriptCode)
Returns the long Unicode script name, if there is one.static String
getSampleString(int script)
Returns the script sample character string.static int
getScript(int codepoint)
Gets the script code associated with the given codepoint.static int
getScriptExtensions(int c, BitSet set)
Sets code point c's Script_Extensions as script code integers into the output BitSet.static String
getShortName(int scriptCode)
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.static UScript.ScriptUsage
getUsage(int script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.static boolean
hasScript(int c, int sc)
Do the Script_Extensions of code point c contain script sc?static boolean
isCased(int script)
Returns true if in modern (or most recent) usage of the script case distinctions are customary.static boolean
isRightToLeft(int script)
Returns true if the script is written right-to-left.
-
-
-
Field Detail
-
INVALID_CODE
public static final int INVALID_CODE
Invalid code- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
COMMON
public static final int COMMON
Common- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
INHERITED
public static final int INHERITED
Inherited- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ARABIC
public static final int ARABIC
Arabic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ARMENIAN
public static final int ARMENIAN
Armenian- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BENGALI
public static final int BENGALI
Bengali- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BOPOMOFO
public static final int BOPOMOFO
Bopomofo- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
CHEROKEE
public static final int CHEROKEE
Cherokee- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
COPTIC
public static final int COPTIC
Coptic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
CYRILLIC
public static final int CYRILLIC
Cyrillic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
DESERET
public static final int DESERET
Deseret- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
DEVANAGARI
public static final int DEVANAGARI
Devanagari- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ETHIOPIC
public static final int ETHIOPIC
Ethiopic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GEORGIAN
public static final int GEORGIAN
Georgian- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GOTHIC
public static final int GOTHIC
Gothic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GREEK
public static final int GREEK
Greek- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GUJARATI
public static final int GUJARATI
Gujarati- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GURMUKHI
public static final int GURMUKHI
Gurmukhi- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HAN
public static final int HAN
Han- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HANGUL
public static final int HANGUL
Hangul- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HEBREW
public static final int HEBREW
Hebrew- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HIRAGANA
public static final int HIRAGANA
Hiragana- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
KANNADA
public static final int KANNADA
Kannada- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
KATAKANA
public static final int KATAKANA
Katakana- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
KHMER
public static final int KHMER
Khmer- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
LAO
public static final int LAO
Lao- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
LATIN
public static final int LATIN
Latin- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
MALAYALAM
public static final int MALAYALAM
Malayalam- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
MONGOLIAN
public static final int MONGOLIAN
Mangolian- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
MYANMAR
public static final int MYANMAR
Myammar- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
OGHAM
public static final int OGHAM
Ogham- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
OLD_ITALIC
public static final int OLD_ITALIC
Old Itallic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ORIYA
public static final int ORIYA
Oriya- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
RUNIC
public static final int RUNIC
Runic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
SINHALA
public static final int SINHALA
Sinhala- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
SYRIAC
public static final int SYRIAC
Syriac- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TAMIL
public static final int TAMIL
Tamil- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TELUGU
public static final int TELUGU
Telugu- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
THAANA
public static final int THAANA
Thana- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
THAI
public static final int THAI
Thai- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TIBETAN
public static final int TIBETAN
Tibetan- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
CANADIAN_ABORIGINAL
public static final int CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbols- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
UCAS
public static final int UCAS
Unified Canadian Aboriginal Symbols (alias)- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
YI
public static final int YI
Yi syllables- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TAGALOG
public static final int TAGALOG
Tagalog- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HANUNOO
public static final int HANUNOO
Hanunooo- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BUHID
public static final int BUHID
Buhid- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TAGBANWA
public static final int TAGBANWA
Tagbanwa- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BRAILLE
public static final int BRAILLE
Braille Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
CYPRIOT
public static final int CYPRIOT
Cypriot Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
LIMBU
public static final int LIMBU
Limbu Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
LINEAR_B
public static final int LINEAR_B
Linear B Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
OSMANYA
public static final int OSMANYA
Osmanya Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
SHAVIAN
public static final int SHAVIAN
Shavian Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
TAI_LE
public static final int TAI_LE
Tai Le Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
UGARITIC
public static final int UGARITIC
Ugaritic Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
KATAKANA_OR_HIRAGANA
public static final int KATAKANA_OR_HIRAGANA
Script in Unicode 4.0.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.0.
-
BUGINESE
public static final int BUGINESE
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
GLAGOLITIC
public static final int GLAGOLITIC
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
KHAROSHTHI
public static final int KHAROSHTHI
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
SYLOTI_NAGRI
public static final int SYLOTI_NAGRI
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
NEW_TAI_LUE
public static final int NEW_TAI_LUE
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
TIFINAGH
public static final int TIFINAGH
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
OLD_PERSIAN
public static final int OLD_PERSIAN
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
BALINESE
public static final int BALINESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
BATAK
public static final int BATAK
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
BLISSYMBOLS
public static final int BLISSYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
BRAHMI
public static final int BRAHMI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CHAM
public static final int CHAM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CIRTH
public static final int CIRTH
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
OLD_CHURCH_SLAVONIC_CYRILLIC
public static final int OLD_CHURCH_SLAVONIC_CYRILLIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
DEMOTIC_EGYPTIAN
public static final int DEMOTIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
HIERATIC_EGYPTIAN
public static final int HIERATIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
EGYPTIAN_HIEROGLYPHS
public static final int EGYPTIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
KHUTSURI
public static final int KHUTSURI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
SIMPLIFIED_HAN
public static final int SIMPLIFIED_HAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
TRADITIONAL_HAN
public static final int TRADITIONAL_HAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
PAHAWH_HMONG
public static final int PAHAWH_HMONG
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
OLD_HUNGARIAN
public static final int OLD_HUNGARIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
HARAPPAN_INDUS
public static final int HARAPPAN_INDUS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
JAVANESE
public static final int JAVANESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
KAYAH_LI
public static final int KAYAH_LI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LATIN_FRAKTUR
public static final int LATIN_FRAKTUR
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LATIN_GAELIC
public static final int LATIN_GAELIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LEPCHA
public static final int LEPCHA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LINEAR_A
public static final int LINEAR_A
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MANDAIC
public static final int MANDAIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MANDAEAN
public static final int MANDAEAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MAYAN_HIEROGLYPHS
public static final int MAYAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MEROITIC_HIEROGLYPHS
public static final int MEROITIC_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MEROITIC
public static final int MEROITIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
NKO
public static final int NKO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
ORKHON
public static final int ORKHON
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
OLD_PERMIC
public static final int OLD_PERMIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
PHAGS_PA
public static final int PHAGS_PA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
PHOENICIAN
public static final int PHOENICIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MIAO
public static final int MIAO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 52.
-
PHONETIC_POLLARD
public static final int PHONETIC_POLLARD
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
RONGORONGO
public static final int RONGORONGO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
SARATI
public static final int SARATI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
ESTRANGELO_SYRIAC
public static final int ESTRANGELO_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
WESTERN_SYRIAC
public static final int WESTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
EASTERN_SYRIAC
public static final int EASTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
TENGWAR
public static final int TENGWAR
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
VAI
public static final int VAI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
VISIBLE_SPEECH
public static final int VISIBLE_SPEECH
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CUNEIFORM
public static final int CUNEIFORM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
UNWRITTEN_LANGUAGES
public static final int UNWRITTEN_LANGUAGES
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
UNKNOWN
public static final int UNKNOWN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CARIAN
public static final int CARIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
JAPANESE
public static final int JAPANESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
LANNA
public static final int LANNA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
LYCIAN
public static final int LYCIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
LYDIAN
public static final int LYDIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
OL_CHIKI
public static final int OL_CHIKI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
REJANG
public static final int REJANG
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
SAURASHTRA
public static final int SAURASHTRA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
SIGN_WRITING
public static final int SIGN_WRITING
ISO 15924 script code for Sutton SignWriting- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
SUNDANESE
public static final int SUNDANESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
MOON
public static final int MOON
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
MEITEI_MAYEK
public static final int MEITEI_MAYEK
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
IMPERIAL_ARAMAIC
public static final int IMPERIAL_ARAMAIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
AVESTAN
public static final int AVESTAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
CHAKMA
public static final int CHAKMA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
KOREAN
public static final int KOREAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
KAITHI
public static final int KAITHI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
MANICHAEAN
public static final int MANICHAEAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
INSCRIPTIONAL_PAHLAVI
public static final int INSCRIPTIONAL_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
PSALTER_PAHLAVI
public static final int PSALTER_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
BOOK_PAHLAVI
public static final int BOOK_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
INSCRIPTIONAL_PARTHIAN
public static final int INSCRIPTIONAL_PARTHIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
SAMARITAN
public static final int SAMARITAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
TAI_VIET
public static final int TAI_VIET
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
MATHEMATICAL_NOTATION
public static final int MATHEMATICAL_NOTATION
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
SYMBOLS
public static final int SYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
BAMUM
public static final int BAMUM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
LISU
public static final int LISU
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
NAKHI_GEBA
public static final int NAKHI_GEBA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
OLD_SOUTH_ARABIAN
public static final int OLD_SOUTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
BASSA_VAH
public static final int BASSA_VAH
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
DUPLOYAN
public static final int DUPLOYAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
DUPLOYAN_SHORTAND
@Deprecated public static final int DUPLOYAN_SHORTAND
Deprecated.ICU 54Typo, use DUPLOYAN- See Also:
- Constant Field Values
-
ELBASAN
public static final int ELBASAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
GRANTHA
public static final int GRANTHA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
KPELLE
public static final int KPELLE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
LOMA
public static final int LOMA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MENDE
public static final int MENDE
Mende Kikakui ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MEROITIC_CURSIVE
public static final int MEROITIC_CURSIVE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
OLD_NORTH_ARABIAN
public static final int OLD_NORTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
NABATAEAN
public static final int NABATAEAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
PALMYRENE
public static final int PALMYRENE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
KHUDAWADI
public static final int KHUDAWADI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
SINDHI
public static final int SINDHI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
WARANG_CITI
public static final int WARANG_CITI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
AFAKA
public static final int AFAKA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
JURCHEN
public static final int JURCHEN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
MRO
public static final int MRO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
NUSHU
public static final int NUSHU
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
SHARADA
public static final int SHARADA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
SORA_SOMPENG
public static final int SORA_SOMPENG
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
TAKRI
public static final int TAKRI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
TANGUT
public static final int TANGUT
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
WOLEAI
public static final int WOLEAI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
ANATOLIAN_HIEROGLYPHS
public static final int ANATOLIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 49.
-
KHOJKI
public static final int KHOJKI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 49.
-
TIRHUTA
public static final int TIRHUTA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 49.
-
CAUCASIAN_ALBANIAN
public static final int CAUCASIAN_ALBANIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 52.
-
MAHAJANI
public static final int MAHAJANI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 52.
-
AHOM
public static final int AHOM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
HATRAN
public static final int HATRAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
MODI
public static final int MODI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
MULTANI
public static final int MULTANI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
PAU_CIN_HAU
public static final int PAU_CIN_HAU
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
SIDDHAM
public static final int SIDDHAM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
ADLAM
public static final int ADLAM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
BHAIKSUKI
public static final int BHAIKSUKI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
MARCHEN
public static final int MARCHEN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
NEWA
public static final int NEWA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
OSAGE
public static final int OSAGE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
HAN_WITH_BOPOMOFO
public static final int HAN_WITH_BOPOMOFO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
JAMO
public static final int JAMO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
SYMBOLS_EMOJI
public static final int SYMBOLS_EMOJI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
MASARAM_GONDI
public static final int MASARAM_GONDI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 60.
-
SOYOMBO
public static final int SOYOMBO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 60.
-
ZANABAZAR_SQUARE
public static final int ZANABAZAR_SQUARE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 60.
-
DOGRA
public static final int DOGRA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
GUNJALA_GONDI
public static final int GUNJALA_GONDI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
MAKASAR
public static final int MAKASAR
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
MEDEFAIDRIN
public static final int MEDEFAIDRIN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
HANIFI_ROHINGYA
public static final int HANIFI_ROHINGYA
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
SOGDIAN
public static final int SOGDIAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
OLD_SOGDIAN
public static final int OLD_SOGDIAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
ELYMAIC
public static final int ELYMAIC
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
NYIAKENG_PUACHUE_HMONG
public static final int NYIAKENG_PUACHUE_HMONG
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
NANDINAGARI
public static final int NANDINAGARI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
WANCHO
public static final int WANCHO
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
CHORASMIAN
public static final int CHORASMIAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
DIVES_AKURU
public static final int DIVES_AKURU
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
KHITAN_SMALL_SCRIPT
public static final int KHITAN_SMALL_SCRIPT
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
YEZIDI
public static final int YEZIDI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
CYPRO_MINOAN
public static final int CYPRO_MINOAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
OLD_UYGHUR
public static final int OLD_UYGHUR
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
TANGSA
public static final int TANGSA
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
TOTO
public static final int TOTO
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
VITHKUQI
public static final int VITHKUQI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
KAWI
public static final int KAWI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 72.
-
NAG_MUNDARI
public static final int NAG_MUNDARI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 72.
-
ARABIC_NASTALIQ
public static final int ARABIC_NASTALIQ
- See Also:
- Constant Field Values
- Status:
- Stable ICU 75.
-
GARAY
public static final int GARAY
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
GURUNG_KHEMA
public static final int GURUNG_KHEMA
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
KIRAT_RAI
public static final int KIRAT_RAI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
OL_ONAL
public static final int OL_ONAL
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
SUNUWAR
public static final int SUNUWAR
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
TODHRI
public static final int TODHRI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
TULU_TIGALARI
public static final int TULU_TIGALARI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
BERIA_ERFE
public static final int BERIA_ERFE
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
SIDETIC
public static final int SIDETIC
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
TAI_YO
public static final int TAI_YO
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
TOLONG_SIKI
public static final int TOLONG_SIKI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
TRADITIONAL_HAN_WITH_LATIN
public static final int TRADITIONAL_HAN_WITH_LATIN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
CODE_LIMIT
@Deprecated public static final int CODE_LIMIT
Deprecated.ICU 58 The numeric value may change over time, see ICU ticket #12420.One more than the highest normal UScript code. The highest value is available via UCharacter.getIntPropertyMaxValue(UProperty.SCRIPT).- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public static final int[] getCode(Locale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. Returns MALAYAM given "Malayam" OR "Mlym". Returns LATIN given "en" OR "en_US"- Parameters:
locale
- Locale- Returns:
- The script codes array. null if the code cannot be found.
- Status:
- Stable ICU 2.4.
-
getCode
public static final int[] getCode(ULocale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. Returns MALAYAM given "Malayam" OR "Mlym". Returns LATIN given "en" OR "en_US"- Parameters:
locale
- ULocale- Returns:
- The script codes array. null if the code cannot be found.
- Status:
- Stable ICU 3.0.
-
getCode
public static final int[] getCode(String nameOrAbbrOrLocale)
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name. Returns MALAYAM given "Malayam" OR "Mlym". Returns LATIN given "en" OR "en_US"Note: To search by short or long script alias only, use
getCodeFromName(String)
instead. That does a fast lookup with no access of the locale data.- Parameters:
nameOrAbbrOrLocale
- name of the script or ISO 15924 code or locale- Returns:
- The script codes array. null if the code cannot be found.
- Status:
- Stable ICU 2.4.
-
getCodeFromName
public static final int getCodeFromName(String nameOrAbbr)
Returns the script code associated with the given Unicode script property alias (name or abbreviation). Short aliases are ISO 15924 script codes. Returns MALAYAM given "Malayam" OR "Mlym".- Parameters:
nameOrAbbr
- name of the script or ISO 15924 code- Returns:
- The script code value, or INVALID_CODE if the code cannot be found.
- Status:
- Stable ICU 54.
-
getScript
public static final int getScript(int codepoint)
Gets the script code associated with the given codepoint. Returns UScript.MALAYAM given 0x0D02- Parameters:
codepoint
- UChar32 codepoint- Returns:
- The script code
- Status:
- Stable ICU 2.4.
-
hasScript
public static final boolean hasScript(int c, int sc)
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.Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
- Parameters:
c
- code pointsc
- script code- Returns:
- true if sc is in Script_Extensions(c)
- Status:
- Stable ICU 49.
-
getScriptExtensions
public static final int getScriptExtensions(int c, BitSet set)
Sets code point c's Script_Extensions as script code integers into the output BitSet.- If c does have Script_Extensions, then the return value is the negative number of Script_Extensions codes (= -set.cardinality()); in this case, the Script property value (normally Common or Inherited) is not included in the set.
- If c does not have Script_Extensions, then the one Script code is put into the set and also returned.
- If c is not a valid code point, then the one
UNKNOWN
code is put into the set and also returned.
Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
- Parameters:
c
- code pointset
- set of script code integers; will be cleared, then bits are set corresponding to c's Script_Extensions- Returns:
- negative number of script codes in c's Script_Extensions, or the non-negative single Script value
- Status:
- Stable ICU 49.
-
getName
public static final String getName(int scriptCode)
Returns the long Unicode script name, if there is one. Otherwise returns the 4-letter ISO 15924 script code. Returns "Malayam" given MALAYALAM.- Parameters:
scriptCode
- int script code- Returns:
- long script name as given in PropertyValueAliases.txt, or the 4-letter code
- Throws:
IllegalArgumentException
- if the script code is not valid- Status:
- Stable ICU 2.4.
-
getShortName
public static final String getShortName(int scriptCode)
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 MALAYALAM.- Parameters:
scriptCode
- int script code- Returns:
- short script name (4-letter code)
- Throws:
IllegalArgumentException
- if the script code is not valid- Status:
- Stable ICU 2.4.
-
getSampleString
public static final String getSampleString(int script)
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.- Parameters:
script
- script code- Returns:
- the sample character string
- Status:
- Stable ICU 51.
-
getUsage
public static final UScript.ScriptUsage getUsage(int script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. ReturnsUScript.ScriptUsage.NOT_ENCODED
if the script is not encoded in Unicode.- Parameters:
script
- script code- Returns:
- script usage
- See Also:
UScript.ScriptUsage
- Status:
- Stable ICU 51.
-
isRightToLeft
public static final boolean isRightToLeft(int script)
Returns true if the script is written right-to-left. For example, Arab and Hebr.- Parameters:
script
- script code- Returns:
- true if the script is right-to-left
- Status:
- Stable ICU 51.
-
breaksBetweenLetters
public static final boolean breaksBetweenLetters(int 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.- Parameters:
script
- script code- Returns:
- true if the script allows line breaks between letters
- Status:
- Stable ICU 51.
-
isCased
public static final boolean isCased(int script)
Returns true if in modern (or most recent) usage of the script case distinctions are customary. For example, Latn and Cyrl.- Parameters:
script
- script code- Returns:
- true if the script is cased
- Status:
- Stable ICU 51.
-
-