鴻蒙OS Character.UnicodeScript

2022-05-31 15:21 更新

Character.UnicodeScript

java.lang.Object

|---java.lang.Enum<Character.UnicodeScript&

|---|---java.lang.Character.UnicodeScript

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

表示 Unicode 標(biāo)準(zhǔn)附件 #24:腳本名稱中定義的字符腳本的字符子集系列。 每個(gè) Unicode 字符都分配給單個(gè) Unicode 腳本,可以是特定腳本,例如 Character.UnicodeScript#LATIN,也可以是以下三個(gè)特殊值之一:Character.UnicodeScript#INHERITED、Character.UnicodeScript#COMMON 或 Character.UnicodeScript#UNKNOWN .

枚舉常量摘要

枚舉常量 描述
ARABIC Unicode 腳本“Arabic”。
ARMENIAN Unicode 腳本“Armenian”。
AVESTAN Unicode 腳本"Avestan".
BALINESE Unicode 腳本"Balinese".
BAMUM Unicode 腳本"Bamum".
BATAK Unicode 腳本"Batak".
BENGALI Unicode 腳本"Bengali".
BOPOMOFO Unicode 腳本"Bopomofo".
BRAHMI Unicode 腳本"Brahmi".
BRAILLE Unicode 腳本 "Braille".
BUGINESE Unicode 腳本 "Buginese".
BUHID Unicode 腳本 "Buhid".
CANADIAN_ABORIGINAL Unicode 腳本 "Canadian_Aboriginal".
CARIAN Unicode 腳本 "Carian".
CHAKMA Unicode 腳本 "Chakma".
CHAM Unicode 腳本 "Cham".
CHEROKEE Unicode 腳本 "Cherokee".
COMMON Unicode 腳本 "Common".
COPTIC Unicode 腳本 "Coptic".
CUNEIFORM Unicode 腳本 "Cuneiform".
CYPRIOT Unicode 腳本 "Cypriot".
CYRILLIC Unicode 腳本 "Cyrillic".
DESERET Unicode 腳本 "Deseret".
DEVANAGARI Unicode 腳本 "Devanagari".
EGYPTIAN_HIEROGLYPHS Unicode 腳本 "Egyptian_Hieroglyphs".
ETHIOPIC Unicode 腳本 "Ethiopic".
GEORGIAN Unicode 腳本 "Georgian".
GLAGOLITIC Unicode 腳本 "Glagolitic".
GOTHIC Unicode 腳本 "Gothic".
GREEK Unicode 腳本 "Greek".
GUJARATI Unicode 腳本 "Gujarati".
GURMUKHI Unicode 腳本 "Gurmukhi".
HAN Unicode 腳本 "Han".
HANGUL Unicode 腳本 "Hangul".
HANUNOO Unicode 腳本 "Hanunoo".
HEBREW Unicode 腳本 "Hebrew".
HIRAGANA Unicode 腳本 "Hiragana".
IMPERIAL_ARAMAIC Unicode 腳本 "Imperial_Aramaic".
INHERITED Unicode 腳本 "Inherited".
INSCRIPTIONAL_PAHLAVI Unicode 腳本 "Inscriptional_Pahlavi".
INSCRIPTIONAL_PARTHIAN Unicode 腳本 "Inscriptional_Parthian".
JAVANESE Unicode 腳本 "Javanese".
KAITHI Unicode 腳本 "Kaithi".
KANNADA Unicode 腳本 "Kannada".
KATAKANA Unicode 腳本 "Katakana".
KAYAH_LI Unicode 腳本 "Kayah_Li".
KHAROSHTHI Unicode 腳本 "Kharoshthi".
KHMER Unicode 腳本 "Khmer".
LAO Unicode 腳本 "Lao".
LATIN Unicode 腳本 "Latin".
LEPCHA Unicode 腳本 "Lepcha".
LIMBU Unicode 腳本 "Limbu".
LINEAR_B Unicode 腳本 "Linear_B".
LISU Unicode 腳本 "Lisu".
LYCIAN Unicode 腳本 "Lycian".
LYDIAN Unicode 腳本 "Lydian".
MALAYALAM Unicode 腳本 "Malayalam".
MANDAIC Unicode 腳本 "Mandaic".
MEETEI_MAYEK Unicode 腳本 "Meetei_Mayek".
MEROITIC_CURSIVE Unicode 腳本 "Meroitic Cursive".
MEROITIC_HIEROGLYPHS Unicode 腳本 "Meroitic Hieroglyphs".
MIAO Unicode 腳本 "Miao".
MONGOLIAN Unicode 腳本 "Mongolian".
MYANMAR Unicode 腳本 "Myanmar".
NEW_TAI_LUE Unicode 腳本 "New_Tai_Lue".
NKO Unicode 腳本 "Nko".
OGHAM Unicode 腳本 "Ogham".
OL_CHIKI Unicode 腳本 "Ol_Chiki".
OLD_ITALIC Unicode 腳本 "Old_Italic".
OLD_PERSIAN Unicode 腳本 "Old_Persian".
OLD_SOUTH_ARABIAN Unicode 腳本 "Old_South_Arabian".
OLD_TURKIC Unicode 腳本 "Old_Turkic".
ORIYA Unicode 腳本 "Oriya".
OSMANYA Unicode 腳本 "Osmanya".
PHAGS_PA Unicode 腳本 "Phags_Pa".
PHOENICIAN Unicode 腳本 "Phoenician".
REJANG Unicode 腳本 "Rejang".
RUNIC Unicode 腳本 "Runic".
SAMARITAN Unicode 腳本 "Samaritan".
SAURASHTRA Unicode 腳本 "Saurashtra".
SHARADA Unicode 腳本 "Sharada".
SHAVIAN Unicode 腳本 "Shavian".
SINHALA Unicode 腳本 "Sinhala".
SORA_SOMPENG Unicode 腳本 "Sora Sompeng".
SUNDANESE Unicode 腳本 "Sundanese".
SYLOTI_NAGRI Unicode 腳本 "Syloti_Nagri".
SYRIAC Unicode 腳本 "Syriac".
TAGALOG Unicode 腳本 "Tagalog".
TAGBANWA Unicode 腳本 "Tagbanwa".
TAI_LE Unicode 腳本 "Tai_Le".
TAI_THAM Unicode 腳本 "Tai_Tham".
TAI_VIET Unicode 腳本 "Tai_Viet".
TAKRI Unicode 腳本 "Takri".
TAMIL Unicode 腳本 "Tamil".
TELUGU Unicode 腳本 "Telugu".
THAANA Unicode 腳本 "Thaana".
THAI Unicode 腳本 "Thai".
TIBETAN Unicode 腳本 "Tibetan".
TIFINAGH Unicode 腳本 "Tifinagh".
UGARITIC Unicode 腳本 "Ugaritic".
UNKNOWN Unicode 腳本 "Unknown".
VAI Unicode 腳本 "Vai".
YI Unicode 腳本 "Yi".

方法總結(jié)

修飾符和類型 方法 描述
static Character.UnicodeScript forName(String scriptName) 返回具有給定 Unicode 腳本名稱或腳本名稱別名的 UnicodeScript 常量。
static Character.UnicodeScript of(int codePoint) 返回表示分配給定字符(Unicode 代碼點(diǎn))的 Unicode 腳本的枚舉常量。
static Character.UnicodeScript valueOf(String name) 返回具有指定名稱的此類型的枚舉常量。
static Character.UnicodeScript[] values() 按照聲明的順序返回包含此枚舉類型常量的數(shù)組。
從類 java.lang.Enum 繼承的方法
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
從類 java.lang.Object 繼承的方法
getClass, notify, notifyAll, wait, wait, wait

枚舉常量詳細(xì)信息

COMMON

public static final Character.UnicodeScript COMMON

Unicode 腳本"Common".

LATIN

public static final Character.UnicodeScript LATIN

Unicode 腳本 "Latin".

GREEK

public static final Character.UnicodeScript GREEK

Unicode 腳本 "Greek".

CYRILLIC

public static final Character.UnicodeScript CYRILLIC

Unicode 腳本 "Cyrillic".

ARMENIAN

public static final Character.UnicodeScript ARMENIAN

Unicode 腳本 "Armenian".

HEBREW

public static final Character.UnicodeScript HEBREW

Unicode 腳本 "Hebrew".

ARABIC

public static final Character.UnicodeScript ARABIC

Unicode 腳本 "Arabic".

SYRIAC

public static final Character.UnicodeScript SYRIAC

Unicode 腳本 "Syriac".

THAANA

public static final Character.UnicodeScript THAANA

Unicode 腳本 "Thaana".

DEVANAGARI

public static final Character.UnicodeScript DEVANAGARI

Unicode 腳本 "Devanagari".

BENGALI

public static final Character.UnicodeScript BENGALI

Unicode 腳本 "Bengali".

GURMUKHI

public static final Character.UnicodeScript GURMUKHI

Unicode 腳本 "Gurmukhi".

GUJARATI

public static final Character.UnicodeScript GUJARATI

Unicode 腳本 "Gujarati".

ORIYA

public static final Character.UnicodeScript ORIYA

Unicode 腳本 "Oriya".

TAMIL

public static final Character.UnicodeScript TAMIL

Unicode 腳本 "Tamil".

TELUGU

public static final Character.UnicodeScript TELUGU

Unicode 腳本 "Telugu".

KANNADA

public static final Character.UnicodeScript KANNADA

Unicode 腳本 "Kannada".

MALAYALAM

public static final Character.UnicodeScript MALAYALAM

Unicode 腳本 "Malayalam".

SINHALA

public static final Character.UnicodeScript SINHALA

Unicode 腳本 "Sinhala".

THAI

public static final Character.UnicodeScript THAI

Unicode 腳本 "Thai".

LAO

public static final Character.UnicodeScript LAO

Unicode 腳本 "Lao".

TIBETAN

public static final Character.UnicodeScript TIBETAN

Unicode 腳本 "Tibetan".

MYANMAR

public static final Character.UnicodeScript MYANMAR

Unicode 腳本 "Myanmar".

GEORGIAN

public static final Character.UnicodeScript GEORGIAN

Unicode 腳本 "Georgian".

HANGUL

public static final Character.UnicodeScript HANGUL

Unicode 腳本 "Hangul".

ETHIOPIC

public static final Character.UnicodeScript ETHIOPIC

Unicode 腳本 "Ethiopic".

CHEROKEE

public static final Character.UnicodeScript CHEROKEE

Unicode 腳本 "Cherokee".

CANADIAN_ABORIGINAL

public static final Character.UnicodeScript CANADIAN_ABORIGINAL

Unicode 腳本 "Canadian_Aboriginal".

OGHAM

public static final Character.UnicodeScript OGHAM

Unicode 腳本 "Ogham".

RUNIC

public static final Character.UnicodeScript RUNIC

Unicode 腳本 "Runic".

KHMER

public static final Character.UnicodeScript KHMER

Unicode 腳本 "Khmer".

MONGOLIAN

public static final Character.UnicodeScript MONGOLIAN

Unicode 腳本 "Mongolian".

HIRAGANA

public static final Character.UnicodeScript HIRAGANA

Unicode 腳本 "Hiragana".

KATAKANA

public static final Character.UnicodeScript KATAKANA

Unicode 腳本 "Katakana".

BOPOMOFO

public static final Character.UnicodeScript BOPOMOFO

Unicode 腳本 "Bopomofo".

HAN

public static final Character.UnicodeScript HAN

Unicode 腳本 "Han".

YI

public static final Character.UnicodeScript YI

Unicode 腳本 "Yi".

OLD_ITALIC

public static final Character.UnicodeScript OLD_ITALIC

Unicode 腳本 "Old_Italic".

GOTHIC

public static final Character.UnicodeScript GOTHIC

Unicode 腳本 "Gothic".

DESERET

public static final Character.UnicodeScript DESERET

Unicode 腳本 "Deseret".

INHERITED

public static final Character.UnicodeScript INHERITED

Unicode 腳本 "Inherited".

TAGALOG

public static final Character.UnicodeScript TAGALOG

Unicode 腳本 "Tagalog".

HANUNOO

public static final Character.UnicodeScript HANUNOO

Unicode 腳本 "Hanunoo".

BUHID

public static final Character.UnicodeScript BUHID

Unicode 腳本 "Buhid".

TAGBANWA

public static final Character.UnicodeScript TAGBANWA

Unicode 腳本 "Tagbanwa".

LIMBU

public static final Character.UnicodeScript LIMBU

Unicode 腳本 "Limbu".

TAI_LE

public static final Character.UnicodeScript TAI_LE

Unicode 腳本 "Tai_Le".

LINEAR_B

public static final Character.UnicodeScript LINEAR_B

Unicode 腳本 "Linear_B".

UGARITIC

public static final Character.UnicodeScript UGARITIC

Unicode 腳本 "Ugaritic".

SHAVIAN

public static final Character.UnicodeScript SHAVIAN

Unicode 腳本 "Shavian".

OSMANYA

public static final Character.UnicodeScript OSMANYA

Unicode 腳本 "Osmanya".

CYPRIOT

public static final Character.UnicodeScript CYPRIOT

Unicode 腳本 "Cypriot".

BRAILLE

public static final Character.UnicodeScript BRAILLE

Unicode 腳本 "Braille".

BUGINESE

public static final Character.UnicodeScript BUGINESE

Unicode 腳本 "Buginese".

COPTIC

public static final Character.UnicodeScript COPTIC

Unicode 腳本 "Coptic".

NEW_TAI_LUE

public static final Character.UnicodeScript NEW_TAI_LUE

Unicode 腳本 "New_Tai_Lue".

GLAGOLITIC

public static final Character.UnicodeScript GLAGOLITIC

Unicode 腳本 "Glagolitic".

TIFINAGH

public static final Character.UnicodeScript TIFINAGH

Unicode 腳本 "Tifinagh".

SYLOTI_NAGRI

public static final Character.UnicodeScript SYLOTI_NAGRI

Unicode 腳本 "Syloti_Nagri".

OLD_PERSIAN

public static final Character.UnicodeScript OLD_PERSIAN

Unicode 腳本 "Old_Persian".

KHAROSHTHI

public static final Character.UnicodeScript KHAROSHTHI

Unicode 腳本 "Kharoshthi".

BALINESE

public static final Character.UnicodeScript BALINESE

Unicode 腳本 "Balinese".

CUNEIFORM

public static final Character.UnicodeScript CUNEIFORM

Unicode 腳本 "Cuneiform".

PHOENICIAN

public static final Character.UnicodeScript PHOENICIAN

Unicode 腳本 "Phoenician".

PHAGS_PA

public static final Character.UnicodeScript PHAGS_PA

Unicode 腳本 "Phags_Pa".

NKO

public static final Character.UnicodeScript NKO

Unicode 腳本 "Nko".

SUNDANESE

public static final Character.UnicodeScript SUNDANESE

Unicode 腳本 "Sundanese".

BATAK

public static final Character.UnicodeScript BATAK

Unicode 腳本 "Batak".

LEPCHA

public static final Character.UnicodeScript LEPCHA

Unicode 腳本 "Lepcha".

OL_CHIKI

public static final Character.UnicodeScript OL_CHIKI

Unicode 腳本 "Ol_Chiki".

VAI

public static final Character.UnicodeScript VAI

Unicode 腳本 "Vai".

SAURASHTRA

public static final Character.UnicodeScript SAURASHTRA

Unicode 腳本 "Saurashtra".

KAYAH_LI

public static final Character.UnicodeScript KAYAH_LI

Unicode 腳本 "Kayah_Li".

REJANG

public static final Character.UnicodeScript REJANG

Unicode 腳本 "Rejang".

LYCIAN

public static final Character.UnicodeScript LYCIAN

Unicode 腳本 "Lycian".

CARIAN

public static final Character.UnicodeScript CARIAN

Unicode 腳本 "Carian".

LYDIAN

public static final Character.UnicodeScript LYDIAN

Unicode 腳本 "Lydian".

CHAM

public static final Character.UnicodeScript CHAM

Unicode 腳本 "Cham".

TAI_THAM

public static final Character.UnicodeScript TAI_THAM

Unicode 腳本 "Tai_Tham".

TAI_VIET

public static final Character.UnicodeScript TAI_VIET

Unicode 腳本 "Tai_Viet".

AVESTAN

public static final Character.UnicodeScript AVESTAN

Unicode 腳本 "Avestan".

EGYPTIAN_HIEROGLYPHS

public static final Character.UnicodeScript EGYPTIAN_HIEROGLYPHS

Unicode 腳本 "Egyptian_Hieroglyphs".

SAMARITAN

public static final Character.UnicodeScript SAMARITAN

Unicode 腳本 "Samaritan".

MANDAIC

public static final Character.UnicodeScript MANDAIC

Unicode 腳本 "Mandaic".

LISU

public static final Character.UnicodeScript LISU

Unicode 腳本 "Lisu".

BAMUM

public static final Character.UnicodeScript BAMUM

Unicode 腳本 "Bamum".

JAVANESE

public static final Character.UnicodeScript JAVANESE

Unicode 腳本 "Javanese".

MEETEI_MAYEK

public static final Character.UnicodeScript MEETEI_MAYEK

Unicode 腳本 "Meetei_Mayek".

IMPERIAL_ARAMAIC

public static final Character.UnicodeScript IMPERIAL_ARAMAIC

Unicode 腳本 "Imperial_Aramaic".

OLD_SOUTH_ARABIAN

public static final Character.UnicodeScript OLD_SOUTH_ARABIAN

Unicode 腳本 "Old_South_Arabian".

INSCRIPTIONAL_PARTHIAN

public static final Character.UnicodeScript INSCRIPTIONAL_PARTHIAN

Unicode 腳本 "Inscriptional_Parthian".

INSCRIPTIONAL_PAHLAVI

public static final Character.UnicodeScript INSCRIPTIONAL_PAHLAVI

Unicode 腳本 "Inscriptional_Pahlavi".

OLD_TURKIC

public static final Character.UnicodeScript OLD_TURKIC

Unicode 腳本 "Old_Turkic".

BRAHMI

public static final Character.UnicodeScript BRAHMI

Unicode 腳本 "Brahmi".

KAITHI

public static final Character.UnicodeScript KAITHI

Unicode 腳本 "Kaithi".

MEROITIC_HIEROGLYPHS

public static final Character.UnicodeScript MEROITIC_HIEROGLYPHS

Unicode 腳本 "Meroitic Hieroglyphs".

MEROITIC_CURSIVE

public static final Character.UnicodeScript MEROITIC_CURSIVE

Unicode 腳本 "Meroitic Cursive".

SORA_SOMPENG

public static final Character.UnicodeScript SORA_SOMPENG

Unicode 腳本 "Sora Sompeng".

CHAKMA

public static final Character.UnicodeScript CHAKMA

Unicode 腳本 "Chakma".

SHARADA

public static final Character.UnicodeScript SHARADA

Unicode 腳本 "Sharada".

TAKRI

public static final Character.UnicodeScript TAKRI

Unicode 腳本 "Takri".

MIAO

public static final Character.UnicodeScript MIAO

Unicode 腳本 "Miao".

UNKNOWN

public static final Character.UnicodeScript UNKNOWN

Unicode script "Unknown".

方法詳情

values

public static Character.UnicodeScript[] values()

按照聲明的順序返回包含此枚舉類型常量的數(shù)組。 此方法可用于迭代常量,如下所示:

for (Character.UnicodeScript c : Character.UnicodeScript.values())
    System.out.println(c);

返回:

包含此枚舉類型的常量的數(shù)組,按聲明的順序排列

valueOf

public static Character.UnicodeScript valueOf(String name)

返回具有指定名稱的此類型的枚舉常量。 該字符串必須與用于在此類型中聲明枚舉常量的標(biāo)識符完全匹配。 (不允許使用無關(guān)的空白字符。)

參數(shù):

參數(shù)名稱 參數(shù)描述
name 要返回的枚舉常量的名稱。

返回:

具有指定名稱的枚舉常量

Throws:

Throw名稱 Throw描述
IllegalArgumentException 如果此枚舉類型沒有具有指定名稱的常量
NullPointerException 如果參數(shù)為null

of

public static Character.UnicodeScript of(int codePoint)

返回表示分配給定字符(Unicode 代碼點(diǎn))的 Unicode 腳本的枚舉常量。

參數(shù):

參數(shù)名稱 參數(shù)描述
codePoint 有問題的字符(Unicode 代碼點(diǎn))。

返回:

UnicodeScript 常量,表示分配此字符的 Unicode 腳本。

Throws:

Throw名稱 Throw描述
IllegalArgumentException 如果指定的 codePoint 是無效的 Unicode 代碼點(diǎn)。

forName

public static Character.UnicodeScript forName(String scriptName)

返回具有給定 Unicode 腳本名稱或腳本名稱別名的 UnicodeScript 常量。 腳本名稱及其別名由 Unicode 標(biāo)準(zhǔn)確定。 文件 Scripts<version>.txt 和 PropertyValueAliases<version>.txt 為特定版本的標(biāo)準(zhǔn)定義腳本名稱和腳本名稱別名。 Character 類指定它支持的標(biāo)準(zhǔn)版本。

對于所有有效的腳本名稱,字符大小寫都會被忽略。 en_US 語言環(huán)境的大小寫映射規(guī)則用于為腳本名稱驗(yàn)證提供不區(qū)分大小寫的字符串比較。

參數(shù):

參數(shù)名稱 參數(shù)描述
scriptName UnicodeScript 名稱。

返回:

由 scriptName 標(biāo)識的 UnicodeScript 常量

Throws:

Throw名稱 Throw描述
IllegalArgumentException 如果 scriptName 是無效名稱
NullPointerException 如果 scriptName 為null
以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號