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 .
In addition, constants for many 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, except as used in the UCD or in CLDR.
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.
- Status:
- Stable ICU 2.4.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUScript.ScriptUsageScript usage constants.
-
Field Summary
Fields Modifier and Type Field Description static intADLAMISO 15924 script codestatic intAFAKAISO 15924 script codestatic intAHOMISO 15924 script codestatic intANATOLIAN_HIEROGLYPHSISO 15924 script codestatic intARABICArabicstatic intARABIC_NASTALIQstatic intARMENIANArmenianstatic intAVESTANISO 15924 script codestatic intBALINESEISO 15924 script codestatic intBAMUMISO 15924 script codestatic intBASSA_VAHISO 15924 script codestatic intBATAKISO 15924 script codestatic intBENGALIBengalistatic intBERIA_ERFEstatic intBHAIKSUKIISO 15924 script codestatic 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 intCHORASMIANstatic intCIRTHISO 15924 script codestatic intCODE_LIMITDeprecated.ICU 58 The numeric value may change over time, see ICU ticket #12420.static intCOMMONCommonstatic intCOPTICCopticstatic intCUNEIFORMISO 15924 script codestatic intCYPRIOTCypriot Script in Unicode 4static intCYPRO_MINOANstatic intCYRILLICCyrillicstatic intDEMOTIC_EGYPTIANISO 15924 script codestatic intDESERETDeseretstatic intDEVANAGARIDevanagaristatic intDIVES_AKURUstatic intDOGRAISO 15924 script codestatic intDUPLOYANISO 15924 script codestatic intDUPLOYAN_SHORTANDDeprecated.ICU 54static intEASTERN_SYRIACISO 15924 script codestatic intEGYPTIAN_HIEROGLYPHSISO 15924 script codestatic intELBASANISO 15924 script codestatic intELYMAICstatic intESTRANGELO_SYRIACISO 15924 script codestatic intETHIOPICEthiopicstatic intGARAYstatic intGEORGIANGeorgianstatic intGLAGOLITICScript in Unicode 4.1static intGOTHICGothicstatic intGRANTHAISO 15924 script codestatic intGREEKGreekstatic intGUJARATIGujaratistatic intGUNJALA_GONDIstatic intGURMUKHIGurmukhistatic intGURUNG_KHEMAstatic intHANHanstatic intHAN_WITH_BOPOMOFOISO 15924 script codestatic intHANGULHangulstatic intHANIFI_ROHINGYAstatic 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 intJAMOISO 15924 script 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 intKAWIstatic intKAYAH_LIISO 15924 script codestatic intKHAROSHTHIScript in Unicode 4.1static intKHITAN_SMALL_SCRIPTstatic intKHMERKhmerstatic intKHOJKIISO 15924 script codestatic intKHUDAWADIISO 15924 script codestatic intKHUTSURIISO 15924 script codestatic intKIRAT_RAIstatic 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 intMAKASARstatic intMALAYALAMMalayalamstatic intMANDAEANISO 15924 script codestatic intMANDAICISO 15924 script codestatic intMANICHAEANISO 15924 script codestatic intMARCHENISO 15924 script codestatic intMASARAM_GONDIISO 15924 script codestatic intMATHEMATICAL_NOTATIONISO 15924 script codestatic intMAYAN_HIEROGLYPHSISO 15924 script codestatic intMEDEFAIDRINstatic 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 intNAG_MUNDARIstatic intNAKHI_GEBAISO 15924 script codestatic intNANDINAGARIstatic intNEW_TAI_LUEScript in Unicode 4.1static intNEWAISO 15924 script codestatic intNKOISO 15924 script codestatic intNUSHUISO 15924 script codestatic intNYIAKENG_PUACHUE_HMONGstatic intOGHAMOghamstatic intOL_CHIKIISO 15924 script codestatic intOL_ONALstatic 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_SOGDIANstatic intOLD_SOUTH_ARABIANISO 15924 script codestatic intOLD_UYGHURstatic intORIYAOriyastatic intORKHONISO 15924 script codestatic intOSAGEISO 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 intSIDETICstatic intSIGN_WRITINGISO 15924 script code for Sutton SignWritingstatic intSIMPLIFIED_HANISO 15924 script codestatic intSINDHIISO 15924 script codestatic intSINHALASinhalastatic intSOGDIANstatic intSORA_SOMPENGISO 15924 script codestatic intSOYOMBOISO 15924 script codestatic intSUNDANESEISO 15924 script codestatic intSUNUWARstatic intSYLOTI_NAGRIScript in Unicode 4.1static intSYMBOLSISO 15924 script codestatic intSYMBOLS_EMOJIISO 15924 script codestatic intSYRIACSyriacstatic intTAGALOGTagalogstatic intTAGBANWATagbanwastatic intTAI_LETai Le Script in Unicode 4static intTAI_VIETISO 15924 script codestatic intTAI_YOstatic intTAKRIISO 15924 script codestatic intTAMILTamilstatic intTANGSAstatic intTANGUTISO 15924 script codestatic intTELUGUTelugustatic intTENGWARISO 15924 script codestatic intTHAANAThanastatic intTHAIThaistatic intTIBETANTibetanstatic intTIFINAGHScript in Unicode 4.1static intTIRHUTAISO 15924 script codestatic intTODHRIstatic intTOLONG_SIKIstatic intTOTOstatic intTRADITIONAL_HANISO 15924 script codestatic intTRADITIONAL_HAN_WITH_LATINstatic intTULU_TIGALARIstatic 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 intVITHKUQIstatic intWANCHOstatic intWARANG_CITIISO 15924 script codestatic intWESTERN_SYRIACISO 15924 script codestatic intWOLEAIISO 15924 script codestatic intYEZIDIstatic intYIYi syllablesstatic intZANABAZAR_SQUAREISO 15924 script code
-
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
- Status:
- Stable ICU 2.4.
-
COMMON
public static final int COMMON
Common- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
INHERITED
public static final int INHERITED
Inherited- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ARABIC
public static final int ARABIC
Arabic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ARMENIAN
public static final int ARMENIAN
Armenian- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BENGALI
public static final int BENGALI
Bengali- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BOPOMOFO
public static final int BOPOMOFO
Bopomofo- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
CHEROKEE
public static final int CHEROKEE
Cherokee- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
COPTIC
public static final int COPTIC
Coptic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
CYRILLIC
public static final int CYRILLIC
Cyrillic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
DESERET
public static final int DESERET
Deseret- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
DEVANAGARI
public static final int DEVANAGARI
Devanagari- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ETHIOPIC
public static final int ETHIOPIC
Ethiopic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GEORGIAN
public static final int GEORGIAN
Georgian- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GOTHIC
public static final int GOTHIC
Gothic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GREEK
public static final int GREEK
Greek- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GUJARATI
public static final int GUJARATI
Gujarati- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
GURMUKHI
public static final int GURMUKHI
Gurmukhi- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HAN
public static final int HAN
Han- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HANGUL
public static final int HANGUL
Hangul- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HEBREW
public static final int HEBREW
Hebrew- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HIRAGANA
public static final int HIRAGANA
Hiragana- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
KANNADA
public static final int KANNADA
Kannada- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
KATAKANA
public static final int KATAKANA
Katakana- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
KHMER
public static final int KHMER
Khmer- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
LAO
public static final int LAO
Lao- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
LATIN
public static final int LATIN
Latin- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
MALAYALAM
public static final int MALAYALAM
Malayalam- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
MONGOLIAN
public static final int MONGOLIAN
Mangolian- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
MYANMAR
public static final int MYANMAR
Myammar- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
OGHAM
public static final int OGHAM
Ogham- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
OLD_ITALIC
public static final int OLD_ITALIC
Old Itallic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
ORIYA
public static final int ORIYA
Oriya- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
RUNIC
public static final int RUNIC
Runic- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
SINHALA
public static final int SINHALA
Sinhala- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
SYRIAC
public static final int SYRIAC
Syriac- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TAMIL
public static final int TAMIL
Tamil- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TELUGU
public static final int TELUGU
Telugu- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
THAANA
public static final int THAANA
Thana- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
THAI
public static final int THAI
Thai- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TIBETAN
public static final int TIBETAN
Tibetan- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
CANADIAN_ABORIGINAL
public static final int CANADIAN_ABORIGINAL
Unified Canadian Aboriginal Symbols- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
UCAS
public static final int UCAS
Unified Canadian Aboriginal Symbols (alias)- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
YI
public static final int YI
Yi syllables- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TAGALOG
public static final int TAGALOG
Tagalog- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
HANUNOO
public static final int HANUNOO
Hanunooo- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BUHID
public static final int BUHID
Buhid- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
TAGBANWA
public static final int TAGBANWA
Tagbanwa- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.4.
-
BRAILLE
public static final int BRAILLE
Braille Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
CYPRIOT
public static final int CYPRIOT
Cypriot Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
LIMBU
public static final int LIMBU
Limbu Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
LINEAR_B
public static final int LINEAR_B
Linear B Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
OSMANYA
public static final int OSMANYA
Osmanya Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
SHAVIAN
public static final int SHAVIAN
Shavian Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
TAI_LE
public static final int TAI_LE
Tai Le Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
UGARITIC
public static final int UGARITIC
Ugaritic Script in Unicode 4- See Also:
- Constant Field Values
- Status:
- Stable ICU 2.6.
-
KATAKANA_OR_HIRAGANA
public static final int KATAKANA_OR_HIRAGANA
Script in Unicode 4.0.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.0.
-
BUGINESE
public static final int BUGINESE
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
GLAGOLITIC
public static final int GLAGOLITIC
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
KHAROSHTHI
public static final int KHAROSHTHI
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
SYLOTI_NAGRI
public static final int SYLOTI_NAGRI
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
NEW_TAI_LUE
public static final int NEW_TAI_LUE
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
TIFINAGH
public static final int TIFINAGH
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
OLD_PERSIAN
public static final int OLD_PERSIAN
Script in Unicode 4.1- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.4.
-
BALINESE
public static final int BALINESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
BATAK
public static final int BATAK
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
BLISSYMBOLS
public static final int BLISSYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
BRAHMI
public static final int BRAHMI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CHAM
public static final int CHAM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CIRTH
public static final int CIRTH
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
OLD_CHURCH_SLAVONIC_CYRILLIC
public static final int OLD_CHURCH_SLAVONIC_CYRILLIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
DEMOTIC_EGYPTIAN
public static final int DEMOTIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
HIERATIC_EGYPTIAN
public static final int HIERATIC_EGYPTIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
EGYPTIAN_HIEROGLYPHS
public static final int EGYPTIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
KHUTSURI
public static final int KHUTSURI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
SIMPLIFIED_HAN
public static final int SIMPLIFIED_HAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
TRADITIONAL_HAN
public static final int TRADITIONAL_HAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
PAHAWH_HMONG
public static final int PAHAWH_HMONG
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
OLD_HUNGARIAN
public static final int OLD_HUNGARIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
HARAPPAN_INDUS
public static final int HARAPPAN_INDUS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
JAVANESE
public static final int JAVANESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
KAYAH_LI
public static final int KAYAH_LI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LATIN_FRAKTUR
public static final int LATIN_FRAKTUR
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LATIN_GAELIC
public static final int LATIN_GAELIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LEPCHA
public static final int LEPCHA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
LINEAR_A
public static final int LINEAR_A
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MANDAIC
public static final int MANDAIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MANDAEAN
public static final int MANDAEAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MAYAN_HIEROGLYPHS
public static final int MAYAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MEROITIC_HIEROGLYPHS
public static final int MEROITIC_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MEROITIC
public static final int MEROITIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
NKO
public static final int NKO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
ORKHON
public static final int ORKHON
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
OLD_PERMIC
public static final int OLD_PERMIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
PHAGS_PA
public static final int PHAGS_PA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
PHOENICIAN
public static final int PHOENICIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
MIAO
public static final int MIAO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 52.
-
PHONETIC_POLLARD
public static final int PHONETIC_POLLARD
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
RONGORONGO
public static final int RONGORONGO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
SARATI
public static final int SARATI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
ESTRANGELO_SYRIAC
public static final int ESTRANGELO_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
WESTERN_SYRIAC
public static final int WESTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
EASTERN_SYRIAC
public static final int EASTERN_SYRIAC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
TENGWAR
public static final int TENGWAR
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
VAI
public static final int VAI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
VISIBLE_SPEECH
public static final int VISIBLE_SPEECH
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CUNEIFORM
public static final int CUNEIFORM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
UNWRITTEN_LANGUAGES
public static final int UNWRITTEN_LANGUAGES
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
UNKNOWN
public static final int UNKNOWN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.6.
-
CARIAN
public static final int CARIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
JAPANESE
public static final int JAPANESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
LANNA
public static final int LANNA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
LYCIAN
public static final int LYCIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
LYDIAN
public static final int LYDIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
OL_CHIKI
public static final int OL_CHIKI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
REJANG
public static final int REJANG
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
SAURASHTRA
public static final int SAURASHTRA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
SIGN_WRITING
public static final int SIGN_WRITING
ISO 15924 script code for Sutton SignWriting- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
SUNDANESE
public static final int SUNDANESE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
MOON
public static final int MOON
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
MEITEI_MAYEK
public static final int MEITEI_MAYEK
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 3.8.
-
IMPERIAL_ARAMAIC
public static final int IMPERIAL_ARAMAIC
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
AVESTAN
public static final int AVESTAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
CHAKMA
public static final int CHAKMA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
KOREAN
public static final int KOREAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
KAITHI
public static final int KAITHI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
MANICHAEAN
public static final int MANICHAEAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
INSCRIPTIONAL_PAHLAVI
public static final int INSCRIPTIONAL_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
PSALTER_PAHLAVI
public static final int PSALTER_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
BOOK_PAHLAVI
public static final int BOOK_PAHLAVI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
INSCRIPTIONAL_PARTHIAN
public static final int INSCRIPTIONAL_PARTHIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
SAMARITAN
public static final int SAMARITAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
TAI_VIET
public static final int TAI_VIET
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
MATHEMATICAL_NOTATION
public static final int MATHEMATICAL_NOTATION
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
SYMBOLS
public static final int SYMBOLS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.0.
-
BAMUM
public static final int BAMUM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
LISU
public static final int LISU
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
NAKHI_GEBA
public static final int NAKHI_GEBA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
OLD_SOUTH_ARABIAN
public static final int OLD_SOUTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.4.
-
BASSA_VAH
public static final int BASSA_VAH
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
DUPLOYAN
public static final int DUPLOYAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
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
- Status:
- Stable ICU 4.6.
-
GRANTHA
public static final int GRANTHA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
KPELLE
public static final int KPELLE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
LOMA
public static final int LOMA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MENDE
public static final int MENDE
Mende Kikakui ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
MEROITIC_CURSIVE
public static final int MEROITIC_CURSIVE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
OLD_NORTH_ARABIAN
public static final int OLD_NORTH_ARABIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
NABATAEAN
public static final int NABATAEAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
PALMYRENE
public static final int PALMYRENE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
KHUDAWADI
public static final int KHUDAWADI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
SINDHI
public static final int SINDHI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
WARANG_CITI
public static final int WARANG_CITI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.6.
-
AFAKA
public static final int AFAKA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
JURCHEN
public static final int JURCHEN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
MRO
public static final int MRO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
NUSHU
public static final int NUSHU
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
SHARADA
public static final int SHARADA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
SORA_SOMPENG
public static final int SORA_SOMPENG
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
TAKRI
public static final int TAKRI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
TANGUT
public static final int TANGUT
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
WOLEAI
public static final int WOLEAI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 4.8.
-
ANATOLIAN_HIEROGLYPHS
public static final int ANATOLIAN_HIEROGLYPHS
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 49.
-
KHOJKI
public static final int KHOJKI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 49.
-
TIRHUTA
public static final int TIRHUTA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 49.
-
CAUCASIAN_ALBANIAN
public static final int CAUCASIAN_ALBANIAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 52.
-
MAHAJANI
public static final int MAHAJANI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 52.
-
AHOM
public static final int AHOM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
HATRAN
public static final int HATRAN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
MODI
public static final int MODI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
MULTANI
public static final int MULTANI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
PAU_CIN_HAU
public static final int PAU_CIN_HAU
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
SIDDHAM
public static final int SIDDHAM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 54.
-
ADLAM
public static final int ADLAM
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
BHAIKSUKI
public static final int BHAIKSUKI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
MARCHEN
public static final int MARCHEN
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
NEWA
public static final int NEWA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
OSAGE
public static final int OSAGE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
HAN_WITH_BOPOMOFO
public static final int HAN_WITH_BOPOMOFO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
JAMO
public static final int JAMO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
SYMBOLS_EMOJI
public static final int SYMBOLS_EMOJI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 58.
-
MASARAM_GONDI
public static final int MASARAM_GONDI
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 60.
-
SOYOMBO
public static final int SOYOMBO
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 60.
-
ZANABAZAR_SQUARE
public static final int ZANABAZAR_SQUARE
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 60.
-
DOGRA
public static final int DOGRA
ISO 15924 script code- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
GUNJALA_GONDI
public static final int GUNJALA_GONDI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
MAKASAR
public static final int MAKASAR
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
MEDEFAIDRIN
public static final int MEDEFAIDRIN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
HANIFI_ROHINGYA
public static final int HANIFI_ROHINGYA
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
SOGDIAN
public static final int SOGDIAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
OLD_SOGDIAN
public static final int OLD_SOGDIAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 62.
-
ELYMAIC
public static final int ELYMAIC
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
NYIAKENG_PUACHUE_HMONG
public static final int NYIAKENG_PUACHUE_HMONG
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
NANDINAGARI
public static final int NANDINAGARI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
WANCHO
public static final int WANCHO
- See Also:
- Constant Field Values
- Status:
- Stable ICU 64.
-
CHORASMIAN
public static final int CHORASMIAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
DIVES_AKURU
public static final int DIVES_AKURU
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
KHITAN_SMALL_SCRIPT
public static final int KHITAN_SMALL_SCRIPT
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
YEZIDI
public static final int YEZIDI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 66.
-
CYPRO_MINOAN
public static final int CYPRO_MINOAN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
OLD_UYGHUR
public static final int OLD_UYGHUR
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
TANGSA
public static final int TANGSA
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
TOTO
public static final int TOTO
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
VITHKUQI
public static final int VITHKUQI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 70.
-
KAWI
public static final int KAWI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 72.
-
NAG_MUNDARI
public static final int NAG_MUNDARI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 72.
-
ARABIC_NASTALIQ
public static final int ARABIC_NASTALIQ
- See Also:
- Constant Field Values
- Status:
- Stable ICU 75.
-
GARAY
public static final int GARAY
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
GURUNG_KHEMA
public static final int GURUNG_KHEMA
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
KIRAT_RAI
public static final int KIRAT_RAI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
OL_ONAL
public static final int OL_ONAL
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
SUNUWAR
public static final int SUNUWAR
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
TODHRI
public static final int TODHRI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
TULU_TIGALARI
public static final int TULU_TIGALARI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 76.
-
BERIA_ERFE
public static final int BERIA_ERFE
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
SIDETIC
public static final int SIDETIC
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
TAI_YO
public static final int TAI_YO
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
TOLONG_SIKI
public static final int TOLONG_SIKI
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
TRADITIONAL_HAN_WITH_LATIN
public static final int TRADITIONAL_HAN_WITH_LATIN
- See Also:
- Constant Field Values
- Status:
- Stable ICU 78.
-
CODE_LIMIT
@Deprecated public static final int CODE_LIMIT
Deprecated.ICU 58 The numeric value may change over time, see ICU ticket #12420.One more than the highest normal UScript code. The highest value is available via UCharacter.getIntPropertyMaxValue(UProperty.SCRIPT).- 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 code cannot be found.
- Status:
- Stable ICU 2.4.
-
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 code cannot be found.
- Status:
- Stable ICU 3.0.
-
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 code cannot be found.
- Status:
- Stable ICU 2.4.
-
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.
- Status:
- Stable ICU 54.
-
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
- Status:
- Stable ICU 2.4.
-
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/.
- Parameters:
c- code pointsc- script code- Returns:
- true if sc is in Script_Extensions(c)
- Status:
- Stable ICU 49.
-
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/.
- 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
- Status:
- Stable ICU 49.
-
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- Status:
- Stable ICU 2.4.
-
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- Status:
- Stable ICU 2.4.
-
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
- Status:
- Stable ICU 51.
-
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- Status:
- Stable ICU 51.
-
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
- Status:
- Stable ICU 51.
-
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
- Status:
- Stable ICU 51.
-
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
- Status:
- Stable ICU 51.
-
-