Added in API level 24

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

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

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

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

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

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

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

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

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

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

ISO 15924 script code

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

Returns true if the script allows line breaks between letters (excluding hyphenation).

static IntArray!
getCode(locale: Locale!)

Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.

static IntArray!
getCode(locale: ULocale!)

Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.

static IntArray!
getCode(nameOrAbbrOrLocale: String!)

Gets the 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!
getName(scriptCode: Int)

Returns the long Unicode script name, if there is one.

static String!

Returns the script sample character string.

static Int
getScript(codepoint: Int)

Gets the script code associated with the given codepoint.

static Int

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!
getUsage(script: Int)

Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.

static Boolean
hasScript(c: Int, sc: Int)

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
isCased(script: Int)

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

ADLAM

Added in API level 26
static val ADLAM: Int

ISO 15924 script code

Value: 167

AFAKA

Added in API level 24
static val AFAKA: Int

ISO 15924 script code

Value: 147

AHOM

Added in API level 24
static val AHOM: Int

ISO 15924 script code

Value: 161

ANATOLIAN_HIEROGLYPHS

Added in API level 24
static val ANATOLIAN_HIEROGLYPHS: Int

ISO 15924 script code

Value: 156

ARABIC

Added in API level 24
static val ARABIC: Int

Arabic

Value: 2

ARMENIAN

Added in API level 24
static val ARMENIAN: Int

Armenian

Value: 3

AVESTAN

Added in API level 24
static val AVESTAN: Int

ISO 15924 script code

Value: 117

BALINESE

Added in API level 24
static val BALINESE: Int

ISO 15924 script code

Value: 62

BAMUM

Added in API level 24
static val BAMUM: Int

ISO 15924 script code

Value: 130

BASSA_VAH

Added in API level 24
static val BASSA_VAH: Int

ISO 15924 script code

Value: 134

BATAK

Added in API level 24
static val BATAK: Int

ISO 15924 script code

Value: 63

BENGALI

Added in API level 24
static val BENGALI: Int

Bengali

Value: 4

BHAIKSUKI

Added in API level 26
static val BHAIKSUKI: Int

ISO 15924 script code

Value: 168

BLISSYMBOLS

Added in API level 24
static val BLISSYMBOLS: Int

ISO 15924 script code

Value: 64

BOOK_PAHLAVI

Added in API level 24
static val BOOK_PAHLAVI: Int

ISO 15924 script code

Value: 124

BOPOMOFO

Added in API level 24
static val BOPOMOFO: Int

Bopomofo

Value: 5

BRAHMI

Added in API level 24
static val BRAHMI: Int

ISO 15924 script code

Value: 65

BRAILLE

Added in API level 24
static val BRAILLE: Int

Braille Script in Unicode 4

Value: 46

BUGINESE

Added in API level 24
static val BUGINESE: Int

Script in Unicode 4.1

Value: 55

BUHID

Added in API level 24
static val BUHID: Int

Buhid

Value: 44

CANADIAN_ABORIGINAL

Added in API level 24
static val CANADIAN_ABORIGINAL: Int

Unified Canadian Aboriginal Symbols

Value: 40

CARIAN

Added in API level 24
static val CARIAN: Int

ISO 15924 script code

Value: 104

CAUCASIAN_ALBANIAN

Added in API level 24
static val CAUCASIAN_ALBANIAN: Int

ISO 15924 script code

Value: 159

CHAKMA

Added in API level 24
static val CHAKMA: Int

ISO 15924 script code

Value: 118

CHAM

Added in API level 24
static val CHAM: Int

ISO 15924 script code

Value: 66

CHEROKEE

Added in API level 24
static val CHEROKEE: Int

Cherokee

Value: 6

CHORASMIAN

Added in API level 30
static val CHORASMIAN: Int
Value: 189

CIRTH

Added in API level 24
static val CIRTH: Int

ISO 15924 script code

Value: 67

COMMON

Added in API level 24
static val COMMON: Int

Common

Value: 0

COPTIC

Added in API level 24
static val COPTIC: Int

Coptic

Value: 7

CUNEIFORM

Added in API level 24
static val CUNEIFORM: Int

ISO 15924 script code

Value: 101

CYPRIOT

Added in API level 24
static val CYPRIOT: Int

Cypriot Script in Unicode 4

Value: 47

CYPRO_MINOAN

Added in API level 33
static val CYPRO_MINOAN: Int
Value: 193

CYRILLIC

Added in API level 24
static val CYRILLIC: Int

Cyrillic

Value: 8

DEMOTIC_EGYPTIAN

Added in API level 24
static val DEMOTIC_EGYPTIAN: Int

ISO 15924 script code

Value: 69

DESERET

Added in API level 24
static val DESERET: Int

Deseret

Value: 9

DEVANAGARI

Added in API level 24
static val DEVANAGARI: Int

Devanagari

Value: 10

DIVES_AKURU

Added in API level 30
static val DIVES_AKURU: Int
Value: 190

DOGRA

Added in API level 29
static val DOGRA: Int

ISO 15924 script code

Value: 178

DUPLOYAN

Added in API level 24
static val DUPLOYAN: Int

ISO 15924 script code

Value: 135

EASTERN_SYRIAC

Added in API level 24
static val EASTERN_SYRIAC: Int

ISO 15924 script code

Value: 97

EGYPTIAN_HIEROGLYPHS

Added in API level 24
static val EGYPTIAN_HIEROGLYPHS: Int

ISO 15924 script code

Value: 71

ELBASAN

Added in API level 24
static val ELBASAN: Int

ISO 15924 script code

Value: 136

ELYMAIC

Added in API level 30
static val ELYMAIC: Int
Value: 185

ESTRANGELO_SYRIAC

Added in API level 24
static val ESTRANGELO_SYRIAC: Int

ISO 15924 script code

Value: 95

ETHIOPIC

Added in API level 24
static val ETHIOPIC: Int

Ethiopic

Value: 11

GEORGIAN

Added in API level 24
static val GEORGIAN: Int

Georgian

Value: 12

GLAGOLITIC

Added in API level 24
static val GLAGOLITIC: Int

Script in Unicode 4.1

Value: 56

GOTHIC

Added in API level 24
static val GOTHIC: Int

Gothic

Value: 13

GRANTHA

Added in API level 24
static val GRANTHA: Int

ISO 15924 script code

Value: 137

GREEK

Added in API level 24
static val GREEK: Int

Greek

Value: 14

GUJARATI

Added in API level 24
static val GUJARATI: Int

Gujarati

Value: 15

GUNJALA_GONDI

Added in API level 29
static val GUNJALA_GONDI: Int
Value: 179

GURMUKHI

Added in API level 24
static val GURMUKHI: Int

Gurmukhi

Value: 16

HAN

Added in API level 24
static val HAN: Int

Han

Value: 17

HANGUL

Added in API level 24
static val HANGUL: Int

Hangul

Value: 18

HANIFI_ROHINGYA

Added in API level 29
static val HANIFI_ROHINGYA: Int
Value: 182

HANUNOO

Added in API level 24
static val HANUNOO: Int

Hanunooo

Value: 43

HAN_WITH_BOPOMOFO

Added in API level 26
static val HAN_WITH_BOPOMOFO: Int

ISO 15924 script code

Value: 172

HARAPPAN_INDUS

Added in API level 24
static val HARAPPAN_INDUS: Int

ISO 15924 script code

Value: 77

HATRAN

Added in API level 24
static val HATRAN: Int

ISO 15924 script code

Value: 162

HEBREW

Added in API level 24
static val HEBREW: Int

Hebrew

Value: 19

HIERATIC_EGYPTIAN

Added in API level 24
static val HIERATIC_EGYPTIAN: Int

ISO 15924 script code

Value: 70

HIRAGANA

Added in API level 24
static val HIRAGANA: Int

Hiragana

Value: 20

IMPERIAL_ARAMAIC

Added in API level 24
static val IMPERIAL_ARAMAIC: Int

ISO 15924 script code

Value: 116

INHERITED

Added in API level 24
static val INHERITED: Int

Inherited

Value: 1

INSCRIPTIONAL_PAHLAVI

Added in API level 24
static val INSCRIPTIONAL_PAHLAVI: Int

ISO 15924 script code

Value: 122

INSCRIPTIONAL_PARTHIAN

Added in API level 24
static val INSCRIPTIONAL_PARTHIAN: Int

ISO 15924 script code

Value: 125

INVALID_CODE

Added in API level 24
static val INVALID_CODE: Int

Invalid code

Value: -1

JAMO

Added in API level 26
static val JAMO: Int

ISO 15924 script code

Value: 173

JAPANESE

Added in API level 24
static val JAPANESE: Int

ISO 15924 script code

Value: 105

JAVANESE

Added in API level 24
static val JAVANESE: Int

ISO 15924 script code

Value: 78

JURCHEN

Added in API level 24
static val JURCHEN: Int

ISO 15924 script code

Value: 148

KAITHI

Added in API level 24
static val KAITHI: Int

ISO 15924 script code

Value: 120

KANNADA

Added in API level 24
static val KANNADA: Int

Kannada

Value: 21

KATAKANA

Added in API level 24
static val KATAKANA: Int

Katakana

Value: 22

KATAKANA_OR_HIRAGANA

Added in API level 24
static val KATAKANA_OR_HIRAGANA: Int

Script in Unicode 4.0.1

Value: 54

KAWI

Added in API level 34
static val KAWI: Int
Value: 198

KAYAH_LI

Added in API level 24
static val KAYAH_LI: Int

ISO 15924 script code

Value: 79

KHAROSHTHI

Added in API level 24
static val KHAROSHTHI: Int

Script in Unicode 4.1

Value: 57

KHITAN_SMALL_SCRIPT

Added in API level 30
static val KHITAN_SMALL_SCRIPT: Int
Value: 191

KHMER

Added in API level 24
static val KHMER: Int

Khmer

Value: 23

KHOJKI

Added in API level 24
static val KHOJKI: Int

ISO 15924 script code

Value: 157

KHUDAWADI

Added in API level 24
static val KHUDAWADI: Int

ISO 15924 script code

Value: 145

KHUTSURI

Added in API level 24
static val KHUTSURI: Int

ISO 15924 script code

Value: 72

KOREAN

Added in API level 24
static val KOREAN: Int

ISO 15924 script code

Value: 119

KPELLE

Added in API level 24
static val KPELLE: Int

ISO 15924 script code

Value: 138

LANNA

Added in API level 24
static val LANNA: Int

ISO 15924 script code

Value: 106

LAO

Added in API level 24
static val LAO: Int

Lao

Value: 24

LATIN

Added in API level 24
static val LATIN: Int

Latin

Value: 25

LATIN_FRAKTUR

Added in API level 24
static val LATIN_FRAKTUR: Int

ISO 15924 script code

Value: 80

LATIN_GAELIC

Added in API level 24
static val LATIN_GAELIC: Int

ISO 15924 script code

Value: 81

LEPCHA

Added in API level 24
static val LEPCHA: Int

ISO 15924 script code

Value: 82

LIMBU

Added in API level 24
static val LIMBU: Int

Limbu Script in Unicode 4

Value: 48

LINEAR_A

Added in API level 24
static val LINEAR_A: Int

ISO 15924 script code

Value: 83

LINEAR_B

Added in API level 24
static val LINEAR_B: Int

Linear B Script in Unicode 4

Value: 49

LISU

Added in API level 24
static val LISU: Int

ISO 15924 script code

Value: 131

LOMA

Added in API level 24
static val LOMA: Int

ISO 15924 script code

Value: 139

LYCIAN

Added in API level 24
static val LYCIAN: Int

ISO 15924 script code

Value: 107

LYDIAN

Added in API level 24
static val LYDIAN: Int

ISO 15924 script code

Value: 108

MAHAJANI

Added in API level 24
static val MAHAJANI: Int

ISO 15924 script code

Value: 160

MAKASAR

Added in API level 29
static val MAKASAR: Int
Value: 180

MALAYALAM

Added in API level 24
static val MALAYALAM: Int

Malayalam

Value: 26

MANDAEAN

Added in API level 24
static val MANDAEAN: Int

ISO 15924 script code

Value: 84

MANDAIC

Added in API level 24
static val MANDAIC: Int

ISO 15924 script code

Value: 84

MANICHAEAN

Added in API level 24
static val MANICHAEAN: Int

ISO 15924 script code

Value: 121

MARCHEN

Added in API level 26
static val MARCHEN: Int

ISO 15924 script code

Value: 169

MASARAM_GONDI

Added in API level 28
static val MASARAM_GONDI: Int

ISO 15924 script code

Value: 175

MATHEMATICAL_NOTATION

Added in API level 24
static val MATHEMATICAL_NOTATION: Int

ISO 15924 script code

Value: 128

MAYAN_HIEROGLYPHS

Added in API level 24
static val MAYAN_HIEROGLYPHS: Int

ISO 15924 script code

Value: 85

MEDEFAIDRIN

Added in API level 29
static val MEDEFAIDRIN: Int
Value: 181

MEITEI_MAYEK

Added in API level 24
static val MEITEI_MAYEK: Int

ISO 15924 script code

Value: 115

MENDE

Added in API level 24
static val MENDE: Int

Mende Kikakui ISO 15924 script code

Value: 140

MEROITIC

Added in API level 24
static val MEROITIC: Int

ISO 15924 script code

Value: 86

MEROITIC_CURSIVE

Added in API level 24
static val MEROITIC_CURSIVE: Int

ISO 15924 script code

Value: 141

MEROITIC_HIEROGLYPHS

Added in API level 24
static val MEROITIC_HIEROGLYPHS: Int

ISO 15924 script code

Value: 86

MIAO

Added in API level 24
static val MIAO: Int

ISO 15924 script code

Value: 92

MODI

Added in API level 24
static val MODI: Int

ISO 15924 script code

Value: 163

MONGOLIAN

Added in API level 24
static val MONGOLIAN: Int

Mangolian

Value: 27

MOON

Added in API level 24
static val MOON: Int

ISO 15924 script code

Value: 114

MRO

Added in API level 24
static val MRO: Int

ISO 15924 script code

Value: 149

MULTANI

Added in API level 24
static val MULTANI: Int

ISO 15924 script code

Value: 164

MYANMAR

Added in API level 24
static val MYANMAR: Int

Myammar

Value: 28

NABATAEAN

Added in API level 24
static val NABATAEAN: Int

ISO 15924 script code

Value: 143

NAG_MUNDARI

Added in API level 34
static val NAG_MUNDARI: Int
Value: 199

NAKHI_GEBA

Added in API level 24
static val NAKHI_GEBA: Int

ISO 15924 script code

Value: 132

NANDINAGARI

Added in API level 30
static val NANDINAGARI: Int
Value: 187

NEWA

Added in API level 26
static val NEWA: Int

ISO 15924 script code

Value: 170

NEW_TAI_LUE

Added in API level 24
static val NEW_TAI_LUE: Int

Script in Unicode 4.1

Value: 59

NKO

Added in API level 24
static val NKO: Int

ISO 15924 script code

Value: 87

NUSHU

Added in API level 24
static val NUSHU: Int

ISO 15924 script code

Value: 150

NYIAKENG_PUACHUE_HMONG

Added in API level 30
static val NYIAKENG_PUACHUE_HMONG: Int
Value: 186

OGHAM

Added in API level 24
static val OGHAM: Int

Ogham

Value: 29

OLD_CHURCH_SLAVONIC_CYRILLIC

Added in API level 24
static val OLD_CHURCH_SLAVONIC_CYRILLIC: Int

ISO 15924 script code

Value: 68

OLD_HUNGARIAN

Added in API level 24
static val OLD_HUNGARIAN: Int

ISO 15924 script code

Value: 76

OLD_ITALIC

Added in API level 24
static val OLD_ITALIC: Int

Old Itallic

Value: 30

OLD_NORTH_ARABIAN

Added in API level 24
static val OLD_NORTH_ARABIAN: Int

ISO 15924 script code

Value: 142

OLD_PERMIC

Added in API level 24
static val OLD_PERMIC: Int

ISO 15924 script code

Value: 89

OLD_PERSIAN

Added in API level 24
static val OLD_PERSIAN: Int

Script in Unicode 4.1

Value: 61

OLD_SOGDIAN

Added in API level 29
static val OLD_SOGDIAN: Int
Value: 184

OLD_SOUTH_ARABIAN

Added in API level 24
static val OLD_SOUTH_ARABIAN: Int

ISO 15924 script code

Value: 133

OLD_UYGHUR

Added in API level 33
static val OLD_UYGHUR: Int
Value: 194

OL_CHIKI

Added in API level 24
static val OL_CHIKI: Int

ISO 15924 script code

Value: 109

ORIYA

Added in API level 24
static val ORIYA: Int

Oriya

Value: 31

ORKHON

Added in API level 24
static val ORKHON: Int

ISO 15924 script code

Value: 88

OSAGE

Added in API level 26
static val OSAGE: Int

ISO 15924 script code

Value: 171

OSMANYA

Added in API level 24
static val OSMANYA: Int

Osmanya Script in Unicode 4

Value: 50

PAHAWH_HMONG

Added in API level 24
static val PAHAWH_HMONG: Int

ISO 15924 script code

Value: 75

PALMYRENE

Added in API level 24
static val PALMYRENE: Int

ISO 15924 script code

Value: 144

PAU_CIN_HAU

Added in API level 24
static val PAU_CIN_HAU: Int

ISO 15924 script code

Value: 165

PHAGS_PA

Added in API level 24
static val PHAGS_PA: Int

ISO 15924 script code

Value: 90

PHOENICIAN

Added in API level 24
static val PHOENICIAN: Int

ISO 15924 script code

Value: 91

PHONETIC_POLLARD

Added in API level 24
static val PHONETIC_POLLARD: Int

ISO 15924 script code

Value: 92

PSALTER_PAHLAVI

Added in API level 24
static val PSALTER_PAHLAVI: Int

ISO 15924 script code

Value: 123

REJANG

Added in API level 24
static val REJANG: Int

ISO 15924 script code

Value: 110

RONGORONGO

Added in API level 24
static val RONGORONGO: Int

ISO 15924 script code

Value: 93

RUNIC

Added in API level 24
static val RUNIC: Int

Runic

Value: 32

SAMARITAN

Added in API level 24
static val SAMARITAN: Int

ISO 15924 script code

Value: 126

SARATI

Added in API level 24
static val SARATI: Int

ISO 15924 script code

Value: 94

SAURASHTRA

Added in API level 24
static val SAURASHTRA: Int

ISO 15924 script code

Value: 111

SHARADA

Added in API level 24
static val SHARADA: Int

ISO 15924 script code

Value: 151

SHAVIAN

Added in API level 24
static val SHAVIAN: Int

Shavian Script in Unicode 4

Value: 51

SIDDHAM

Added in API level 24
static val SIDDHAM: Int

ISO 15924 script code

Value: 166

SIGN_WRITING

Added in API level 24
static val SIGN_WRITING: Int

ISO 15924 script code for Sutton SignWriting

Value: 112

SIMPLIFIED_HAN

Added in API level 24
static val SIMPLIFIED_HAN: Int

ISO 15924 script code

Value: 73

SINDHI

Added in API level 24
static val SINDHI: Int

ISO 15924 script code

Value: 145

SINHALA

Added in API level 24
static val SINHALA: Int

Sinhala

Value: 33

SOGDIAN

Added in API level 29
static val SOGDIAN: Int
Value: 183

SORA_SOMPENG

Added in API level 24
static val SORA_SOMPENG: Int

ISO 15924 script code

Value: 152

SOYOMBO

Added in API level 28
static val SOYOMBO: Int

ISO 15924 script code

Value: 176

SUNDANESE

Added in API level 24
static val SUNDANESE: Int

ISO 15924 script code

Value: 113

SYLOTI_NAGRI

Added in API level 24
static val SYLOTI_NAGRI: Int

Script in Unicode 4.1

Value: 58

SYMBOLS

Added in API level 24
static val SYMBOLS: Int

ISO 15924 script code

Value: 129

SYMBOLS_EMOJI

Added in API level 26
static val SYMBOLS_EMOJI: Int

ISO 15924 script code

Value: 174

SYRIAC

Added in API level 24
static val SYRIAC: Int

Syriac

Value: 34

TAGALOG

Added in API level 24
static val TAGALOG: Int

Tagalog

Value: 42

TAGBANWA

Added in API level 24
static val TAGBANWA: Int

Tagbanwa

Value: 45

TAI_LE

Added in API level 24
static val TAI_LE: Int

Tai Le Script in Unicode 4

Value: 52

TAI_VIET

Added in API level 24
static val TAI_VIET: Int

ISO 15924 script code

Value: 127

TAKRI

Added in API level 24
static val TAKRI: Int

ISO 15924 script code

Value: 153

TAMIL

Added in API level 24
static val TAMIL: Int

Tamil

Value: 35

TANGSA

Added in API level 33
static val TANGSA: Int
Value: 195

TANGUT

Added in API level 24
static val TANGUT: Int

ISO 15924 script code

Value: 154

TELUGU

Added in API level 24
static val TELUGU: Int

Telugu

Value: 36

TENGWAR

Added in API level 24
static val TENGWAR: Int

ISO 15924 script code

Value: 98

THAANA

Added in API level 24
static val THAANA: Int

Thana

Value: 37

THAI

Added in API level 24
static val THAI: Int

Thai

Value: 38

TIBETAN

Added in API level 24
static val TIBETAN: Int

Tibetan

Value: 39

TIFINAGH

Added in API level 24
static val TIFINAGH: Int

Script in Unicode 4.1

Value: 60

TIRHUTA

Added in API level 24
static val TIRHUTA: Int

ISO 15924 script code

Value: 158

TOTO

Added in API level 33
static val TOTO: Int
Value: 196

TRADITIONAL_HAN

Added in API level 24
static val TRADITIONAL_HAN: Int

ISO 15924 script code

Value: 74

UCAS

Added in API level 24
static val UCAS: Int

Unified Canadian Aboriginal Symbols (alias)

Value: 40

UGARITIC

Added in API level 24
static val UGARITIC: Int

Ugaritic Script in Unicode 4

Value: 53

UNKNOWN

Added in API level 24
static val UNKNOWN: Int

ISO 15924 script code

Value: 103

UNWRITTEN_LANGUAGES

Added in API level 24
static val UNWRITTEN_LANGUAGES: Int

ISO 15924 script code

Value: 102

VAI

Added in API level 24
static val VAI: Int

ISO 15924 script code

Value: 99

VISIBLE_SPEECH

Added in API level 24
static val VISIBLE_SPEECH: Int

ISO 15924 script code

Value: 100

VITHKUQI

Added in API level 33
static val VITHKUQI: Int
Value: 197

WANCHO

Added in API level 30
static val WANCHO: Int
Value: 188

WARANG_CITI

Added in API level 24
static val WARANG_CITI: Int

ISO 15924 script code

Value: 146

WESTERN_SYRIAC

Added in API level 24
static val WESTERN_SYRIAC: Int

ISO 15924 script code

Value: 96

WOLEAI

Added in API level 24
static val WOLEAI: Int

ISO 15924 script code

Value: 155

YEZIDI

Added in API level 30
static val YEZIDI: Int
Value: 192

YI

Added in API level 24
static val YI: Int

Yi syllables

Value: 41

ZANABAZAR_SQUARE

Added in API level 28
static val ZANABAZAR_SQUARE: Int

ISO 15924 script code

Value: 177

Public methods

breaksBetweenLetters

Added in API level 24
static fun breaksBetweenLetters(script: Int): Boolean

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 Int: script code
Return
Boolean true if the script allows line breaks between letters

getCode

Added in API level 24
static fun getCode(locale: Locale!): IntArray!

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!: Locale
Return
IntArray! The script codes array. null if the the code cannot be found.

getCode

Added in API level 24
static fun getCode(locale: ULocale!): IntArray!

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!: ULocale
Return
IntArray! The script codes array. null if the the code cannot be found.

getCode

Added in API level 24
static fun getCode(nameOrAbbrOrLocale: String!): IntArray!

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(java.lang.String) instead. That does a fast lookup with no access of the locale data.

Parameters
nameOrAbbrOrLocale String!: name of the script or ISO 15924 code or locale
Return
IntArray! The script codes array. null if the the code cannot be found.

getCodeFromName

Added in API level 24
static fun getCodeFromName(nameOrAbbr: String!): Int

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 String!: name of the script or ISO 15924 code
Return
Int The script code value, or INVALID_CODE if the code cannot be found.

getName

Added in API level 24
static fun getName(scriptCode: Int): String!

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: int script code
Return
String! long script name as given in PropertyValueAliases.txt, or the 4-letter code
Exceptions
java.lang.IllegalArgumentException if the script code is not valid

getSampleString

Added in API level 24
static fun getSampleString(script: Int): String!

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 Int: script code
Return
String! the sample character string

getScript

Added in API level 24
static fun getScript(codepoint: Int): Int

Gets the script code associated with the given codepoint. Returns UScript.MALAYAM given 0x0D02

Parameters
codepoint Int: UChar32 codepoint
Return
Int The script code

getScriptExtensions

Added in API level 24
static fun getScriptExtensions(
    c: Int,
    set: BitSet!
): Int

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.
In other words, if the return value is non-negative, it is c's single Script code and the set contains exactly this Script code. If the return value is -n, then the set contains c's n>=2 Script_Extensions script codes.

Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.

Parameters
c Int: code point
set BitSet!: set of script code integers; will be cleared, then bits are set corresponding to c's Script_Extensions
Return
Int negative number of script codes in c's Script_Extensions, or the non-negative single Script value

getShortName

Added in API level 24
static fun getShortName(scriptCode: Int): String!

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: int script code
Return
String! short script name (4-letter code)
Exceptions
java.lang.IllegalArgumentException if the script code is not valid

getUsage

Added in API level 24
static fun getUsage(script: Int): UScript.ScriptUsage!

Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. Returns ScriptUsage#NOT_ENCODED if the script is not encoded in Unicode.

Parameters
script Int: script code
Return
UScript.ScriptUsage! script usage

hasScript

Added in API level 24
static fun hasScript(
    c: Int,
    sc: Int
): 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.

Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.

Parameters
c Int: code point
sc Int: script code
Return
Boolean true if sc is in Script_Extensions(c)

isCased

Added in API level 24
static fun isCased(script: Int): Boolean

Returns true if in modern (or most recent) usage of the script case distinctions are customary. For example, Latn and Cyrl.

Parameters
script Int: script code
Return
Boolean true if the script is cased

isRightToLeft

Added in API level 24
static fun isRightToLeft(script: Int): Boolean

Returns true if the script is written right-to-left. For example, Arab and Hebr.

Parameters
script Int: script code
Return
Boolean true if the script is right-to-left