UnicodeScript
class UnicodeScript
kotlin.Any | ||
↳ | kotlin.Enum<java.lang.Character.UnicodeScript> | |
↳ | java.lang.Character.UnicodeScript |
A family of character subsets representing the character scripts defined in the Unicode Standard Annex #24: Script Names. Every Unicode character is assigned to a single Unicode script, either a specific script, such as Latin
, or one of the following three special values, Inherited
, Common
or Unknown
.
Summary
Enum values | |
---|---|
Unicode script "Adlam". |
|
Unicode script "Ahom". |
|
Unicode script "Anatolian Hieroglyphs". |
|
Unicode script "Arabic". |
|
Unicode script "Armenian". |
|
Unicode script "Avestan". |
|
Unicode script "Balinese". |
|
Unicode script "Bamum". |
|
Unicode script "Bassa Vah". |
|
Unicode script "Batak". |
|
Unicode script "Bengali". |
|
Unicode script "Bhaiksuki". |
|
Unicode script "Bopomofo". |
|
Unicode script "Brahmi". |
|
Unicode script "Braille". |
|
Unicode script "Buginese". |
|
Unicode script "Buhid". |
|
Unicode script "Canadian_Aboriginal". |
|
Unicode script "Carian". |
|
Unicode script "Caucasian Albanian". |
|
Unicode script "Chakma". |
|
Unicode script "Cham". |
|
Unicode script "Cherokee". |
|
Unicode script "Chorasmian". |
|
Unicode script "Common". |
|
Unicode script "Coptic". |
|
Unicode script "Cuneiform". |
|
Unicode script "Cypriot". |
|
Unicode script "Cypro Minoan". |
|
Unicode script "Cyrillic". |
|
Unicode script "Deseret". |
|
Unicode script "Devanagari". |
|
Unicode script "Dives Akuru". |
|
Unicode script "Dogra". |
|
Unicode script "Duployan". |
|
Unicode script "Egyptian_Hieroglyphs". |
|
Unicode script "Elbasan". |
|
Unicode script "Elymaic". |
|
Unicode script "Ethiopic". |
|
Unicode script "Georgian". |
|
Unicode script "Glagolitic". |
|
Unicode script "Gothic". |
|
Unicode script "Grantha". |
|
Unicode script "Greek". |
|
Unicode script "Gujarati". |
|
Unicode script "Gunjala Gondi". |
|
Unicode script "Gurmukhi". |
|
Unicode script "Han". |
|
Unicode script "Hangul". |
|
Unicode script "Hanifi Rohingya". |
|
Unicode script "Hanunoo". |
|
Unicode script "Hatran". |
|
Unicode script "Hebrew". |
|
Unicode script "Hiragana". |
|
Unicode script "Imperial_Aramaic". |
|
Unicode script "Inherited". |
|
Unicode script "Inscriptional_Pahlavi". |
|
Unicode script "Inscriptional_Parthian". |
|
Unicode script "Javanese". |
|
Unicode script "Kaithi". |
|
Unicode script "Kannada". |
|
Unicode script "Katakana". |
|
Unicode script "Kawi". |
|
Unicode script "Kayah_Li". |
|
Unicode script "Kharoshthi". |
|
Unicode script "Khitan Small Script". |
|
Unicode script "Khmer". |
|
Unicode script "Khojki". |
|
Unicode script "Khudawadi". |
|
Unicode script "Lao". |
|
Unicode script "Latin". |
|
Unicode script "Lepcha". |
|
Unicode script "Limbu". |
|
Unicode script "Linear A". |
|
Unicode script "Linear_B". |
|
Unicode script "Lisu". |
|
Unicode script "Lycian". |
|
Unicode script "Lydian". |
|
Unicode script "Mahajani". |
|
Unicode script "Makasar". |
|
Unicode script "Malayalam". |
|
Unicode script "Mandaic". |
|
Unicode script "Manichaean". |
|
Unicode script "Marchen". |
|
Unicode script "Masaram Gondi". |
|
Unicode script "Medefaidrin". |
|
Unicode script "Meetei_Mayek". |
|
Unicode script "Mende Kikakui". |
|
Unicode script "Meroitic Cursive". |
|
Unicode script "Meroitic Hieroglyphs". |
|
Unicode script "Miao". |
|
Unicode script "Modi". |
|
Unicode script "Mongolian". |
|
Unicode script "Mro". |
|
Unicode script "Multani". |
|
Unicode script "Myanmar". |
|
Unicode script "Nabataean". |
|
Unicode script "Nag Mundari". |
|
Unicode script "Nandinagari". |
|
Unicode script "Newa". |
|
Unicode script "New_Tai_Lue". |
|
Unicode script "Nko". |
|
Unicode script "Nushu". |
|
Unicode script "Nyiakeng Puachue Hmong". |
|
Unicode script "Ogham". |
|
Unicode script "Old Hungarian". |
|
Unicode script "Old_Italic". |
|
Unicode script "Old North Arabian". |
|
Unicode script "Old Permic". |
|
Unicode script "Old_Persian". |
|
Unicode script "Old Sogdian". |
|
Unicode script "Old_South_Arabian". |
|
Unicode script "Old_Turkic". |
|
Unicode script "Old Uyghur". |
|
Unicode script "Ol_Chiki". |
|
Unicode script "Oriya". |
|
Unicode script "Osage". |
|
Unicode script "Osmanya". |
|
Unicode script "Pahawh Hmong". |
|
Unicode script "Palmyrene". |
|
Unicode script "Pau Cin Hau". |
|
Unicode script "Phags_Pa". |
|
Unicode script "Phoenician". |
|
Unicode script "Psalter Pahlavi". |
|
Unicode script "Rejang". |
|
Unicode script "Runic". |
|
Unicode script "Samaritan". |
|
Unicode script "Saurashtra". |
|
Unicode script "Sharada". |
|
Unicode script "Shavian". |
|
Unicode script "Siddham". |
|
Unicode script "SignWriting". |
|
Unicode script "Sinhala". |
|
Unicode script "Sogdian". |
|
Unicode script "Sora Sompeng". |
|
Unicode script "Soyombo". |
|
Unicode script "Sundanese". |
|
Unicode script "Syloti_Nagri". |
|
Unicode script "Syriac". |
|
Unicode script "Tagalog". |
|
Unicode script "Tagbanwa". |
|
Unicode script "Tai_Le". |
|
Unicode script "Tai_Tham". |
|
Unicode script "Tai_Viet". |
|
Unicode script "Takri". |
|
Unicode script "Tamil". |
|
Unicode script "Tangsa". |
|
Unicode script "Tangut". |
|
Unicode script "Telugu". |
|
Unicode script "Thaana". |
|
Unicode script "Thai". |
|
Unicode script "Tibetan". |
|
Unicode script "Tifinagh". |
|
Unicode script "Tirhuta". |
|
Unicode script "Toto". |
|
Unicode script "Ugaritic". |
|
Unicode script "Unknown". |
|
Unicode script "Vai". |
|
Unicode script "Vithkuqi". |
|
Unicode script "Wancho". |
|
Unicode script "Warang Citi". |
|
Unicode script "Yezidi". |
|
Unicode script "Yi". |
|
Unicode script "Zanabazar Square". |
Public methods | |
---|---|
static Character.UnicodeScript |
Returns the UnicodeScript constant with the given Unicode script name or the script name alias. |
static Character.UnicodeScript |
Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to. |
Enum values
ANATOLIAN_HIEROGLYPHS
enum val ANATOLIAN_HIEROGLYPHS : Character.UnicodeScript
Unicode script "Anatolian Hieroglyphs".
ARMENIAN
enum val ARMENIAN : Character.UnicodeScript
Unicode script "Armenian".
BALINESE
enum val BALINESE : Character.UnicodeScript
Unicode script "Balinese".
BASSA_VAH
enum val BASSA_VAH : Character.UnicodeScript
Unicode script "Bassa Vah".
BHAIKSUKI
enum val BHAIKSUKI : Character.UnicodeScript
Unicode script "Bhaiksuki".
BOPOMOFO
enum val BOPOMOFO : Character.UnicodeScript
Unicode script "Bopomofo".
BUGINESE
enum val BUGINESE : Character.UnicodeScript
Unicode script "Buginese".
CANADIAN_ABORIGINAL
enum val CANADIAN_ABORIGINAL : Character.UnicodeScript
Unicode script "Canadian_Aboriginal".
CAUCASIAN_ALBANIAN
enum val CAUCASIAN_ALBANIAN : Character.UnicodeScript
Unicode script "Caucasian Albanian".
CHEROKEE
enum val CHEROKEE : Character.UnicodeScript
Unicode script "Cherokee".
CHORASMIAN
enum val CHORASMIAN : Character.UnicodeScript
Unicode script "Chorasmian".
CUNEIFORM
enum val CUNEIFORM : Character.UnicodeScript
Unicode script "Cuneiform".
CYPRO_MINOAN
enum val CYPRO_MINOAN : Character.UnicodeScript
Unicode script "Cypro Minoan".
CYRILLIC
enum val CYRILLIC : Character.UnicodeScript
Unicode script "Cyrillic".
DEVANAGARI
enum val DEVANAGARI : Character.UnicodeScript
Unicode script "Devanagari".
DIVES_AKURU
enum val DIVES_AKURU : Character.UnicodeScript
Unicode script "Dives Akuru".
DUPLOYAN
enum val DUPLOYAN : Character.UnicodeScript
Unicode script "Duployan".
EGYPTIAN_HIEROGLYPHS
enum val EGYPTIAN_HIEROGLYPHS : Character.UnicodeScript
Unicode script "Egyptian_Hieroglyphs".
ETHIOPIC
enum val ETHIOPIC : Character.UnicodeScript
Unicode script "Ethiopic".
GEORGIAN
enum val GEORGIAN : Character.UnicodeScript
Unicode script "Georgian".
GLAGOLITIC
enum val GLAGOLITIC : Character.UnicodeScript
Unicode script "Glagolitic".
GUJARATI
enum val GUJARATI : Character.UnicodeScript
Unicode script "Gujarati".
GUNJALA_GONDI
enum val GUNJALA_GONDI : Character.UnicodeScript
Unicode script "Gunjala Gondi".
GURMUKHI
enum val GURMUKHI : Character.UnicodeScript
Unicode script "Gurmukhi".
HANIFI_ROHINGYA
enum val HANIFI_ROHINGYA : Character.UnicodeScript
Unicode script "Hanifi Rohingya".
HIRAGANA
enum val HIRAGANA : Character.UnicodeScript
Unicode script "Hiragana".
IMPERIAL_ARAMAIC
enum val IMPERIAL_ARAMAIC : Character.UnicodeScript
Unicode script "Imperial_Aramaic".
INHERITED
enum val INHERITED : Character.UnicodeScript
Unicode script "Inherited".
INSCRIPTIONAL_PAHLAVI
enum val INSCRIPTIONAL_PAHLAVI : Character.UnicodeScript
Unicode script "Inscriptional_Pahlavi".
INSCRIPTIONAL_PARTHIAN
enum val INSCRIPTIONAL_PARTHIAN : Character.UnicodeScript
Unicode script "Inscriptional_Parthian".
JAVANESE
enum val JAVANESE : Character.UnicodeScript
Unicode script "Javanese".
KATAKANA
enum val KATAKANA : Character.UnicodeScript
Unicode script "Katakana".
KAYAH_LI
enum val KAYAH_LI : Character.UnicodeScript
Unicode script "Kayah_Li".
KHAROSHTHI
enum val KHAROSHTHI : Character.UnicodeScript
Unicode script "Kharoshthi".
KHITAN_SMALL_SCRIPT
enum val KHITAN_SMALL_SCRIPT : Character.UnicodeScript
Unicode script "Khitan Small Script".
KHUDAWADI
enum val KHUDAWADI : Character.UnicodeScript
Unicode script "Khudawadi".
LINEAR_A
enum val LINEAR_A : Character.UnicodeScript
Unicode script "Linear A".
LINEAR_B
enum val LINEAR_B : Character.UnicodeScript
Unicode script "Linear_B".
MAHAJANI
enum val MAHAJANI : Character.UnicodeScript
Unicode script "Mahajani".
MALAYALAM
enum val MALAYALAM : Character.UnicodeScript
Unicode script "Malayalam".
MANICHAEAN
enum val MANICHAEAN : Character.UnicodeScript
Unicode script "Manichaean".
MASARAM_GONDI
enum val MASARAM_GONDI : Character.UnicodeScript
Unicode script "Masaram Gondi".
MEDEFAIDRIN
enum val MEDEFAIDRIN : Character.UnicodeScript
Unicode script "Medefaidrin".
MEETEI_MAYEK
enum val MEETEI_MAYEK : Character.UnicodeScript
Unicode script "Meetei_Mayek".
MENDE_KIKAKUI
enum val MENDE_KIKAKUI : Character.UnicodeScript
Unicode script "Mende Kikakui".
MEROITIC_CURSIVE
enum val MEROITIC_CURSIVE : Character.UnicodeScript
Unicode script "Meroitic Cursive".
MEROITIC_HIEROGLYPHS
enum val MEROITIC_HIEROGLYPHS : Character.UnicodeScript
Unicode script "Meroitic Hieroglyphs".
MONGOLIAN
enum val MONGOLIAN : Character.UnicodeScript
Unicode script "Mongolian".
NABATAEAN
enum val NABATAEAN : Character.UnicodeScript
Unicode script "Nabataean".
NAG_MUNDARI
enum val NAG_MUNDARI : Character.UnicodeScript
Unicode script "Nag Mundari".
NANDINAGARI
enum val NANDINAGARI : Character.UnicodeScript
Unicode script "Nandinagari".
NEW_TAI_LUE
enum val NEW_TAI_LUE : Character.UnicodeScript
Unicode script "New_Tai_Lue".
NYIAKENG_PUACHUE_HMONG
enum val NYIAKENG_PUACHUE_HMONG : Character.UnicodeScript
Unicode script "Nyiakeng Puachue Hmong".
OLD_HUNGARIAN
enum val OLD_HUNGARIAN : Character.UnicodeScript
Unicode script "Old Hungarian".
OLD_ITALIC
enum val OLD_ITALIC : Character.UnicodeScript
Unicode script "Old_Italic".
OLD_NORTH_ARABIAN
enum val OLD_NORTH_ARABIAN : Character.UnicodeScript
Unicode script "Old North Arabian".
OLD_PERMIC
enum val OLD_PERMIC : Character.UnicodeScript
Unicode script "Old Permic".
OLD_PERSIAN
enum val OLD_PERSIAN : Character.UnicodeScript
Unicode script "Old_Persian".
OLD_SOGDIAN
enum val OLD_SOGDIAN : Character.UnicodeScript
Unicode script "Old Sogdian".
OLD_SOUTH_ARABIAN
enum val OLD_SOUTH_ARABIAN : Character.UnicodeScript
Unicode script "Old_South_Arabian".
OLD_TURKIC
enum val OLD_TURKIC : Character.UnicodeScript
Unicode script "Old_Turkic".
OLD_UYGHUR
enum val OLD_UYGHUR : Character.UnicodeScript
Unicode script "Old Uyghur".
OL_CHIKI
enum val OL_CHIKI : Character.UnicodeScript
Unicode script "Ol_Chiki".
PAHAWH_HMONG
enum val PAHAWH_HMONG : Character.UnicodeScript
Unicode script "Pahawh Hmong".
PALMYRENE
enum val PALMYRENE : Character.UnicodeScript
Unicode script "Palmyrene".
PAU_CIN_HAU
enum val PAU_CIN_HAU : Character.UnicodeScript
Unicode script "Pau Cin Hau".
PHAGS_PA
enum val PHAGS_PA : Character.UnicodeScript
Unicode script "Phags_Pa".
PHOENICIAN
enum val PHOENICIAN : Character.UnicodeScript
Unicode script "Phoenician".
PSALTER_PAHLAVI
enum val PSALTER_PAHLAVI : Character.UnicodeScript
Unicode script "Psalter Pahlavi".
SAMARITAN
enum val SAMARITAN : Character.UnicodeScript
Unicode script "Samaritan".
SAURASHTRA
enum val SAURASHTRA : Character.UnicodeScript
Unicode script "Saurashtra".
SIGNWRITING
enum val SIGNWRITING : Character.UnicodeScript
Unicode script "SignWriting".
SORA_SOMPENG
enum val SORA_SOMPENG : Character.UnicodeScript
Unicode script "Sora Sompeng".
SUNDANESE
enum val SUNDANESE : Character.UnicodeScript
Unicode script "Sundanese".
SYLOTI_NAGRI
enum val SYLOTI_NAGRI : Character.UnicodeScript
Unicode script "Syloti_Nagri".
TAGBANWA
enum val TAGBANWA : Character.UnicodeScript
Unicode script "Tagbanwa".
TAI_THAM
enum val TAI_THAM : Character.UnicodeScript
Unicode script "Tai_Tham".
TAI_VIET
enum val TAI_VIET : Character.UnicodeScript
Unicode script "Tai_Viet".
TANGSA
enum val TANGSA : Character.UnicodeScript
Unicode script "Tangsa".
TIFINAGH
enum val TIFINAGH : Character.UnicodeScript
Unicode script "Tifinagh".
UGARITIC
enum val UGARITIC : Character.UnicodeScript
Unicode script "Ugaritic".
VITHKUQI
enum val VITHKUQI : Character.UnicodeScript
Unicode script "Vithkuqi".
WARANG_CITI
enum val WARANG_CITI : Character.UnicodeScript
Unicode script "Warang Citi".
ZANABAZAR_SQUARE
enum val ZANABAZAR_SQUARE : Character.UnicodeScript
Unicode script "Zanabazar Square".
Public methods
forName
static fun forName(scriptName: String): Character.UnicodeScript
Returns the UnicodeScript constant with the given Unicode script name or the script name alias. Script names and their aliases are determined by The Unicode Standard. The files Scripts.txt
and PropertyValueAliases.txt
define script names and the script name aliases for a particular version of the standard. The Character
class specifies the version of the standard that it supports.
Character case is ignored for all of the valid script names. The en_US locale's case mapping rules are used to provide case-insensitive string comparisons for script name validation.
Parameters | |
---|---|
scriptName |
String: A UnicodeScript name. |
Return | |
---|---|
Character.UnicodeScript |
The UnicodeScript constant identified by scriptName |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if scriptName is an invalid name |
java.lang.NullPointerException |
if scriptName is null |
of
static fun of(codePoint: Int): Character.UnicodeScript
Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.
Parameters | |
---|---|
codePoint |
Int: the character (Unicode code point) in question. |
Return | |
---|---|
Character.UnicodeScript |
The UnicodeScript constant representing the Unicode script of which this character is assigned to. |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if the specified codePoint is an invalid Unicode code point. |