- All Implemented Interfaces:
Serializable
,Comparable<Character.UnicodeScript>
,Constable
- Enclosing class:
- Character
public static enum Character.UnicodeScript extends Enum<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
.- Since:
- 1.7
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description ADLAM
Unicode script "Adlam".AHOM
Unicode script "Ahom".ANATOLIAN_HIEROGLYPHS
Unicode script "Anatolian Hieroglyphs".ARABIC
Unicode script "Arabic".ARMENIAN
Unicode script "Armenian".AVESTAN
Unicode script "Avestan".BALINESE
Unicode script "Balinese".BAMUM
Unicode script "Bamum".BASSA_VAH
Unicode script "Bassa Vah".BATAK
Unicode script "Batak".BENGALI
Unicode script "Bengali".BHAIKSUKI
Unicode script "Bhaiksuki".BOPOMOFO
Unicode script "Bopomofo".BRAHMI
Unicode script "Brahmi".BRAILLE
Unicode script "Braille".BUGINESE
Unicode script "Buginese".BUHID
Unicode script "Buhid".CANADIAN_ABORIGINAL
Unicode script "Canadian_Aboriginal".CARIAN
Unicode script "Carian".CAUCASIAN_ALBANIAN
Unicode script "Caucasian Albanian".CHAKMA
Unicode script "Chakma".CHAM
Unicode script "Cham".CHEROKEE
Unicode script "Cherokee".COMMON
Unicode script "Common".COPTIC
Unicode script "Coptic".CUNEIFORM
Unicode script "Cuneiform".CYPRIOT
Unicode script "Cypriot".CYRILLIC
Unicode script "Cyrillic".DESERET
Unicode script "Deseret".DEVANAGARI
Unicode script "Devanagari".DOGRA
Unicode script "Dogra".DUPLOYAN
Unicode script "Duployan".EGYPTIAN_HIEROGLYPHS
Unicode script "Egyptian_Hieroglyphs".ELBASAN
Unicode script "Elbasan".ELYMAIC
Unicode script "Elymaic".ETHIOPIC
Unicode script "Ethiopic".GEORGIAN
Unicode script "Georgian".GLAGOLITIC
Unicode script "Glagolitic".GOTHIC
Unicode script "Gothic".GRANTHA
Unicode script "Grantha".GREEK
Unicode script "Greek".GUJARATI
Unicode script "Gujarati".GUNJALA_GONDI
Unicode script "Gunjala Gondi".GURMUKHI
Unicode script "Gurmukhi".HAN
Unicode script "Han".HANGUL
Unicode script "Hangul".HANIFI_ROHINGYA
Unicode script "Hanifi Rohingya".HANUNOO
Unicode script "Hanunoo".HATRAN
Unicode script "Hatran".HEBREW
Unicode script "Hebrew".HIRAGANA
Unicode script "Hiragana".IMPERIAL_ARAMAIC
Unicode script "Imperial_Aramaic".INHERITED
Unicode script "Inherited".INSCRIPTIONAL_PAHLAVI
Unicode script "Inscriptional_Pahlavi".INSCRIPTIONAL_PARTHIAN
Unicode script "Inscriptional_Parthian".JAVANESE
Unicode script "Javanese".KAITHI
Unicode script "Kaithi".KANNADA
Unicode script "Kannada".KATAKANA
Unicode script "Katakana".KAYAH_LI
Unicode script "Kayah_Li".KHAROSHTHI
Unicode script "Kharoshthi".KHMER
Unicode script "Khmer".KHOJKI
Unicode script "Khojki".KHUDAWADI
Unicode script "Khudawadi".LAO
Unicode script "Lao".LATIN
Unicode script "Latin".LEPCHA
Unicode script "Lepcha".LIMBU
Unicode script "Limbu".LINEAR_A
Unicode script "Linear A".LINEAR_B
Unicode script "Linear_B".LISU
Unicode script "Lisu".LYCIAN
Unicode script "Lycian".LYDIAN
Unicode script "Lydian".MAHAJANI
Unicode script "Mahajani".MAKASAR
Unicode script "Makasar".MALAYALAM
Unicode script "Malayalam".MANDAIC
Unicode script "Mandaic".MANICHAEAN
Unicode script "Manichaean".MARCHEN
Unicode script "Marchen".MASARAM_GONDI
Unicode script "Masaram Gondi".MEDEFAIDRIN
Unicode script "Medefaidrin".MEETEI_MAYEK
Unicode script "Meetei_Mayek".MENDE_KIKAKUI
Unicode script "Mende Kikakui".MEROITIC_CURSIVE
Unicode script "Meroitic Cursive".MEROITIC_HIEROGLYPHS
Unicode script "Meroitic Hieroglyphs".MIAO
Unicode script "Miao".MODI
Unicode script "Modi".MONGOLIAN
Unicode script "Mongolian".MRO
Unicode script "Mro".MULTANI
Unicode script "Multani".MYANMAR
Unicode script "Myanmar".NABATAEAN
Unicode script "Nabataean".NANDINAGARI
Unicode script "Nandinagari".NEW_TAI_LUE
Unicode script "New_Tai_Lue".NEWA
Unicode script "Newa".NKO
Unicode script "Nko".NUSHU
Unicode script "Nushu".NYIAKENG_PUACHUE_HMONG
Unicode script "Nyiakeng Puachue Hmong".OGHAM
Unicode script "Ogham".OL_CHIKI
Unicode script "Ol_Chiki".OLD_HUNGARIAN
Unicode script "Old Hungarian".OLD_ITALIC
Unicode script "Old_Italic".OLD_NORTH_ARABIAN
Unicode script "Old North Arabian".OLD_PERMIC
Unicode script "Old Permic".OLD_PERSIAN
Unicode script "Old_Persian".OLD_SOGDIAN
Unicode script "Old Sogdian".OLD_SOUTH_ARABIAN
Unicode script "Old_South_Arabian".OLD_TURKIC
Unicode script "Old_Turkic".ORIYA
Unicode script "Oriya".OSAGE
Unicode script "Osage".OSMANYA
Unicode script "Osmanya".PAHAWH_HMONG
Unicode script "Pahawh Hmong".PALMYRENE
Unicode script "Palmyrene".PAU_CIN_HAU
Unicode script "Pau Cin Hau".PHAGS_PA
Unicode script "Phags_Pa".PHOENICIAN
Unicode script "Phoenician".PSALTER_PAHLAVI
Unicode script "Psalter Pahlavi".REJANG
Unicode script "Rejang".RUNIC
Unicode script "Runic".SAMARITAN
Unicode script "Samaritan".SAURASHTRA
Unicode script "Saurashtra".SHARADA
Unicode script "Sharada".SHAVIAN
Unicode script "Shavian".SIDDHAM
Unicode script "Siddham".SIGNWRITING
Unicode script "SignWriting".SINHALA
Unicode script "Sinhala".SOGDIAN
Unicode script "Sogdian".SORA_SOMPENG
Unicode script "Sora Sompeng".SOYOMBO
Unicode script "Soyombo".SUNDANESE
Unicode script "Sundanese".SYLOTI_NAGRI
Unicode script "Syloti_Nagri".SYRIAC
Unicode script "Syriac".TAGALOG
Unicode script "Tagalog".TAGBANWA
Unicode script "Tagbanwa".TAI_LE
Unicode script "Tai_Le".TAI_THAM
Unicode script "Tai_Tham".TAI_VIET
Unicode script "Tai_Viet".TAKRI
Unicode script "Takri".TAMIL
Unicode script "Tamil".TANGUT
Unicode script "Tangut".TELUGU
Unicode script "Telugu".THAANA
Unicode script "Thaana".THAI
Unicode script "Thai".TIBETAN
Unicode script "Tibetan".TIFINAGH
Unicode script "Tifinagh".TIRHUTA
Unicode script "Tirhuta".UGARITIC
Unicode script "Ugaritic".UNKNOWN
Unicode script "Unknown".VAI
Unicode script "Vai".WANCHO
Unicode script "Wancho".WARANG_CITI
Unicode script "Warang Citi".YI
Unicode script "Yi".ZANABAZAR_SQUARE
Unicode script "Zanabazar Square". -
Method Summary
Modifier and Type Method Description static Character.UnicodeScript
forName(String scriptName)
Returns the UnicodeScript constant with the given Unicode script name or the script name alias.static Character.UnicodeScript
of(int codePoint)
Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.static Character.UnicodeScript
valueOf(String name)
Returns the enum constant of this type with the specified name.static Character.UnicodeScript[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
COMMON
Unicode script "Common". -
LATIN
Unicode script "Latin". -
GREEK
Unicode script "Greek". -
CYRILLIC
Unicode script "Cyrillic". -
ARMENIAN
Unicode script "Armenian". -
HEBREW
Unicode script "Hebrew". -
ARABIC
Unicode script "Arabic". -
SYRIAC
Unicode script "Syriac". -
THAANA
Unicode script "Thaana". -
DEVANAGARI
Unicode script "Devanagari". -
BENGALI
Unicode script "Bengali". -
GURMUKHI
Unicode script "Gurmukhi". -
GUJARATI
Unicode script "Gujarati". -
ORIYA
Unicode script "Oriya". -
TAMIL
Unicode script "Tamil". -
TELUGU
Unicode script "Telugu". -
KANNADA
Unicode script "Kannada". -
MALAYALAM
Unicode script "Malayalam". -
SINHALA
Unicode script "Sinhala". -
THAI
Unicode script "Thai". -
LAO
Unicode script "Lao". -
TIBETAN
Unicode script "Tibetan". -
MYANMAR
Unicode script "Myanmar". -
GEORGIAN
Unicode script "Georgian". -
HANGUL
Unicode script "Hangul". -
ETHIOPIC
Unicode script "Ethiopic". -
CHEROKEE
Unicode script "Cherokee". -
CANADIAN_ABORIGINAL
Unicode script "Canadian_Aboriginal". -
OGHAM
Unicode script "Ogham". -
RUNIC
Unicode script "Runic". -
KHMER
Unicode script "Khmer". -
MONGOLIAN
Unicode script "Mongolian". -
HIRAGANA
Unicode script "Hiragana". -
KATAKANA
Unicode script "Katakana". -
BOPOMOFO
Unicode script "Bopomofo". -
HAN
Unicode script "Han". -
YI
Unicode script "Yi". -
OLD_ITALIC
Unicode script "Old_Italic". -
GOTHIC
Unicode script "Gothic". -
DESERET
Unicode script "Deseret". -
INHERITED
Unicode script "Inherited". -
TAGALOG
Unicode script "Tagalog". -
HANUNOO
Unicode script "Hanunoo". -
BUHID
Unicode script "Buhid". -
TAGBANWA
Unicode script "Tagbanwa". -
LIMBU
Unicode script "Limbu". -
TAI_LE
Unicode script "Tai_Le". -
LINEAR_B
Unicode script "Linear_B". -
UGARITIC
Unicode script "Ugaritic". -
SHAVIAN
Unicode script "Shavian". -
OSMANYA
Unicode script "Osmanya". -
CYPRIOT
Unicode script "Cypriot". -
BRAILLE
Unicode script "Braille". -
BUGINESE
Unicode script "Buginese". -
COPTIC
Unicode script "Coptic". -
NEW_TAI_LUE
Unicode script "New_Tai_Lue". -
GLAGOLITIC
Unicode script "Glagolitic". -
TIFINAGH
Unicode script "Tifinagh". -
SYLOTI_NAGRI
Unicode script "Syloti_Nagri". -
OLD_PERSIAN
Unicode script "Old_Persian". -
KHAROSHTHI
Unicode script "Kharoshthi". -
BALINESE
Unicode script "Balinese". -
CUNEIFORM
Unicode script "Cuneiform". -
PHOENICIAN
Unicode script "Phoenician". -
PHAGS_PA
Unicode script "Phags_Pa". -
NKO
Unicode script "Nko". -
SUNDANESE
Unicode script "Sundanese". -
BATAK
Unicode script "Batak". -
LEPCHA
Unicode script "Lepcha". -
OL_CHIKI
Unicode script "Ol_Chiki". -
VAI
Unicode script "Vai". -
SAURASHTRA
Unicode script "Saurashtra". -
KAYAH_LI
Unicode script "Kayah_Li". -
REJANG
Unicode script "Rejang". -
LYCIAN
Unicode script "Lycian". -
CARIAN
Unicode script "Carian". -
LYDIAN
Unicode script "Lydian". -
CHAM
Unicode script "Cham". -
TAI_THAM
Unicode script "Tai_Tham". -
TAI_VIET
Unicode script "Tai_Viet". -
AVESTAN
Unicode script "Avestan". -
EGYPTIAN_HIEROGLYPHS
Unicode script "Egyptian_Hieroglyphs". -
SAMARITAN
Unicode script "Samaritan". -
MANDAIC
Unicode script "Mandaic". -
LISU
Unicode script "Lisu". -
BAMUM
Unicode script "Bamum". -
JAVANESE
Unicode script "Javanese". -
MEETEI_MAYEK
Unicode script "Meetei_Mayek". -
IMPERIAL_ARAMAIC
Unicode script "Imperial_Aramaic". -
OLD_SOUTH_ARABIAN
Unicode script "Old_South_Arabian". -
INSCRIPTIONAL_PARTHIAN
Unicode script "Inscriptional_Parthian". -
INSCRIPTIONAL_PAHLAVI
Unicode script "Inscriptional_Pahlavi". -
OLD_TURKIC
Unicode script "Old_Turkic". -
BRAHMI
Unicode script "Brahmi". -
KAITHI
Unicode script "Kaithi". -
MEROITIC_HIEROGLYPHS
Unicode script "Meroitic Hieroglyphs".- Since:
- 1.8
-
MEROITIC_CURSIVE
Unicode script "Meroitic Cursive".- Since:
- 1.8
-
SORA_SOMPENG
Unicode script "Sora Sompeng".- Since:
- 1.8
-
CHAKMA
Unicode script "Chakma".- Since:
- 1.8
-
SHARADA
Unicode script "Sharada".- Since:
- 1.8
-
TAKRI
Unicode script "Takri".- Since:
- 1.8
-
MIAO
Unicode script "Miao".- Since:
- 1.8
-
CAUCASIAN_ALBANIAN
Unicode script "Caucasian Albanian".- Since:
- 9
-
BASSA_VAH
Unicode script "Bassa Vah".- Since:
- 9
-
DUPLOYAN
Unicode script "Duployan".- Since:
- 9
-
ELBASAN
Unicode script "Elbasan".- Since:
- 9
-
GRANTHA
Unicode script "Grantha".- Since:
- 9
-
PAHAWH_HMONG
Unicode script "Pahawh Hmong".- Since:
- 9
-
KHOJKI
Unicode script "Khojki".- Since:
- 9
-
LINEAR_A
Unicode script "Linear A".- Since:
- 9
-
MAHAJANI
Unicode script "Mahajani".- Since:
- 9
-
MANICHAEAN
Unicode script "Manichaean".- Since:
- 9
-
MENDE_KIKAKUI
Unicode script "Mende Kikakui".- Since:
- 9
-
MODI
Unicode script "Modi".- Since:
- 9
-
MRO
Unicode script "Mro".- Since:
- 9
-
OLD_NORTH_ARABIAN
Unicode script "Old North Arabian".- Since:
- 9
-
NABATAEAN
Unicode script "Nabataean".- Since:
- 9
-
PALMYRENE
Unicode script "Palmyrene".- Since:
- 9
-
PAU_CIN_HAU
Unicode script "Pau Cin Hau".- Since:
- 9
-
OLD_PERMIC
Unicode script "Old Permic".- Since:
- 9
-
PSALTER_PAHLAVI
Unicode script "Psalter Pahlavi".- Since:
- 9
-
SIDDHAM
Unicode script "Siddham".- Since:
- 9
-
KHUDAWADI
Unicode script "Khudawadi".- Since:
- 9
-
TIRHUTA
Unicode script "Tirhuta".- Since:
- 9
-
WARANG_CITI
Unicode script "Warang Citi".- Since:
- 9
-
AHOM
Unicode script "Ahom".- Since:
- 9
-
ANATOLIAN_HIEROGLYPHS
Unicode script "Anatolian Hieroglyphs".- Since:
- 9
-
HATRAN
Unicode script "Hatran".- Since:
- 9
-
MULTANI
Unicode script "Multani".- Since:
- 9
-
OLD_HUNGARIAN
Unicode script "Old Hungarian".- Since:
- 9
-
SIGNWRITING
Unicode script "SignWriting".- Since:
- 9
-
ADLAM
Unicode script "Adlam".- Since:
- 11
-
BHAIKSUKI
Unicode script "Bhaiksuki".- Since:
- 11
-
MARCHEN
Unicode script "Marchen".- Since:
- 11
-
NEWA
Unicode script "Newa".- Since:
- 11
-
OSAGE
Unicode script "Osage".- Since:
- 11
-
TANGUT
Unicode script "Tangut".- Since:
- 11
-
MASARAM_GONDI
Unicode script "Masaram Gondi".- Since:
- 11
-
NUSHU
Unicode script "Nushu".- Since:
- 11
-
SOYOMBO
Unicode script "Soyombo".- Since:
- 11
-
ZANABAZAR_SQUARE
Unicode script "Zanabazar Square".- Since:
- 11
-
HANIFI_ROHINGYA
Unicode script "Hanifi Rohingya".- Since:
- 12
-
OLD_SOGDIAN
Unicode script "Old Sogdian".- Since:
- 12
-
SOGDIAN
Unicode script "Sogdian".- Since:
- 12
-
DOGRA
Unicode script "Dogra".- Since:
- 12
-
GUNJALA_GONDI
Unicode script "Gunjala Gondi".- Since:
- 12
-
MAKASAR
Unicode script "Makasar".- Since:
- 12
-
MEDEFAIDRIN
Unicode script "Medefaidrin".- Since:
- 12
-
ELYMAIC
Unicode script "Elymaic".- Since:
- 13
-
NANDINAGARI
Unicode script "Nandinagari".- Since:
- 13
-
NYIAKENG_PUACHUE_HMONG
Unicode script "Nyiakeng Puachue Hmong".- Since:
- 13
-
WANCHO
Unicode script "Wancho".- Since:
- 13
-
UNKNOWN
Unicode script "Unknown".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Returns the enum constant representing the Unicode script of which the given character (Unicode code point) is assigned to.- Parameters:
codePoint
- the character (Unicode code point) in question.- Returns:
- The
UnicodeScript
constant representing the Unicode script of which this character is assigned to. - Throws:
IllegalArgumentException
- if the specifiedcodePoint
is an invalid Unicode code point.- See Also:
Character.isValidCodePoint(int)
-
forName
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 filesScripts<version>.txt
andPropertyValueAliases<version>.txt
define script names and the script name aliases for a particular version of the standard. TheCharacter
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
- AUnicodeScript
name.- Returns:
- The
UnicodeScript
constant identified byscriptName
- Throws:
IllegalArgumentException
- ifscriptName
is an invalid nameNullPointerException
- ifscriptName
is null
-