Enum ScriptCode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      Afak
      Afaka [439]
      Aghb
      Caucasian Albanian [239]
      Arab
      Arabic [160]
      Armi
      Imperial Aramaic [124]
      Armn
      Armenian [230]
      Avst
      Avestan [134]
      Bali
      Balinese [360]
      Bamu
      Bamum [435]
      Bass
      Bassa Vah [259]
      Batk
      Batak [365]
      Beng
      Bengali [325]
      Blis
      Blissymbols [550]
      Bopo
      Bopomofo [285]
      Brah
      Brahmi [300]
      Brai
      Braille [570]
      Bugi
      Buginese [367]
      Buhd
      Buhid [372]
      Cakm
      Chakma [349]
      Cans
      Unified Canadian Aboriginal Syllabics [440]
      Cari
      Carian [201]
      Cham
      Cham [358]
      Cher
      Cherokee [445]
      Cirt
      Cirth [291]
      Copt
      Coptic [204]
      Cprt
      Cypriot [403]
      Cyrl
      Cyrillic [220]
      Cyrs
      Cyrillic [221]
      Deva
      Devanagari [315]
      Dsrt
      Deseret [250]
      Dupl
      Duployan shorthand, Duployan stenography [755]
      Egyd
      Egyptian demotic [070]
      Egyh
      Egyptian hieratic [060]
      Egyp
      Egyptian hieroglyphs [050]
      Elba
      Elbasan [226]
      Ethi
      Ethiopic [430]
      Geok
      Khutsuri [241]
      Geor
      Georgian [240]
      Glag
      Glagolitic [225]
      Goth
      Gothic [206]
      Gran
      Grantha [343]
      Grek
      Greek [200]
      Gujr
      Gujarati [320]
      Guru
      Gurmukhi [310]
      Hang
      Hangul [286]
      Hani
      Han [500]
      Hano
      Hanunoo [371]
      Hans
      Han [501]
      Hant
      Han [502]
      Hebr
      Hebrew [125]
      Hira
      Hiragana [410]
      Hluw
      Anatolian Hieroglyphs [080]
      Hmng
      Pahawh Hmong [450]
      Hrkt
      Japanese syllabaries [412]
      Hung
      Old Hungarian [176]
      Inds
      Indus [610]
      Ital
      Old Italic [210]
      Java
      Javanese [361]
      Jpan
      Japanese [413]
      Jurc
      Jurchen [510]
      Kali
      Kayah Li [357]
      Kana
      Katakana [411]
      Khar
      Kharoshthi [305]
      Khmr
      Khmer [355]
      Khoj
      Khojki [322]
      Knda
      Kannada [345]
      Kore
      Korean [287]
      Kpel
      Kpelle [436]
      Kthi
      Kaithi [317]
      Lana
      Tai Tham [351]
      Laoo
      Lao [356]
      Latf
      Latin [217]
      Latg
      Latin [216]
      Latn
      Latin [215]
      Lepc
      Lepcha [335]
      Limb
      Limbu [336]
      Lina
      Linear A [400]
      Linb
      Linear B [401]
      Lisu
      Lisu [399]
      Loma
      Loma [437]
      Lyci
      Lycian [202]
      Lydi
      Lydian [116]
      Mahj
      Mahajani [314]
      Mand
      Mandaic, Mandaean [140]
      Mani
      Manichaean [139]
      Maya
      Mayan hieroglyphs [090]
      Mend
      Mende [438]
      Merc
      Meroitic Cursive [101]
      Mero
      Meroitic Hieroglyphs [100]
      Mlym
      Malayalam [347]
      Mong
      Mongolian [145]
      Moon
      Moon [218]
      Mroo
      Mro, Mru [199]
      Mtei
      Meitei Mayek [337]
      Mymr
      Myanmar [350]
      Narb
      Old North Arabian [106]
      Nbat
      Nabataean [159]
      Nkgb
      Nakhi Geba [420]
      Nkoo
      N’Ko [165]
      Nshu
      Nushu [499]
      Ogam
      Ogham [212]
      Olck
      Ol Chiki [261]
      Orkh
      Old Turkic, Orkhon Runic [175]
      Orya
      Oriya [327]
      Osma
      Osmanya [260]
      Palm
      Palmyrene [126]
      Perm
      Old Permic [227]
      Phag
      Phags-pa [331]
      Phli
      Inscriptional Pahlavi [131]
      Phlp
      Psalter Pahlavi [132]
      Phlv
      Book Pahlavi [133]
      Phnx
      Phoenician [115]
      Plrd
      Miao [282]
      Prti
      Inscriptional Parthian [130]
      Qaaa
      Reserved for private use [900]
      Qabx
      Reserved for private use [949]
      Rjng
      Rejang [363]
      Roro
      Rongorongo [620]
      Runr
      Runic [211]
      Samr
      Samaritan [123]
      Sara
      Sarati [292]
      Sarb
      Old South Arabian [105]
      Saur
      Saurashtra [344]
      Sgnw
      SignWriting [095]
      Shaw
      Shavian [281]
      Shrd
      Sharada [319]
      Sind
      Khudawadi, Sindhi [318]
      Sinh
      Sinhala [348]
      Sora
      Sora Sompeng [398]
      Sund
      Sundanese [362]
      Sylo
      Syloti Nagri [316]
      Syrc
      Syriac [135]
      Syre
      Syriac [138]
      Syrj
      Syriac [137]
      Syrn
      Syriac [136]
      Tagb
      Tagbanwa [373]
      Takr
      Takri [321]
      Tale
      Tai Le [353]
      Talu
      New Tai Lue [354]
      Taml
      Tamil [346]
      Tang
      Tangut [520]
      Tavt
      Tai Viet [359]
      Telu
      Telugu [340]
      Teng
      Tengwar [290]
      Tfng
      Tifinagh [120]
      Tglg
      Tagalog [370]
      Thaa
      Thaana [170]
      Thai
      Thai [352]
      Tibt
      Tibetan [330]
      Tirh
      Tirhuta [326]
      Ugar
      Ugaritic [040]
      Undefined
      Undefined [-1]
      Vaii
      Vai [470]
      Visp
      Visible Speech [280]
      Wara
      Warang Citi [262]
      Wole
      Woleai [480]
      Xpeo
      Old Persian [030]
      Xsux
      Cuneiform, Sumero-Akkadian [020]
      Yiii
      Yi [460]
      Zinh
      Code for inherited script [994]
      Zmth
      Mathematical notation [995]
      Zsym
      Symbols [996]
      Zxxx
      Code for unwritten documents [997]
      Zyyy
      Code for undetermined script [998]
      Zzzz
      Code for uncoded script [999]
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name
      English name of this script code.
      private int numeric
      The numeric code of this script code.
      private static java.util.Map<java.lang.Integer,​ScriptCode> numericMap
      Map to look up ScriptCode by numeric code.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ScriptCode​(int numeric, java.lang.String name)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static java.lang.String canonicalize​(java.lang.String code, boolean caseSensitive)  
      static java.util.List<ScriptCode> findByName​(java.lang.String regex)
      Get a list of ScriptCode by a name regular expression.
      static java.util.List<ScriptCode> findByName​(java.util.regex.Pattern pattern)
      Get a list of ScriptCode by a name pattern.
      static ScriptCode getByCode​(int code)
      Get a ScriptCode instance that corresponds to the given ISO 15924 numeric code.
      static ScriptCode getByCode​(java.lang.String code)
      Get a ScriptCode instance that corresponds to the given ISO 15924 alpha-4 code.
      static ScriptCode getByCode​(java.lang.String code, boolean caseSensitive)
      Get a ScriptCode instance that corresponds to the given ISO 15924 alpha-4 code.
      static ScriptCode getByCodeIgnoreCase​(java.lang.String code)
      Get a ScriptCode instance that corresponds to the given ISO 15924 alpha-4 code.
      java.lang.String getName()
      Get English name of this script code.
      int getNumeric()
      Get the numeric code of this script code.
      static ScriptCode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ScriptCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Afak

        public static final ScriptCode Afak
        Afaka [439]
      • Aghb

        public static final ScriptCode Aghb
        Caucasian Albanian [239]
      • Arab

        public static final ScriptCode Arab
        Arabic [160]
      • Armi

        public static final ScriptCode Armi
        Imperial Aramaic [124]
      • Armn

        public static final ScriptCode Armn
        Armenian [230]
      • Avst

        public static final ScriptCode Avst
        Avestan [134]
      • Bali

        public static final ScriptCode Bali
        Balinese [360]
      • Bamu

        public static final ScriptCode Bamu
        Bamum [435]
      • Bass

        public static final ScriptCode Bass
        Bassa Vah [259]
      • Batk

        public static final ScriptCode Batk
        Batak [365]
      • Beng

        public static final ScriptCode Beng
        Bengali [325]
      • Blis

        public static final ScriptCode Blis
        Blissymbols [550]
      • Bopo

        public static final ScriptCode Bopo
        Bopomofo [285]
      • Brah

        public static final ScriptCode Brah
        Brahmi [300]
      • Brai

        public static final ScriptCode Brai
        Braille [570]
      • Bugi

        public static final ScriptCode Bugi
        Buginese [367]
      • Buhd

        public static final ScriptCode Buhd
        Buhid [372]
      • Cakm

        public static final ScriptCode Cakm
        Chakma [349]
      • Cans

        public static final ScriptCode Cans
        Unified Canadian Aboriginal Syllabics [440]
      • Cari

        public static final ScriptCode Cari
        Carian [201]
      • Cham

        public static final ScriptCode Cham
        Cham [358]
      • Cher

        public static final ScriptCode Cher
        Cherokee [445]
      • Cirt

        public static final ScriptCode Cirt
        Cirth [291]
      • Copt

        public static final ScriptCode Copt
        Coptic [204]
      • Cprt

        public static final ScriptCode Cprt
        Cypriot [403]
      • Cyrl

        public static final ScriptCode Cyrl
        Cyrillic [220]
      • Cyrs

        public static final ScriptCode Cyrs
        Cyrillic [221]
      • Deva

        public static final ScriptCode Deva
        Devanagari [315]
      • Dsrt

        public static final ScriptCode Dsrt
        Deseret [250]
      • Dupl

        public static final ScriptCode Dupl
        Duployan shorthand, Duployan stenography [755]
      • Egyd

        public static final ScriptCode Egyd
        Egyptian demotic [070]
      • Egyh

        public static final ScriptCode Egyh
        Egyptian hieratic [060]
      • Egyp

        public static final ScriptCode Egyp
        Egyptian hieroglyphs [050]
      • Elba

        public static final ScriptCode Elba
        Elbasan [226]
      • Ethi

        public static final ScriptCode Ethi
        Ethiopic [430]
      • Geor

        public static final ScriptCode Geor
        Georgian [240]
      • Geok

        public static final ScriptCode Geok
        Khutsuri [241]
      • Glag

        public static final ScriptCode Glag
        Glagolitic [225]
      • Goth

        public static final ScriptCode Goth
        Gothic [206]
      • Gran

        public static final ScriptCode Gran
        Grantha [343]
      • Grek

        public static final ScriptCode Grek
        Greek [200]
      • Gujr

        public static final ScriptCode Gujr
        Gujarati [320]
      • Guru

        public static final ScriptCode Guru
        Gurmukhi [310]
      • Hang

        public static final ScriptCode Hang
        Hangul [286]
      • Hani

        public static final ScriptCode Hani
        Han [500]
      • Hano

        public static final ScriptCode Hano
        Hanunoo [371]
      • Hans

        public static final ScriptCode Hans
        Han [501]
      • Hant

        public static final ScriptCode Hant
        Han [502]
      • Hebr

        public static final ScriptCode Hebr
        Hebrew [125]
      • Hira

        public static final ScriptCode Hira
        Hiragana [410]
      • Hluw

        public static final ScriptCode Hluw
        Anatolian Hieroglyphs [080]
      • Hmng

        public static final ScriptCode Hmng
        Pahawh Hmong [450]
      • Hrkt

        public static final ScriptCode Hrkt
        Japanese syllabaries [412]
      • Hung

        public static final ScriptCode Hung
        Old Hungarian [176]
      • Inds

        public static final ScriptCode Inds
        Indus [610]
      • Ital

        public static final ScriptCode Ital
        Old Italic [210]
      • Java

        public static final ScriptCode Java
        Javanese [361]
      • Jpan

        public static final ScriptCode Jpan
        Japanese [413]
      • Jurc

        public static final ScriptCode Jurc
        Jurchen [510]
      • Kali

        public static final ScriptCode Kali
        Kayah Li [357]
      • Kana

        public static final ScriptCode Kana
        Katakana [411]
      • Khar

        public static final ScriptCode Khar
        Kharoshthi [305]
      • Khmr

        public static final ScriptCode Khmr
        Khmer [355]
      • Khoj

        public static final ScriptCode Khoj
        Khojki [322]
      • Knda

        public static final ScriptCode Knda
        Kannada [345]
      • Kore

        public static final ScriptCode Kore
        Korean [287]
      • Kpel

        public static final ScriptCode Kpel
        Kpelle [436]
      • Kthi

        public static final ScriptCode Kthi
        Kaithi [317]
      • Lana

        public static final ScriptCode Lana
        Tai Tham [351]
      • Laoo

        public static final ScriptCode Laoo
        Lao [356]
      • Latf

        public static final ScriptCode Latf
        Latin [217]
      • Latg

        public static final ScriptCode Latg
        Latin [216]
      • Latn

        public static final ScriptCode Latn
        Latin [215]
      • Lepc

        public static final ScriptCode Lepc
        Lepcha [335]
      • Limb

        public static final ScriptCode Limb
        Limbu [336]
      • Lina

        public static final ScriptCode Lina
        Linear A [400]
      • Linb

        public static final ScriptCode Linb
        Linear B [401]
      • Lisu

        public static final ScriptCode Lisu
        Lisu [399]
      • Loma

        public static final ScriptCode Loma
        Loma [437]
      • Lyci

        public static final ScriptCode Lyci
        Lycian [202]
      • Lydi

        public static final ScriptCode Lydi
        Lydian [116]
      • Mahj

        public static final ScriptCode Mahj
        Mahajani [314]
      • Mand

        public static final ScriptCode Mand
        Mandaic, Mandaean [140]
      • Mani

        public static final ScriptCode Mani
        Manichaean [139]
      • Maya

        public static final ScriptCode Maya
        Mayan hieroglyphs [090]
      • Mend

        public static final ScriptCode Mend
        Mende [438]
      • Merc

        public static final ScriptCode Merc
        Meroitic Cursive [101]
      • Mero

        public static final ScriptCode Mero
        Meroitic Hieroglyphs [100]
      • Mlym

        public static final ScriptCode Mlym
        Malayalam [347]
      • Moon

        public static final ScriptCode Moon
        Moon [218]
      • Mong

        public static final ScriptCode Mong
        Mongolian [145]
      • Mroo

        public static final ScriptCode Mroo
        Mro, Mru [199]
      • Mtei

        public static final ScriptCode Mtei
        Meitei Mayek [337]
      • Mymr

        public static final ScriptCode Mymr
        Myanmar [350]
      • Narb

        public static final ScriptCode Narb
        Old North Arabian [106]
      • Nbat

        public static final ScriptCode Nbat
        Nabataean [159]
      • Nkgb

        public static final ScriptCode Nkgb
        Nakhi Geba [420]
      • Nkoo

        public static final ScriptCode Nkoo
        N’Ko [165]
      • Nshu

        public static final ScriptCode Nshu
        Nushu [499]
      • Ogam

        public static final ScriptCode Ogam
        Ogham [212]
      • Olck

        public static final ScriptCode Olck
        Ol Chiki [261]
      • Orkh

        public static final ScriptCode Orkh
        Old Turkic, Orkhon Runic [175]
      • Orya

        public static final ScriptCode Orya
        Oriya [327]
      • Osma

        public static final ScriptCode Osma
        Osmanya [260]
      • Palm

        public static final ScriptCode Palm
        Palmyrene [126]
      • Perm

        public static final ScriptCode Perm
        Old Permic [227]
      • Phag

        public static final ScriptCode Phag
        Phags-pa [331]
      • Phli

        public static final ScriptCode Phli
        Inscriptional Pahlavi [131]
      • Phlp

        public static final ScriptCode Phlp
        Psalter Pahlavi [132]
      • Phlv

        public static final ScriptCode Phlv
        Book Pahlavi [133]
      • Phnx

        public static final ScriptCode Phnx
        Phoenician [115]
      • Plrd

        public static final ScriptCode Plrd
        Miao [282]
      • Prti

        public static final ScriptCode Prti
        Inscriptional Parthian [130]
      • Qaaa

        public static final ScriptCode Qaaa
        Reserved for private use [900]
      • Qabx

        public static final ScriptCode Qabx
        Reserved for private use [949]
      • Rjng

        public static final ScriptCode Rjng
        Rejang [363]
      • Roro

        public static final ScriptCode Roro
        Rongorongo [620]
      • Runr

        public static final ScriptCode Runr
        Runic [211]
      • Samr

        public static final ScriptCode Samr
        Samaritan [123]
      • Sara

        public static final ScriptCode Sara
        Sarati [292]
      • Sarb

        public static final ScriptCode Sarb
        Old South Arabian [105]
      • Saur

        public static final ScriptCode Saur
        Saurashtra [344]
      • Sgnw

        public static final ScriptCode Sgnw
        SignWriting [095]
      • Shaw

        public static final ScriptCode Shaw
        Shavian [281]
      • Shrd

        public static final ScriptCode Shrd
        Sharada [319]
      • Sind

        public static final ScriptCode Sind
        Khudawadi, Sindhi [318]
      • Sinh

        public static final ScriptCode Sinh
        Sinhala [348]
      • Sora

        public static final ScriptCode Sora
        Sora Sompeng [398]
      • Sund

        public static final ScriptCode Sund
        Sundanese [362]
      • Sylo

        public static final ScriptCode Sylo
        Syloti Nagri [316]
      • Syrc

        public static final ScriptCode Syrc
        Syriac [135]
      • Syre

        public static final ScriptCode Syre
        Syriac [138]
      • Syrj

        public static final ScriptCode Syrj
        Syriac [137]
      • Syrn

        public static final ScriptCode Syrn
        Syriac [136]
      • Tagb

        public static final ScriptCode Tagb
        Tagbanwa [373]
      • Takr

        public static final ScriptCode Takr
        Takri [321]
      • Tale

        public static final ScriptCode Tale
        Tai Le [353]
      • Talu

        public static final ScriptCode Talu
        New Tai Lue [354]
      • Taml

        public static final ScriptCode Taml
        Tamil [346]
      • Tang

        public static final ScriptCode Tang
        Tangut [520]
      • Tavt

        public static final ScriptCode Tavt
        Tai Viet [359]
      • Telu

        public static final ScriptCode Telu
        Telugu [340]
      • Teng

        public static final ScriptCode Teng
        Tengwar [290]
      • Tfng

        public static final ScriptCode Tfng
        Tifinagh [120]
      • Tglg

        public static final ScriptCode Tglg
        Tagalog [370]
      • Thaa

        public static final ScriptCode Thaa
        Thaana [170]
      • Thai

        public static final ScriptCode Thai
        Thai [352]
      • Tibt

        public static final ScriptCode Tibt
        Tibetan [330]
      • Tirh

        public static final ScriptCode Tirh
        Tirhuta [326]
      • Ugar

        public static final ScriptCode Ugar
        Ugaritic [040]
      • Vaii

        public static final ScriptCode Vaii
        Vai [470]
      • Visp

        public static final ScriptCode Visp
        Visible Speech [280]
      • Wara

        public static final ScriptCode Wara
        Warang Citi [262]
      • Wole

        public static final ScriptCode Wole
        Woleai [480]
      • Xpeo

        public static final ScriptCode Xpeo
        Old Persian [030]
      • Xsux

        public static final ScriptCode Xsux
        Cuneiform, Sumero-Akkadian [020]
      • Yiii

        public static final ScriptCode Yiii
        Yi [460]
      • Zinh

        public static final ScriptCode Zinh
        Code for inherited script [994]
      • Zmth

        public static final ScriptCode Zmth
        Mathematical notation [995]
      • Zsym

        public static final ScriptCode Zsym
        Symbols [996]
      • Zxxx

        public static final ScriptCode Zxxx
        Code for unwritten documents [997]
      • Zyyy

        public static final ScriptCode Zyyy
        Code for undetermined script [998]
      • Zzzz

        public static final ScriptCode Zzzz
        Code for uncoded script [999]
    • Field Detail

      • numericMap

        private static final java.util.Map<java.lang.Integer,​ScriptCode> numericMap
        Map to look up ScriptCode by numeric code.
      • numeric

        private final int numeric
        The numeric code of this script code.
      • name

        private final java.lang.String name
        English name of this script code.
    • Constructor Detail

      • ScriptCode

        private ScriptCode​(int numeric,
                           java.lang.String name)
        Constructor.
    • Method Detail

      • values

        public static ScriptCode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ScriptCode c : ScriptCode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ScriptCode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumeric

        public int getNumeric()
        Get the numeric code of this script code.
        Returns:
        Numeric code.
      • getName

        public java.lang.String getName()
        Get English name of this script code.
        Returns:
        English name.
      • getByCode

        public static ScriptCode getByCode​(java.lang.String code)
        Get a ScriptCode instance that corresponds to the given ISO 15924 alpha-4 code.

        This method calls getByCode(code, true). Note that the behavior has changed since the version 1.13. In the older versions, this method was an alias of getByCode(code, false).

        Parameters:
        code - ISO 15924 alpha-4 code. Or "Undefined" (case sensitive).
        Returns:
        A ScriptCode instance, or null if not found.
      • getByCodeIgnoreCase

        public static ScriptCode getByCodeIgnoreCase​(java.lang.String code)
        Get a ScriptCode instance that corresponds to the given ISO 15924 alpha-4 code.

        This method calls getByCode(code, false).

        Parameters:
        code - ISO 15924 alpha-4 code. Or "Undefined" (case insensitive).
        Returns:
        A ScriptCode instance, or null if not found.
        Since:
        1.13
      • getByCode

        public static ScriptCode getByCode​(java.lang.String code,
                                           boolean caseSensitive)
        Get a ScriptCode instance that corresponds to the given ISO 15924 alpha-4 code.
        Parameters:
        code - ISO 15924 alpha-4 code. Or "Undefined" (its case sensitivity depends on the value of caseSensitive).
        caseSensitive - If true, the first letter of the given code should be capital and the other letters should be small. If false, whether letters are capital or small does not matter. For example, getByCode("JPAN", true) returns null but getByCode("JPAN", false) returns Jpan.
        Returns:
        A ScriptCode instance, or null if not found.
      • getByCode

        public static ScriptCode getByCode​(int code)
        Get a ScriptCode instance that corresponds to the given ISO 15924 numeric code.
        Parameters:
        code - ISO 15924 numeric code.
        Returns:
        A ScriptCode instance, or null if not found. If 0 or a negative value is given, null is returned.
      • canonicalize

        private static java.lang.String canonicalize​(java.lang.String code,
                                                     boolean caseSensitive)
      • findByName

        public static java.util.List<ScriptCode> findByName​(java.lang.String regex)
        Get a list of ScriptCode by a name regular expression.

        This method is almost equivalent to findByName(Pattern.compile(regex)).

        Parameters:
        regex - Regular expression for names.
        Returns:
        List of ScriptCode. If nothing has matched, an empty list is returned.
        Throws:
        java.lang.IllegalArgumentException - regex is null.
        java.util.regex.PatternSyntaxException - regex failed to be compiled.
        Since:
        1.11
      • findByName

        public static java.util.List<ScriptCode> findByName​(java.util.regex.Pattern pattern)
        Get a list of ScriptCode by a name pattern.

        For example, the list obtained by the code snippet below:

         Pattern pattern = Pattern.compile("Egyptian.*");
         List<ScriptCode> list = ScriptCode.findByName(pattern);

        contains 3 ScriptCodes as listed below.

        1. Egyd : Egyptian demotic
        2. Egyh : Egyptian hieratic
        3. Egyp : Egyptian hieroglyps
        Parameters:
        pattern - Pattern to match names.
        Returns:
        List of ScriptCode. If nothing has matched, an empty list is returned.
        Throws:
        java.lang.IllegalArgumentException - pattern is null.
        Since:
        1.11