UScript
class UScript
| kotlin.Any | |
| ↳ | android.icu.lang.UScript |
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.
Summary
| Nested classes | |
|---|---|
|
Script usage constants. |
|
| Constants | |
|---|---|
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Arabic |
| static Int | |
| static Int |
Armenian |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Bengali |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Bopomofo |
| static Int |
ISO 15924 script code |
| static Int |
Braille Script in Unicode 4 |
| static Int |
Script in Unicode 4. |
| static Int |
Buhid |
| static Int |
Unified Canadian Aboriginal Symbols |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Cherokee |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Common |
| static Int |
Coptic |
| static Int |
ISO 15924 script code |
| static Int |
Cypriot Script in Unicode 4 |
| static Int | |
| static Int |
Cyrillic |
| static Int |
ISO 15924 script code |
| static Int |
Deseret |
| static Int |
Devanagari |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Ethiopic |
| static Int | |
| static Int |
Georgian |
| static Int |
Script in Unicode 4. |
| static Int |
Gothic |
| static Int |
ISO 15924 script code |
| static Int |
Greek |
| static Int |
Gujarati |
| static Int | |
| static Int |
Gurmukhi |
| static Int | |
| static Int |
Han |
| static Int |
Hangul |
| static Int | |
| static Int |
Hanunooo |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Hebrew |
| static Int |
ISO 15924 script code |
| static Int |
Hiragana |
| static Int |
ISO 15924 script code |
| static Int |
Inherited |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Invalid code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Kannada |
| static Int |
Katakana |
| static Int |
Script in Unicode 4. |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Script in Unicode 4. |
| static Int | |
| static Int |
Khmer |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Lao |
| static Int |
Latin |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Limbu Script in Unicode 4 |
| static Int |
ISO 15924 script code |
| static Int |
Linear B Script in Unicode 4 |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
Malayalam |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Mende Kikakui ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Mangolian |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Myammar |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Script in Unicode 4. |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
Ogham |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Old Itallic |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Script in Unicode 4. |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
Oriya |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Osmanya Script in Unicode 4 |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Runic |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Shavian Script in Unicode 4 |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code for Sutton SignWriting |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Sinhala |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
Script in Unicode 4. |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
Syriac |
| static Int |
Tagalog |
| static Int |
Tagbanwa |
| static Int |
Tai Le Script in Unicode 4 |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Tamil |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
Telugu |
| static Int |
ISO 15924 script code |
| static Int |
Thana |
| static Int |
Thai |
| static Int |
Tibetan |
| static Int |
Script in Unicode 4. |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int | |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int | |
| static Int |
Unified Canadian Aboriginal Symbols (alias) |
| static Int |
Ugaritic Script in Unicode 4 |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int | |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int |
ISO 15924 script code |
| static Int | |
| static Int |
Yi syllables |
| static Int |
ISO 15924 script code |
| Public methods | |
|---|---|
| static Boolean |
breaksBetweenLetters(script: Int)Returns true if the script allows line breaks between letters (excluding hyphenation). |
| static IntArray! |
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. |
| static IntArray! |
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name. |
| static IntArray! |
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. |
| static Int |
getCodeFromName(nameOrAbbr: String!)Returns the script code associated with the given Unicode script property alias (name or abbreviation). |
| static String! |
Returns the long Unicode script name, if there is one. |
| static String! |
getSampleString(script: Int)Returns the script sample character string. |
| static Int |
Gets the script code associated with the given codepoint. |
| static Int |
getScriptExtensions(c: Int, set: BitSet!)Sets code point c's Script_Extensions as script code integers into the output BitSet. |
| static String! |
getShortName(scriptCode: Int)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! |
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. |
| static Boolean |
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. |
| static Boolean |
Returns true if in modern (or most recent) usage of the script case distinctions are customary. |
| static Boolean |
isRightToLeft(script: Int)Returns true if the script is written right-to-left. |
Constants
ANATOLIAN_HIEROGLYPHS
static val ANATOLIAN_HIEROGLYPHS: Int
ISO 15924 script code