Class UScript
- java.lang.Object
-
- com.ibm.icu.lang.UScript
-
public final class UScript extends Object
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 .
Starting with ICU 3.6, constants for most 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.
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUScript.ScriptUsageScript usage constants.
-
Field Summary
Fields Modifier and Type Field Description static intAFAKAISO 15924 script codestatic intAHOMISO 15924 script codestatic intANATOLIAN_HIEROGLYPHSISO 15924 script codestatic intARABICArabicstatic intARMENIANArmenianstatic intAVESTANISO 15924 script codestatic intBALINESEISO 15924 script codestatic intBAMUMISO 15924 script codestatic intBASSA_VAHISO 15924 script codestatic intBATAKISO 15924 script codestatic intBENGALIBengalistatic intBLISSYMBOLSISO 15924 script codestatic intBOOK_PAHLAVIISO 15924 script codestatic intBOPOMOFOBopomofostatic intBRAHMIISO 15924 script codestatic intBRAILLEBraille Script in Unicode 4static intBUGINESEScript in Unicode 4.1static intBUHIDBuhidstatic intCANADIAN_ABORIGINALUnified Canadian Aboriginal Symbolsstatic intCARIANISO 15924 script codestatic intCAUCASIAN_ALBANIANISO 15924 script codestatic intCHAKMAISO 15924 script codestatic intCHAMISO 15924 script codestatic intCHEROKEECherokeestatic intCIRTHISO 15924 script codestatic intCODE_LIMITOne higher than the last script code constant.static intCOMMONCommonstatic intCOPTICCopticstatic intCUNEIFORMISO 15924 script codestatic intCYPRIOTCypriot Script in Unicode 4static intCYRILLICCyrillicstatic intDEMOTIC_EGYPTIANISO 15924 script codestatic intDESERETDeseretstatic intDEVANAGARIDevanagaristatic intDUPLOYANISO 15924 script codestatic intDUPLOYAN_SHORTANDDeprecated.ICU 54static intEASTERN_SYRIACISO 15924 script codestatic intEGYPTIAN_HIEROGLYPHSISO 15924 script codestatic intELBASANISO 15924 script codestatic intESTRANGELO_SYRIACISO 15924 script codestatic intETHIOPICEthiopicstatic intGEORGIANGeorgianstatic intGLAGOLITICScript in Unicode 4.1static intGOTHICGothicstatic intGRANTHAISO 15924 script codestatic intGREEKGreekstatic intGUJARATIGujaratistatic intGURMUKHIGurmukhistatic intHANHanstatic intHANGULHangulstatic intHANUNOOHanunooostatic intHARAPPAN_INDUSISO 15924 script codestatic intHATRANISO 15924 script codestatic intHEBREWHebrewstatic intHIERATIC_EGYPTIANISO 15924 script codestatic intHIRAGANAHiraganastatic intIMPERIAL_ARAMAICISO 15924 script codestatic intINHERITEDInheritedstatic intINSCRIPTIONAL_PAHLAVIISO 15924 script codestatic intINSCRIPTIONAL_PARTHIANISO 15924 script codestatic intINVALID_CODEInvalid codestatic intJAPANESEISO 15924 script codestatic intJAVANESEISO 15924 script codestatic intJURCHENISO 15924 script codestatic intKAITHIISO 15924 script codestatic intKANNADAKannadastatic intKATAKANAKatakanastatic intKATAKANA_OR_HIRAGANAScript in Unicode 4.0.1static intKAYAH_LIISO 15924 script codestatic intKHAROSHTHIScript in Unicode 4.1static intKHMERKhmerstatic intKHOJKIISO 15924 script codestatic intKHUDAWADIISO 15924 script codestatic intKHUTSURIISO 15924 script codestatic intKOREANISO 15924 script codestatic intKPELLEISO 15924 script codestatic intLANNAISO 15924 script codestatic intLAOLaostatic intLATINLatinstatic intLATIN_FRAKTURISO 15924 script codestatic intLATIN_GAELICISO 15924 script codestatic intLEPCHAISO 15924 script codestatic intLIMBULimbu Script in Unicode 4static intLINEAR_AISO 15924 script codestatic intLINEAR_BLinear B Script in Unicode 4static intLISUISO 15924 script codestatic intLOMAISO 15924 script codestatic intLYCIANISO 15924 script codestatic intLYDIANISO 15924 script codestatic intMAHAJANIISO 15924 script codestatic intMALAYALAMMalayalamstatic intMANDAEANISO 15924 script codestatic intMANDAICISO 15924 script codestatic intMANICHAEANISO 15924 script codestatic intMATHEMATICAL_NOTATIONISO 15924 script codestatic intMAYAN_HIEROGLYPHSISO 15924 script codestatic intMEITEI_MAYEKISO 15924 script codestatic intMENDEMende Kikakui ISO 15924 script codestatic intMEROITICISO 15924 script codestatic intMEROITIC_CURSIVEISO 15924 script codestatic intMEROITIC_HIEROGLYPHSISO 15924 script codestatic intMIAOISO 15924 script codestatic intMODIISO 15924 script codestatic intMONGOLIANMangolianstatic intMOONISO 15924 script codestatic intMROISO 15924 script codestatic intMULTANIISO 15924 script codestatic intMYANMARMyammarstatic intNABATAEANISO 15924 script codestatic intNAKHI_GEBAISO 15924 script codestatic intNEW_TAI_LUEScript in Unicode 4.1static intNKOISO 15924 script codestatic intNUSHUISO 15924 script codestatic intOGHAMOghamstatic intOL_CHIKIISO 15924 script codestatic intOLD_CHURCH_SLAVONIC_CYRILLICISO 15924 script codestatic intOLD_HUNGARIANISO 15924 script codestatic intOLD_ITALICOld Itallicstatic intOLD_NORTH_ARABIANISO 15924 script codestatic intOLD_PERMICISO 15924 script codestatic intOLD_PERSIANScript in Unicode 4.1static intOLD_SOUTH_ARABIANISO 15924 script codestatic intORIYAOriyastatic intORKHONISO 15924 script codestatic intOSMANYAOsmanya Script in Unicode 4static intPAHAWH_HMONGISO 15924 script codestatic intPALMYRENEISO 15924 script codestatic intPAU_CIN_HAUISO 15924 script codestatic intPHAGS_PAISO 15924 script codestatic intPHOENICIANISO 15924 script codestatic intPHONETIC_POLLARDISO 15924 script codestatic intPSALTER_PAHLAVIISO 15924 script codestatic intREJANGISO 15924 script codestatic intRONGORONGOISO 15924 script codestatic intRUNICRunicstatic intSAMARITANISO 15924 script codestatic intSARATIISO 15924 script codestatic intSAURASHTRAISO 15924 script codestatic intSHARADAISO 15924 script codestatic intSHAVIANShavian Script in Unicode 4static intSIDDHAMISO 15924 script codestatic intSIGN_WRITINGISO 15924 script code for Sutton SignWritingstatic intSIMPLIFIED_HANISO 15924 script codestatic intSINDHIISO 15924 script codestatic intSINHALASinhalastatic intSORA_SOMPENGISO 15924 script codestatic intSUNDANESEISO 15924 script codestatic intSYLOTI_NAGRIScript in Unicode 4.1static intSYMBOLSISO 15924 script codestatic intSYRIACSyriacstatic intTAGALOGTagalogstatic intTAGBANWATagbanwastatic intTAI_LETai Le Script in Unicode 4static intTAI_VIETISO 15924 script codestatic intTAKRIISO 15924 script codestatic intTAMILTamilstatic intTANGUTISO 15924 script codestatic intTELUGUTelugustatic intTENGWARISO 15924 script codestatic intTHAANAThanastatic intTHAIThaistatic intTIBETANTibetanstatic intTIFINAGHScript in Unicode 4.1static intTIRHUTAISO 15924 script codestatic intTRADITIONAL_HANISO 15924 script codestatic intUCASUnified Canadian Aboriginal Symbols (alias)static intUGARITICUgaritic Script in Unicode 4static intUNKNOWNISO 15924 script codestatic intUNWRITTEN_LANGUAGESISO 15924 script codestatic intVAIISO 15924 script codestatic intVISIBLE_SPEECHISO 15924 script codestatic intWARANG_CITIISO 15924 script codestatic intWESTERN_SYRIACISO 15924 script codestatic intWOLEAIISO 15924 script codestatic intYIYi syllables
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanbreaksBetweenLetters(int script)Returns true if the script allows line breaks between letters (excluding hyphenation).static int[]getCode(ULocale locale)Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.static int[]getCode(String nameOrAbbrOrLocale)Gets the script codes associated with the given locale or ISO 15924 abbreviation or name.static int[]getCode(Locale locale)Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.static intgetCodeFromName(String nameOrAbbr)Returns the script code associated with the given Unicode script property alias (name or abbreviation).static StringgetName(int scriptCode)Returns the long Unicode script name, if there is one.static StringgetSampleString(int script)Returns the script sample character string.static intgetScript(int codepoint)Gets the script code associated with the given codepoint.static intgetScriptExtensions(int c, BitSet set)Sets code point c's Script_Extensions as script code integers into the output BitSet.static StringgetShortName(int scriptCode)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.ScriptUsagegetUsage(int script)Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.static booleanhasScript(int c, int sc)Do the Script_Extensions of code point c contain script sc?static booleanisCased(int script)Returns true if in modern (or most recent) usage of the script case distinctions are customary.static booleanisRightToLeft(int script)Returns true if the script is written right-to-left.
-
-
-
Field Detail
-
INVALID_CODE
public static final int INVALID_CODE
Invalid code- See Also:
- Constant Field Values
-
COMMON
public static final int COMMON
Common- See Also:
- Constant Field Values
-
INHERITED
public static final int INHERITED
Inherited- See Also:
- Constant Field Values
-
ARABIC
public static final int ARABIC
Arabic- See Also:
- Constant Field Values
-
ARMENIAN
public static final int ARMENIAN
Armenian- See Also:
- Constant Field Values
-
BENGALI
public static final int BENGALI
Bengali- See Also:
- Constant Field Values
-
BOPOMOFO
public static final int BOPOMOFO
Bopomofo- See Also:
- Constant Field Values
-
CHEROKEE
public static final int CHEROKEE
Cherokee- See Also:
- Constant Field Values
-
COPTIC
public static final int COPTIC
Coptic- See Also:
- Constant Field Values
-
CYRILLIC
public static final int CYRILLIC
Cyrillic- See Also:
- Constant Field Values
-
DESERET
public static final int DESERET
Deseret- See Also:
- Constant Field Values
-
DEVANAGARI
public static final int DEVANAGARI
Devanagari- See Also:
- Constant Field Values
-
ETHIOPIC
public static final int ETHIOPIC
Ethiopic- See Also:
- Constant Field Values
-
GEORGIAN
public static final int GEORGIAN
Georgian- See Also:
- Constant Field Values
-
GOTHIC
public static final int GOTHIC
Gothic- See Also:
- Constant Field Values
-
GREEK
public static final int GREEK
Greek- See Also:
- Constant Field Values
-
GUJARATI
public static final int GUJARATI
Gujarati- See Also:
- Constant Field Values
-
GURMUKHI
public static final int GURMUKHI
Gurmukhi- See Also:
- Constant Field Values
-
HAN
public static final int HAN
Han- See Also:
- Constant Field Values
-
HANGUL
public static final int HANGUL
Hangul- See Also:
- Constant Field Values
-
HEBREW
public static final int HEBREW
Hebrew- See Also:
- Constant Field Values
-
HIRAGANA
public static final int HIRAGANA
Hiragana- See Also:
- Constant Field Values
-
KANNADA
public static final int KANNADA
Kannada- See Also:
- Constant Field Values
-
KATAKANA
public static final int KATAKANA
Katakana- See Also:
- Constant Field Values
-
KHMER
public static final int KHMER
Khmer- See Also:
- Constant Field Values
-
LAO
public static final int LAO
Lao- See Also:
- Constant Field Values
-
LATIN
public static final int LATIN
Latin- See Also:
- Constant Field Values
-
MALAYALAM
public static final int MALAYALAM
Malayalam- See Also:
- Constant Field Values
-
MONGOLIAN
public static final int MONGOLIAN
Mangolian- See Also:
- Constant Field Values
-
MYANMAR
public static final int MYANMAR
Myammar- See Also:
- Constant Field Values
-
OGHAM
public static final int OGHAM
Ogham- See Also:
- Constant Field Values
-
OLD_ITALIC
public static final int OLD_ITALIC
Old Itallic- See Also:
- Constant Field Values
-
ORIYA
public static final int ORIYA
Oriya- See Also:
- Constant Field Values
-
RUNIC
public static final int RUNIC
Runic- See Also:
- Constant Field Values
-
SINHALA
public static final int SINHALA
Sinhala- See Also:
- Constant Field Values
-
SYRIAC
public static final int SYRIAC
Syriac- See Also:
- Constant Field Values
-
TAMIL
public static final int TAMIL
Tamil- See Also:
- Constant Field Values
-
TELUGU
public static final int TELUGU
Telugu- See Also:
- Constant Field Values
-
THAANA
public static final int THAANA
Thana- See Also:
- Constant Field Values
-
THAI
public static final int THAI
Thai- See Also:
- Constant Field Values
-
TIBETAN
public static final int TIBETAN
Tibetan- See Also:
- Constant Field Values
-
CANADIAN_ABORIGINAL
public static final int CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbols- See Also:
- Constant Field Values
-
UCAS
public static final int UCAS
Unified Canadian Aboriginal Symbols (alias)- See Also:
- Constant Field Values
-
YI
public static final int YI
Yi syllables- See Also:
- Constant Field Values
-
TAGALOG
public static final int TAGALOG
Tagalog- See Also:
- Constant Field Values
-
HANUNOO
public static final int HANUNOO
Hanunooo- See Also:
- Constant Field Values
-
BUHID
public static final int BUHID
Buhid- See Also:
- Constant Field Values
-
TAGBANWA
public static final int TAGBANWA
Tagbanwa- See Also:
- Constant Field Values
-
BRAILLE
public static final int BRAILLE
Braille Script in Unicode 4- See Also:
- Constant Field Values
-
CYPRIOT
public static final int CYPRIOT
Cypriot Script in Unicode 4- See Also:
- Constant Field Values
-
LIMBU
public static final int LIMBU
Limbu Script in Unicode 4- See Also:
- Constant Field Values
-
LINEAR_B
public static final int LINEAR_B
Linear B Script in Unicode 4- See Also:
- Constant Field Values
-
OSMANYA
public static final int OSMANYA
Osmanya Script in Unicode 4- See Also:
- Constant Field Values
-
SHAVIAN
public static final int SHAVIAN
Shavian Script in Unicode 4- See Also:
- Constant Field Values
-
TAI_LE
public static final int TAI_LE
Tai Le Script in Unicode 4- See Also:
- Constant Field Values
-
UGARITIC
public static final int UGARITIC
Ugaritic Script in Unicode 4- See Also:
- Constant Field Values
-
KATAKANA_OR_HIRAGANA
public static final int KATAKANA_OR_HIRAGANA
Script in Unicode 4.0.1- See Also:
- Constant Field Values
-
BUGINESE
public static final int BUGINESE
Script in Unicode 4.1- See Also:
- Constant Field Values
-
GLAGOLITIC
public static final int GLAGOLITIC
Script in Unicode 4.1- See Also:
- Constant Field Values
-
KHAROSHTHI
public static final int KHAROSHTHI
Script in Unicode 4.1- See Also:
- Constant Field Values
-
SYLOTI_NAGRI
public static final int SYLOTI_NAGRI
Script in Unicode 4.1- See Also:
- Constant Field Values
-
NEW_TAI_LUE
public static final int NEW_TAI_LUE
Script in Unicode 4.1- See Also:
- Constant Field Values
-
TIFINAGH
public static final int TIFINAGH
Script in Unicode 4.1- See Also:
- Constant Field Values
-
OLD_PERSIAN
public static final int OLD_PERSIAN
Script in Unicode 4.1- See Also:
- Constant Field Values
-
BALINESE
public static final int BALINESE
ISO 15924 script code- See Also:
- Constant Field Values
-
BATAK
public static final int BATAK
ISO 15924 script code- See Also:
- Constant Field Values
-
BLISSYMBOLS
public static final int BLISSYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
-
BRAHMI
public static final int BRAHMI
ISO 15924 script code- See Also:
- Constant Field Values
-
CHAM
public static final int CHAM
ISO 15924 script code- See Also:
- Constant Field Values
-
CIRTH
public static final int CIRTH
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_CHURCH_SLAVONIC_CYRILLIC
public static final int OLD_CHURCH_SLAVONIC_CYRILLIC
ISO 15924 script code- See Also:
- Constant Field Values
-
DEMOTIC_EGYPTIAN
public static final int DEMOTIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
HIERATIC_EGYPTIAN
public static final int HIERATIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
EGYPTIAN_HIEROGLYPHS
public static final int EGYPTIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
KHUTSURI
public static final int KHUTSURI
ISO 15924 script code- See Also:
- Constant Field Values
-
SIMPLIFIED_HAN
public static final int SIMPLIFIED_HAN
ISO 15924 script code- See Also:
- Constant Field Values
-
TRADITIONAL_HAN
public static final int TRADITIONAL_HAN
ISO 15924 script code- See Also:
- Constant Field Values
-
PAHAWH_HMONG
public static final int PAHAWH_HMONG
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_HUNGARIAN
public static final int OLD_HUNGARIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
HARAPPAN_INDUS
public static final int HARAPPAN_INDUS
ISO 15924 script code- See Also:
- Constant Field Values
-
JAVANESE
public static final int JAVANESE
ISO 15924 script code- See Also:
- Constant Field Values
-
KAYAH_LI
public static final int KAYAH_LI
ISO 15924 script code- See Also:
- Constant Field Values
-
LATIN_FRAKTUR
public static final int LATIN_FRAKTUR
ISO 15924 script code- See Also:
- Constant Field Values
-
LATIN_GAELIC
public static final int LATIN_GAELIC
ISO 15924 script code- See Also:
- Constant Field Values
-
LEPCHA
public static final int LEPCHA
ISO 15924 script code- See Also:
- Constant Field Values
-
LINEAR_A
public static final int LINEAR_A
ISO 15924 script code- See Also:
- Constant Field Values
-
MANDAIC
public static final int MANDAIC
ISO 15924 script code- See Also:
- Constant Field Values
-
MANDAEAN
public static final int MANDAEAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MAYAN_HIEROGLYPHS
public static final int MAYAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
MEROITIC_HIEROGLYPHS
public static final int MEROITIC_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
MEROITIC
public static final int MEROITIC
ISO 15924 script code- See Also:
- Constant Field Values
-
NKO
public static final int NKO
ISO 15924 script code- See Also:
- Constant Field Values
-
ORKHON
public static final int ORKHON
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_PERMIC
public static final int OLD_PERMIC
ISO 15924 script code- See Also:
- Constant Field Values
-
PHAGS_PA
public static final int PHAGS_PA
ISO 15924 script code- See Also:
- Constant Field Values
-
PHOENICIAN
public static final int PHOENICIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MIAO
public static final int MIAO
ISO 15924 script code- See Also:
- Constant Field Values
-
PHONETIC_POLLARD
public static final int PHONETIC_POLLARD
ISO 15924 script code- See Also:
- Constant Field Values
-
RONGORONGO
public static final int RONGORONGO
ISO 15924 script code- See Also:
- Constant Field Values
-
SARATI
public static final int SARATI
ISO 15924 script code- See Also:
- Constant Field Values
-
ESTRANGELO_SYRIAC
public static final int ESTRANGELO_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
-
WESTERN_SYRIAC
public static final int WESTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
-
EASTERN_SYRIAC
public static final int EASTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
-
TENGWAR
public static final int TENGWAR
ISO 15924 script code- See Also:
- Constant Field Values
-
VAI
public static final int VAI
ISO 15924 script code- See Also:
- Constant Field Values
-
VISIBLE_SPEECH
public static final int VISIBLE_SPEECH
ISO 15924 script code- See Also:
- Constant Field Values
-
CUNEIFORM
public static final int CUNEIFORM
ISO 15924 script code- See Also:
- Constant Field Values
-
UNWRITTEN_LANGUAGES
public static final int UNWRITTEN_LANGUAGES
ISO 15924 script code- See Also:
- Constant Field Values
-
UNKNOWN
public static final int UNKNOWN
ISO 15924 script code- See Also:
- Constant Field Values
-
CARIAN
public static final int CARIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
JAPANESE
public static final int JAPANESE
ISO 15924 script code- See Also:
- Constant Field Values
-
LANNA
public static final int LANNA
ISO 15924 script code- See Also:
- Constant Field Values
-
LYCIAN
public static final int LYCIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
LYDIAN
public static final int LYDIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
OL_CHIKI
public static final int OL_CHIKI
ISO 15924 script code- See Also:
- Constant Field Values
-
REJANG
public static final int REJANG
ISO 15924 script code- See Also:
- Constant Field Values
-
SAURASHTRA
public static final int SAURASHTRA
ISO 15924 script code- See Also:
- Constant Field Values
-
SIGN_WRITING
public static final int SIGN_WRITING
ISO 15924 script code for Sutton SignWriting- See Also:
- Constant Field Values
-
SUNDANESE
public static final int SUNDANESE
ISO 15924 script code- See Also:
- Constant Field Values
-
MOON
public static final int MOON
ISO 15924 script code- See Also:
- Constant Field Values
-
MEITEI_MAYEK
public static final int MEITEI_MAYEK
ISO 15924 script code- See Also:
- Constant Field Values
-
IMPERIAL_ARAMAIC
public static final int IMPERIAL_ARAMAIC
ISO 15924 script code- See Also:
- Constant Field Values
-
AVESTAN
public static final int AVESTAN
ISO 15924 script code- See Also:
- Constant Field Values
-
CHAKMA
public static final int CHAKMA
ISO 15924 script code- See Also:
- Constant Field Values
-
KOREAN
public static final int KOREAN
ISO 15924 script code- See Also:
- Constant Field Values
-
KAITHI
public static final int KAITHI
ISO 15924 script code- See Also:
- Constant Field Values
-
MANICHAEAN
public static final int MANICHAEAN
ISO 15924 script code- See Also:
- Constant Field Values
-
INSCRIPTIONAL_PAHLAVI
public static final int INSCRIPTIONAL_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
-
PSALTER_PAHLAVI
public static final int PSALTER_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
-
BOOK_PAHLAVI
public static final int BOOK_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
-
INSCRIPTIONAL_PARTHIAN
public static final int INSCRIPTIONAL_PARTHIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
SAMARITAN
public static final int SAMARITAN
ISO 15924 script code- See Also:
- Constant Field Values
-
TAI_VIET
public static final int TAI_VIET
ISO 15924 script code- See Also:
- Constant Field Values
-
MATHEMATICAL_NOTATION
public static final int MATHEMATICAL_NOTATION
ISO 15924 script code- See Also:
- Constant Field Values
-
SYMBOLS
public static final int SYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
-
BAMUM
public static final int BAMUM
ISO 15924 script code- See Also:
- Constant Field Values
-
LISU
public static final int LISU
ISO 15924 script code- See Also:
- Constant Field Values
-
NAKHI_GEBA
public static final int NAKHI_GEBA
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_SOUTH_ARABIAN
public static final int OLD_SOUTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
BASSA_VAH
public static final int BASSA_VAH
ISO 15924 script code- See Also:
- Constant Field Values
-
DUPLOYAN
public static final int DUPLOYAN
ISO 15924 script code- See Also:
- Constant Field Values
-
DUPLOYAN_SHORTAND
@Deprecated public static final int DUPLOYAN_SHORTAND
Deprecated.ICU 54Typo, use DUPLOYAN- See Also:
- Constant Field Values
-
ELBASAN
public static final int ELBASAN
ISO 15924 script code- See Also:
- Constant Field Values
-
GRANTHA
public static final int GRANTHA
ISO 15924 script code- See Also:
- Constant Field Values
-
KPELLE
public static final int KPELLE
ISO 15924 script code- See Also:
- Constant Field Values
-
LOMA
public static final int LOMA
ISO 15924 script code- See Also:
- Constant Field Values
-
MENDE
public static final int MENDE
Mende Kikakui ISO 15924 script code- See Also:
- Constant Field Values
-
MEROITIC_CURSIVE
public static final int MEROITIC_CURSIVE
ISO 15924 script code- See Also:
- Constant Field Values
-
OLD_NORTH_ARABIAN
public static final int OLD_NORTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
NABATAEAN
public static final int NABATAEAN
ISO 15924 script code- See Also:
- Constant Field Values
-
PALMYRENE
public static final int PALMYRENE
ISO 15924 script code- See Also:
- Constant Field Values
-
KHUDAWADI
public static final int KHUDAWADI
ISO 15924 script code- See Also:
- Constant Field Values
-
SINDHI
public static final int SINDHI
ISO 15924 script code- See Also:
- Constant Field Values
-
WARANG_CITI
public static final int WARANG_CITI
ISO 15924 script code- See Also:
- Constant Field Values
-
AFAKA
public static final int AFAKA
ISO 15924 script code- See Also:
- Constant Field Values
-
JURCHEN
public static final int JURCHEN
ISO 15924 script code- See Also:
- Constant Field Values
-
MRO
public static final int MRO
ISO 15924 script code- See Also:
- Constant Field Values
-
NUSHU
public static final int NUSHU
ISO 15924 script code- See Also:
- Constant Field Values
-
SHARADA
public static final int SHARADA
ISO 15924 script code- See Also:
- Constant Field Values
-
SORA_SOMPENG
public static final int SORA_SOMPENG
ISO 15924 script code- See Also:
- Constant Field Values
-
TAKRI
public static final int TAKRI
ISO 15924 script code- See Also:
- Constant Field Values
-
TANGUT
public static final int TANGUT
ISO 15924 script code- See Also:
- Constant Field Values
-
WOLEAI
public static final int WOLEAI
ISO 15924 script code- See Also:
- Constant Field Values
-
ANATOLIAN_HIEROGLYPHS
public static final int ANATOLIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
-
KHOJKI
public static final int KHOJKI
ISO 15924 script code- See Also:
- Constant Field Values
-
TIRHUTA
public static final int TIRHUTA
ISO 15924 script code- See Also:
- Constant Field Values
-
CAUCASIAN_ALBANIAN
public static final int CAUCASIAN_ALBANIAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MAHAJANI
public static final int MAHAJANI
ISO 15924 script code- See Also:
- Constant Field Values
-
AHOM
public static final int AHOM
ISO 15924 script code- See Also:
- Constant Field Values
-
HATRAN
public static final int HATRAN
ISO 15924 script code- See Also:
- Constant Field Values
-
MODI
public static final int MODI
ISO 15924 script code- See Also:
- Constant Field Values
-
MULTANI
public static final int MULTANI
ISO 15924 script code- See Also:
- Constant Field Values
-
PAU_CIN_HAU
public static final int PAU_CIN_HAU
ISO 15924 script code- See Also:
- Constant Field Values
-
SIDDHAM
public static final int SIDDHAM
ISO 15924 script code- See Also:
- Constant Field Values
-
CODE_LIMIT
public static final int CODE_LIMIT
One higher than the last script code constant. This value increases as constants for script codes are added.
There are constants for Unicode 7 script property values. There are constants for ISO 15924 script codes assigned on or before 2013-10-12. There are no constants for private use codes from Qaaa - Qabx except as used in the UCD.
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public static final int[] getCode(Locale locale)
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- Returns:
- The script codes array. null if the the code cannot be found.
-
getCode
public static final int[] getCode(ULocale locale)
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- Returns:
- The script codes array. null if the the code cannot be found.
-
getCode
public static final int[] getCode(String nameOrAbbrOrLocale)
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(String)instead. That does a fast lookup with no access of the locale data.- Parameters:
nameOrAbbrOrLocale- name of the script or ISO 15924 code or locale- Returns:
- The script codes array. null if the the code cannot be found.
-
getCodeFromName
public static final int getCodeFromName(String nameOrAbbr)
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- name of the script or ISO 15924 code- Returns:
- The script code value, or INVALID_CODE if the code cannot be found.
-
getScript
public static final int getScript(int codepoint)
Gets the script code associated with the given codepoint. Returns UScript.MALAYAM given 0x0D02- Parameters:
codepoint- UChar32 codepoint- Returns:
- The script code
-
hasScript
public static final boolean hasScript(int c, int sc)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/.
The Script_Extensions property is provisional. It may be modified or removed in future versions of the Unicode Standard, and thus in ICU.
- Parameters:
c- code pointsc- script code- Returns:
- true if sc is in Script_Extensions(c)
-
getScriptExtensions
public static final int getScriptExtensions(int c, BitSet set)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
UNKNOWNcode is put into the set and also returned.
Some characters are commonly used in multiple scripts. For more information, see UAX #24: http://www.unicode.org/reports/tr24/.
The Script_Extensions property is provisional. It may be modified or removed in future versions of the Unicode Standard, and thus in ICU.
- Parameters:
c- code pointset- set of script code integers; will be cleared, then bits are set corresponding to c's Script_Extensions- Returns:
- negative number of script codes in c's Script_Extensions, or the non-negative single Script value
-
getName
public static final String getName(int scriptCode)
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 script code- Returns:
- long script name as given in PropertyValueAliases.txt, or the 4-letter code
- Throws:
IllegalArgumentException- if the script code is not valid
-
getShortName
public static final String getShortName(int scriptCode)
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 script code- Returns:
- short script name (4-letter code)
- Throws:
IllegalArgumentException- if the script code is not valid
-
getSampleString
public static final String getSampleString(int script)
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- script code- Returns:
- the sample character string
-
getUsage
public static final UScript.ScriptUsage getUsage(int script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax. ReturnsUScript.ScriptUsage.NOT_ENCODEDif the script is not encoded in Unicode.- Parameters:
script- script code- Returns:
- script usage
- See Also:
UScript.ScriptUsage
-
isRightToLeft
public static final boolean isRightToLeft(int script)
Returns true if the script is written right-to-left. For example, Arab and Hebr.- Parameters:
script- script code- Returns:
- true if the script is right-to-left
-
breaksBetweenLetters
public static final boolean breaksBetweenLetters(int script)
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- script code- Returns:
- true if the script allows line breaks between letters
-
isCased
public static final boolean isCased(int script)
Returns true if in modern (or most recent) usage of the script case distinctions are customary. For example, Latn and Cyrl.- Parameters:
script- script code- Returns:
- true if the script is cased
-
-