Skip to content

Most visited

Recently visited

navigation

Character.UnicodeScript

public static final enum Character.UnicodeScript
extends Enum<Character.UnicodeScript>

java.lang.Object
   ↳ java.lang.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

Character.UnicodeScript  ARABIC

Unicode script "Arabic". 

Character.UnicodeScript  ARMENIAN

Unicode script "Armenian". 

Character.UnicodeScript  AVESTAN

Unicode script "Avestan". 

Character.UnicodeScript  BALINESE

Unicode script "Balinese". 

Character.UnicodeScript  BAMUM

Unicode script "Bamum". 

Character.UnicodeScript  BATAK

Unicode script "Batak". 

Character.UnicodeScript  BENGALI

Unicode script "Bengali". 

Character.UnicodeScript  BOPOMOFO

Unicode script "Bopomofo". 

Character.UnicodeScript  BRAHMI

Unicode script "Brahmi". 

Character.UnicodeScript  BRAILLE

Unicode script "Braille". 

Character.UnicodeScript  BUGINESE

Unicode script "Buginese". 

Character.UnicodeScript  BUHID

Unicode script "Buhid". 

Character.UnicodeScript  CANADIAN_ABORIGINAL

Unicode script "Canadian_Aboriginal". 

Character.UnicodeScript  CARIAN

Unicode script "Carian". 

Character.UnicodeScript  CHAKMA

Unicode script "Chakma". 

Character.UnicodeScript  CHAM

Unicode script "Cham". 

Character.UnicodeScript  CHEROKEE

Unicode script "Cherokee". 

Character.UnicodeScript  COMMON

Unicode script "Common". 

Character.UnicodeScript  COPTIC

Unicode script "Coptic". 

Character.UnicodeScript  CUNEIFORM

Unicode script "Cuneiform". 

Character.UnicodeScript  CYPRIOT

Unicode script "Cypriot". 

Character.UnicodeScript  CYRILLIC

Unicode script "Cyrillic". 

Character.UnicodeScript  DESERET

Unicode script "Deseret". 

Character.UnicodeScript  DEVANAGARI

Unicode script "Devanagari". 

Character.UnicodeScript  EGYPTIAN_HIEROGLYPHS

Unicode script "Egyptian_Hieroglyphs". 

Character.UnicodeScript  ETHIOPIC

Unicode script "Ethiopic". 

Character.UnicodeScript  GEORGIAN

Unicode script "Georgian". 

Character.UnicodeScript  GLAGOLITIC

Unicode script "Glagolitic". 

Character.UnicodeScript  GOTHIC

Unicode script "Gothic". 

Character.UnicodeScript  GREEK

Unicode script "Greek". 

Character.UnicodeScript  GUJARATI

Unicode script "Gujarati". 

Character.UnicodeScript  GURMUKHI

Unicode script "Gurmukhi". 

Character.UnicodeScript  HAN

Unicode script "Han". 

Character.UnicodeScript  HANGUL

Unicode script "Hangul". 

Character.UnicodeScript  HANUNOO

Unicode script "Hanunoo". 

Character.UnicodeScript  HEBREW

Unicode script "Hebrew". 

Character.UnicodeScript  HIRAGANA

Unicode script "Hiragana". 

Character.UnicodeScript  IMPERIAL_ARAMAIC

Unicode script "Imperial_Aramaic". 

Character.UnicodeScript  INHERITED

Unicode script "Inherited". 

Character.UnicodeScript  INSCRIPTIONAL_PAHLAVI

Unicode script "Inscriptional_Pahlavi". 

Character.UnicodeScript  INSCRIPTIONAL_PARTHIAN

Unicode script "Inscriptional_Parthian". 

Character.UnicodeScript  JAVANESE

Unicode script "Javanese". 

Character.UnicodeScript  KAITHI

Unicode script "Kaithi". 

Character.UnicodeScript  KANNADA

Unicode script "Kannada". 

Character.UnicodeScript  KATAKANA

Unicode script "Katakana". 

Character.UnicodeScript  KAYAH_LI

Unicode script "Kayah_Li". 

Character.UnicodeScript  KHAROSHTHI

Unicode script "Kharoshthi". 

Character.UnicodeScript  KHMER

Unicode script "Khmer". 

Character.UnicodeScript  LAO

Unicode script "Lao". 

Character.UnicodeScript  LATIN

Unicode script "Latin". 

Character.UnicodeScript  LEPCHA

Unicode script "Lepcha". 

Character.UnicodeScript  LIMBU

Unicode script "Limbu". 

Character.UnicodeScript  LINEAR_B

Unicode script "Linear_B". 

Character.UnicodeScript  LISU

Unicode script "Lisu". 

Character.UnicodeScript  LYCIAN

Unicode script "Lycian". 

Character.UnicodeScript  LYDIAN

Unicode script "Lydian". 

Character.UnicodeScript  MALAYALAM

Unicode script "Malayalam". 

Character.UnicodeScript  MANDAIC

Unicode script "Mandaic". 

Character.UnicodeScript  MEETEI_MAYEK

Unicode script "Meetei_Mayek". 

Character.UnicodeScript  MEROITIC_CURSIVE

Unicode script "Meroitic Cursive". 

Character.UnicodeScript  MEROITIC_HIEROGLYPHS

Unicode script "Meroitic Hieroglyphs". 

Character.UnicodeScript  MIAO

Unicode script "Miao". 

Character.UnicodeScript  MONGOLIAN

Unicode script "Mongolian". 

Character.UnicodeScript  MYANMAR

Unicode script "Myanmar". 

Character.UnicodeScript  NEW_TAI_LUE

Unicode script "New_Tai_Lue". 

Character.UnicodeScript  NKO

Unicode script "Nko". 

Character.UnicodeScript  OGHAM

Unicode script "Ogham". 

Character.UnicodeScript  OLD_ITALIC

Unicode script "Old_Italic". 

Character.UnicodeScript  OLD_PERSIAN

Unicode script "Old_Persian". 

Character.UnicodeScript  OLD_SOUTH_ARABIAN

Unicode script "Old_South_Arabian". 

Character.UnicodeScript  OLD_TURKIC

Unicode script "Old_Turkic". 

Character.UnicodeScript  OL_CHIKI

Unicode script "Ol_Chiki". 

Character.UnicodeScript  ORIYA

Unicode script "Oriya". 

Character.UnicodeScript  OSMANYA

Unicode script "Osmanya". 

Character.UnicodeScript  PHAGS_PA

Unicode script "Phags_Pa". 

Character.UnicodeScript  PHOENICIAN

Unicode script "Phoenician". 

Character.UnicodeScript  REJANG

Unicode script "Rejang". 

Character.UnicodeScript  RUNIC

Unicode script "Runic". 

Character.UnicodeScript  SAMARITAN

Unicode script "Samaritan". 

Character.UnicodeScript  SAURASHTRA

Unicode script "Saurashtra". 

Character.UnicodeScript  SHARADA

Unicode script "Sharada". 

Character.UnicodeScript  SHAVIAN

Unicode script "Shavian". 

Character.UnicodeScript  SINHALA

Unicode script "Sinhala". 

Character.UnicodeScript  SORA_SOMPENG

Unicode script "Sora Sompeng". 

Character.UnicodeScript  SUNDANESE

Unicode script "Sundanese". 

Character.UnicodeScript  SYLOTI_NAGRI

Unicode script "Syloti_Nagri". 

Character.UnicodeScript  SYRIAC

Unicode script "Syriac". 

Character.UnicodeScript  TAGALOG

Unicode script "Tagalog". 

Character.UnicodeScript  TAGBANWA

Unicode script "Tagbanwa". 

Character.UnicodeScript  TAI_LE

Unicode script "Tai_Le". 

Character.UnicodeScript  TAI_THAM

Unicode script "Tai_Tham". 

Character.UnicodeScript  TAI_VIET

Unicode script "Tai_Viet". 

Character.UnicodeScript  TAKRI

Unicode script "Takri". 

Character.UnicodeScript  TAMIL

Unicode script "Tamil". 

Character.UnicodeScript  TELUGU

Unicode script "Telugu". 

Character.UnicodeScript  THAANA

Unicode script "Thaana". 

Character.UnicodeScript  THAI

Unicode script "Thai". 

Character.UnicodeScript  TIBETAN

Unicode script "Tibetan". 

Character.UnicodeScript  TIFINAGH

Unicode script "Tifinagh". 

Character.UnicodeScript  UGARITIC

Unicode script "Ugaritic". 

Character.UnicodeScript  UNKNOWN

Unicode script "Unknown". 

Character.UnicodeScript  VAI

Unicode script "Vai". 

Character.UnicodeScript  YI

Unicode script "Yi". 

Public methods

static final 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)
static final UnicodeScript[] values()

Inherited methods

From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum values

ARABIC

added in API level 24
Character.UnicodeScript ARABIC

Unicode script "Arabic".

ARMENIAN

added in API level 24
Character.UnicodeScript ARMENIAN

Unicode script "Armenian".

AVESTAN

added in API level 24
Character.UnicodeScript AVESTAN

Unicode script "Avestan".

BALINESE

added in API level 24
Character.UnicodeScript BALINESE

Unicode script "Balinese".

BAMUM

added in API level 24
Character.UnicodeScript BAMUM

Unicode script "Bamum".

BATAK

added in API level 24
Character.UnicodeScript BATAK

Unicode script "Batak".

BENGALI

added in API level 24
Character.UnicodeScript BENGALI

Unicode script "Bengali".

BOPOMOFO

added in API level 24
Character.UnicodeScript BOPOMOFO

Unicode script "Bopomofo".

BRAHMI

added in API level 24
Character.UnicodeScript BRAHMI

Unicode script "Brahmi".

BRAILLE

added in API level 24
Character.UnicodeScript BRAILLE

Unicode script "Braille".

BUGINESE

added in API level 24
Character.UnicodeScript BUGINESE

Unicode script "Buginese".

BUHID

added in API level 24
Character.UnicodeScript BUHID

Unicode script "Buhid".

CANADIAN_ABORIGINAL

added in API level 24
Character.UnicodeScript CANADIAN_ABORIGINAL

Unicode script "Canadian_Aboriginal".

CARIAN

added in API level 24
Character.UnicodeScript CARIAN

Unicode script "Carian".

CHAKMA

added in API level 26
Character.UnicodeScript CHAKMA

Unicode script "Chakma".

CHAM

added in API level 24
Character.UnicodeScript CHAM

Unicode script "Cham".

CHEROKEE

added in API level 24
Character.UnicodeScript CHEROKEE

Unicode script "Cherokee".

COMMON

added in API level 24
Character.UnicodeScript COMMON

Unicode script "Common".

COPTIC

added in API level 24
Character.UnicodeScript COPTIC

Unicode script "Coptic".

CUNEIFORM

added in API level 24
Character.UnicodeScript CUNEIFORM

Unicode script "Cuneiform".

CYPRIOT

added in API level 24
Character.UnicodeScript CYPRIOT

Unicode script "Cypriot".

CYRILLIC

added in API level 24
Character.UnicodeScript CYRILLIC

Unicode script "Cyrillic".

DESERET

added in API level 24
Character.UnicodeScript DESERET

Unicode script "Deseret".

DEVANAGARI

added in API level 24
Character.UnicodeScript DEVANAGARI

Unicode script "Devanagari".

EGYPTIAN_HIEROGLYPHS

added in API level 24
Character.UnicodeScript EGYPTIAN_HIEROGLYPHS

Unicode script "Egyptian_Hieroglyphs".

ETHIOPIC

added in API level 24
Character.UnicodeScript ETHIOPIC

Unicode script "Ethiopic".

GEORGIAN

added in API level 24
Character.UnicodeScript GEORGIAN

Unicode script "Georgian".

GLAGOLITIC

added in API level 24
Character.UnicodeScript GLAGOLITIC

Unicode script "Glagolitic".

GOTHIC

added in API level 24
Character.UnicodeScript GOTHIC

Unicode script "Gothic".

GREEK

added in API level 24
Character.UnicodeScript GREEK

Unicode script "Greek".

GUJARATI

added in API level 24
Character.UnicodeScript GUJARATI

Unicode script "Gujarati".

GURMUKHI

added in API level 24
Character.UnicodeScript GURMUKHI

Unicode script "Gurmukhi".

HAN

added in API level 24
Character.UnicodeScript HAN

Unicode script "Han".

HANGUL

added in API level 24
Character.UnicodeScript HANGUL

Unicode script "Hangul".

HANUNOO

added in API level 24
Character.UnicodeScript HANUNOO

Unicode script "Hanunoo".

HEBREW

added in API level 24
Character.UnicodeScript HEBREW

Unicode script "Hebrew".

HIRAGANA

added in API level 24
Character.UnicodeScript HIRAGANA

Unicode script "Hiragana".

IMPERIAL_ARAMAIC

added in API level 24
Character.UnicodeScript IMPERIAL_ARAMAIC

Unicode script "Imperial_Aramaic".

INHERITED

added in API level 24
Character.UnicodeScript INHERITED

Unicode script "Inherited".

INSCRIPTIONAL_PAHLAVI

added in API level 24
Character.UnicodeScript INSCRIPTIONAL_PAHLAVI

Unicode script "Inscriptional_Pahlavi".

INSCRIPTIONAL_PARTHIAN

added in API level 24
Character.UnicodeScript INSCRIPTIONAL_PARTHIAN

Unicode script "Inscriptional_Parthian".

JAVANESE

added in API level 24
Character.UnicodeScript JAVANESE

Unicode script "Javanese".

KAITHI

added in API level 24
Character.UnicodeScript KAITHI

Unicode script "Kaithi".

KANNADA

added in API level 24
Character.UnicodeScript KANNADA

Unicode script "Kannada".

KATAKANA

added in API level 24
Character.UnicodeScript KATAKANA

Unicode script "Katakana".

KAYAH_LI

added in API level 24
Character.UnicodeScript KAYAH_LI

Unicode script "Kayah_Li".

KHAROSHTHI

added in API level 24
Character.UnicodeScript KHAROSHTHI

Unicode script "Kharoshthi".

KHMER

added in API level 24
Character.UnicodeScript KHMER

Unicode script "Khmer".

LAO

added in API level 24
Character.UnicodeScript LAO

Unicode script "Lao".

LATIN

added in API level 24
Character.UnicodeScript LATIN

Unicode script "Latin".

LEPCHA

added in API level 24
Character.UnicodeScript LEPCHA

Unicode script "Lepcha".

LIMBU

added in API level 24
Character.UnicodeScript LIMBU

Unicode script "Limbu".

LINEAR_B

added in API level 24
Character.UnicodeScript LINEAR_B

Unicode script "Linear_B".

LISU

added in API level 24
Character.UnicodeScript LISU

Unicode script "Lisu".

LYCIAN

added in API level 24
Character.UnicodeScript LYCIAN

Unicode script "Lycian".

LYDIAN

added in API level 24
Character.UnicodeScript LYDIAN

Unicode script "Lydian".

MALAYALAM

added in API level 24
Character.UnicodeScript MALAYALAM

Unicode script "Malayalam".

MANDAIC

added in API level 24
Character.UnicodeScript MANDAIC

Unicode script "Mandaic".

MEETEI_MAYEK

added in API level 24
Character.UnicodeScript MEETEI_MAYEK

Unicode script "Meetei_Mayek".

MEROITIC_CURSIVE

added in API level 26
Character.UnicodeScript MEROITIC_CURSIVE

Unicode script "Meroitic Cursive".

MEROITIC_HIEROGLYPHS

added in API level 26
Character.UnicodeScript MEROITIC_HIEROGLYPHS

Unicode script "Meroitic Hieroglyphs".

MIAO

added in API level 26
Character.UnicodeScript MIAO

Unicode script "Miao".

MONGOLIAN

added in API level 24
Character.UnicodeScript MONGOLIAN

Unicode script "Mongolian".

MYANMAR

added in API level 24
Character.UnicodeScript MYANMAR

Unicode script "Myanmar".

NEW_TAI_LUE

added in API level 24
Character.UnicodeScript NEW_TAI_LUE

Unicode script "New_Tai_Lue".

NKO

added in API level 24
Character.UnicodeScript NKO

Unicode script "Nko".

OGHAM

added in API level 24
Character.UnicodeScript OGHAM

Unicode script "Ogham".

OLD_ITALIC

added in API level 24
Character.UnicodeScript OLD_ITALIC

Unicode script "Old_Italic".

OLD_PERSIAN

added in API level 24
Character.UnicodeScript OLD_PERSIAN

Unicode script "Old_Persian".

OLD_SOUTH_ARABIAN

added in API level 24
Character.UnicodeScript OLD_SOUTH_ARABIAN

Unicode script "Old_South_Arabian".

OLD_TURKIC

added in API level 24
Character.UnicodeScript OLD_TURKIC

Unicode script "Old_Turkic".

OL_CHIKI

added in API level 24
Character.UnicodeScript OL_CHIKI

Unicode script "Ol_Chiki".

ORIYA

added in API level 24
Character.UnicodeScript ORIYA

Unicode script "Oriya".

OSMANYA

added in API level 24
Character.UnicodeScript OSMANYA

Unicode script "Osmanya".

PHAGS_PA

added in API level 24
Character.UnicodeScript PHAGS_PA

Unicode script "Phags_Pa".

PHOENICIAN

added in API level 24
Character.UnicodeScript PHOENICIAN

Unicode script "Phoenician".

REJANG

added in API level 24
Character.UnicodeScript REJANG

Unicode script "Rejang".

RUNIC

added in API level 24
Character.UnicodeScript RUNIC

Unicode script "Runic".

SAMARITAN

added in API level 24
Character.UnicodeScript SAMARITAN

Unicode script "Samaritan".

SAURASHTRA

added in API level 24
Character.UnicodeScript SAURASHTRA

Unicode script "Saurashtra".

SHARADA

added in API level 26
Character.UnicodeScript SHARADA

Unicode script "Sharada".

SHAVIAN

added in API level 24
Character.UnicodeScript SHAVIAN

Unicode script "Shavian".

SINHALA

added in API level 24
Character.UnicodeScript SINHALA

Unicode script "Sinhala".

SORA_SOMPENG

added in API level 26
Character.UnicodeScript SORA_SOMPENG

Unicode script "Sora Sompeng".

SUNDANESE

added in API level 24
Character.UnicodeScript SUNDANESE

Unicode script "Sundanese".

SYLOTI_NAGRI

added in API level 24
Character.UnicodeScript SYLOTI_NAGRI

Unicode script "Syloti_Nagri".

SYRIAC

added in API level 24
Character.UnicodeScript SYRIAC

Unicode script "Syriac".

TAGALOG

added in API level 24
Character.UnicodeScript TAGALOG

Unicode script "Tagalog".

TAGBANWA

added in API level 24
Character.UnicodeScript TAGBANWA

Unicode script "Tagbanwa".

TAI_LE

added in API level 24
Character.UnicodeScript TAI_LE

Unicode script "Tai_Le".

TAI_THAM

added in API level 24
Character.UnicodeScript TAI_THAM

Unicode script "Tai_Tham".

TAI_VIET

added in API level 24
Character.UnicodeScript TAI_VIET

Unicode script "Tai_Viet".

TAKRI

added in API level 26
Character.UnicodeScript TAKRI

Unicode script "Takri".

TAMIL

added in API level 24
Character.UnicodeScript TAMIL

Unicode script "Tamil".

TELUGU

added in API level 24
Character.UnicodeScript TELUGU

Unicode script "Telugu".

THAANA

added in API level 24
Character.UnicodeScript THAANA

Unicode script "Thaana".

THAI

added in API level 24
Character.UnicodeScript THAI

Unicode script "Thai".

TIBETAN

added in API level 24
Character.UnicodeScript TIBETAN

Unicode script "Tibetan".

TIFINAGH

added in API level 24
Character.UnicodeScript TIFINAGH

Unicode script "Tifinagh".

UGARITIC

added in API level 24
Character.UnicodeScript UGARITIC

Unicode script "Ugaritic".

UNKNOWN

added in API level 24
Character.UnicodeScript UNKNOWN

Unicode script "Unknown".

VAI

added in API level 24
Character.UnicodeScript VAI

Unicode script "Vai".

YI

added in API level 24
Character.UnicodeScript YI

Unicode script "Yi".

Public methods

forName

added in API level 24
Character.UnicodeScript forName (String scriptName)

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<version>.txt and PropertyValueAliases<version>.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.

Returns
Character.UnicodeScript The UnicodeScript constant identified by scriptName

Throws
IllegalArgumentException if scriptName is an invalid name
NullPointerException if scriptName is null

of

added in API level 24
Character.UnicodeScript of (int codePoint)

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.

Returns
Character.UnicodeScript The UnicodeScript constant representing the Unicode script of which this character is assigned to.

Throws
IllegalArgumentException if the specified codePoint is an invalid Unicode code point.

See also:

valueOf

added in API level 24
Character.UnicodeScript valueOf (String name)

Parameters
name String

Returns
Character.UnicodeScript

values

added in API level 24
UnicodeScript[] values ()

Returns
UnicodeScript[]

This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields

Hooray!

Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience.
(Sep 2017 survey)