#![allow(clippy::all)]
#![allow(unreachable_patterns)]
#![allow(dead_code)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[repr(u8)]
pub enum Script {
Adlam,
Ahom,
AnatolianHieroglyphs,
Arabic,
Armenian,
Avestan,
Balinese,
Bamum,
BassaVah,
Batak,
Bengali,
BeriaErfe,
Bhaiksuki,
Bopomofo,
Brahmi,
Braille,
Buginese,
Buhid,
CanadianAboriginal,
Carian,
CaucasianAlbanian,
Chakma,
Cham,
Cherokee,
Chorasmian,
Common,
Coptic,
Cuneiform,
Cypriot,
CyproMinoan,
Cyrillic,
Deseret,
Devanagari,
DivesAkuru,
Dogra,
Duployan,
EgyptianHieroglyphs,
Elbasan,
Elymaic,
Ethiopic,
Garay,
Georgian,
Glagolitic,
Gothic,
Grantha,
Greek,
Gujarati,
GunjalaGondi,
Gurmukhi,
GurungKhema,
Han,
Hangul,
HanifiRohingya,
Hanunoo,
Hatran,
Hebrew,
Hiragana,
ImperialAramaic,
Inherited,
InscriptionalPahlavi,
InscriptionalParthian,
Javanese,
Kaithi,
Kannada,
Katakana,
Kawi,
KayahLi,
Kharoshthi,
KhitanSmallScript,
Khmer,
Khojki,
Khudawadi,
KiratRai,
Lao,
Latin,
Lepcha,
Limbu,
LinearA,
LinearB,
Lisu,
Lycian,
Lydian,
Mahajani,
Makasar,
Malayalam,
Mandaic,
Manichaean,
Marchen,
MasaramGondi,
Medefaidrin,
MeeteiMayek,
MendeKikakui,
MeroiticCursive,
MeroiticHieroglyphs,
Miao,
Modi,
Mongolian,
Mro,
Multani,
Myanmar,
Nabataean,
NagMundari,
Nandinagari,
NewTaiLue,
Newa,
Nko,
Nushu,
NyiakengPuachueHmong,
Ogham,
OlChiki,
OlOnal,
OldHungarian,
OldItalic,
OldNorthArabian,
OldPermic,
OldPersian,
OldSogdian,
OldSouthArabian,
OldTurkic,
OldUyghur,
Oriya,
Osage,
Osmanya,
PahawhHmong,
Palmyrene,
PauCinHau,
PhagsPa,
Phoenician,
PsalterPahlavi,
Rejang,
Runic,
Samaritan,
Saurashtra,
Sharada,
Shavian,
Siddham,
Sidetic,
SignWriting,
Sinhala,
Sogdian,
SoraSompeng,
Soyombo,
Sundanese,
Sunuwar,
SylotiNagri,
Syriac,
Tagalog,
Tagbanwa,
TaiLe,
TaiTham,
TaiViet,
TaiYo,
Takri,
Tamil,
Tangsa,
Tangut,
Telugu,
Thaana,
Thai,
Tibetan,
Tifinagh,
Tirhuta,
Todhri,
TolongSiki,
Toto,
TuluTigalari,
Ugaritic,
Vai,
Vithkuqi,
Wancho,
WarangCiti,
Yezidi,
Yi,
ZanabazarSquare,
Unknown,
}
impl Script {
#[must_use]
pub const fn long_name(self) -> &'static str {
match self {
Script::Adlam => "Adlam",
Script::Ahom => "Ahom",
Script::AnatolianHieroglyphs => "Anatolian_Hieroglyphs",
Script::Arabic => "Arabic",
Script::Armenian => "Armenian",
Script::Avestan => "Avestan",
Script::Balinese => "Balinese",
Script::Bamum => "Bamum",
Script::BassaVah => "Bassa_Vah",
Script::Batak => "Batak",
Script::Bengali => "Bengali",
Script::BeriaErfe => "Beria_Erfe",
Script::Bhaiksuki => "Bhaiksuki",
Script::Bopomofo => "Bopomofo",
Script::Brahmi => "Brahmi",
Script::Braille => "Braille",
Script::Buginese => "Buginese",
Script::Buhid => "Buhid",
Script::CanadianAboriginal => "Canadian_Aboriginal",
Script::Carian => "Carian",
Script::CaucasianAlbanian => "Caucasian_Albanian",
Script::Chakma => "Chakma",
Script::Cham => "Cham",
Script::Cherokee => "Cherokee",
Script::Chorasmian => "Chorasmian",
Script::Common => "Common",
Script::Coptic => "Coptic",
Script::Cuneiform => "Cuneiform",
Script::Cypriot => "Cypriot",
Script::CyproMinoan => "Cypro_Minoan",
Script::Cyrillic => "Cyrillic",
Script::Deseret => "Deseret",
Script::Devanagari => "Devanagari",
Script::DivesAkuru => "Dives_Akuru",
Script::Dogra => "Dogra",
Script::Duployan => "Duployan",
Script::EgyptianHieroglyphs => "Egyptian_Hieroglyphs",
Script::Elbasan => "Elbasan",
Script::Elymaic => "Elymaic",
Script::Ethiopic => "Ethiopic",
Script::Garay => "Garay",
Script::Georgian => "Georgian",
Script::Glagolitic => "Glagolitic",
Script::Gothic => "Gothic",
Script::Grantha => "Grantha",
Script::Greek => "Greek",
Script::Gujarati => "Gujarati",
Script::GunjalaGondi => "Gunjala_Gondi",
Script::Gurmukhi => "Gurmukhi",
Script::GurungKhema => "Gurung_Khema",
Script::Han => "Han",
Script::Hangul => "Hangul",
Script::HanifiRohingya => "Hanifi_Rohingya",
Script::Hanunoo => "Hanunoo",
Script::Hatran => "Hatran",
Script::Hebrew => "Hebrew",
Script::Hiragana => "Hiragana",
Script::ImperialAramaic => "Imperial_Aramaic",
Script::Inherited => "Inherited",
Script::InscriptionalPahlavi => "Inscriptional_Pahlavi",
Script::InscriptionalParthian => "Inscriptional_Parthian",
Script::Javanese => "Javanese",
Script::Kaithi => "Kaithi",
Script::Kannada => "Kannada",
Script::Katakana => "Katakana",
Script::Kawi => "Kawi",
Script::KayahLi => "Kayah_Li",
Script::Kharoshthi => "Kharoshthi",
Script::KhitanSmallScript => "Khitan_Small_Script",
Script::Khmer => "Khmer",
Script::Khojki => "Khojki",
Script::Khudawadi => "Khudawadi",
Script::KiratRai => "Kirat_Rai",
Script::Lao => "Lao",
Script::Latin => "Latin",
Script::Lepcha => "Lepcha",
Script::Limbu => "Limbu",
Script::LinearA => "Linear_A",
Script::LinearB => "Linear_B",
Script::Lisu => "Lisu",
Script::Lycian => "Lycian",
Script::Lydian => "Lydian",
Script::Mahajani => "Mahajani",
Script::Makasar => "Makasar",
Script::Malayalam => "Malayalam",
Script::Mandaic => "Mandaic",
Script::Manichaean => "Manichaean",
Script::Marchen => "Marchen",
Script::MasaramGondi => "Masaram_Gondi",
Script::Medefaidrin => "Medefaidrin",
Script::MeeteiMayek => "Meetei_Mayek",
Script::MendeKikakui => "Mende_Kikakui",
Script::MeroiticCursive => "Meroitic_Cursive",
Script::MeroiticHieroglyphs => "Meroitic_Hieroglyphs",
Script::Miao => "Miao",
Script::Modi => "Modi",
Script::Mongolian => "Mongolian",
Script::Mro => "Mro",
Script::Multani => "Multani",
Script::Myanmar => "Myanmar",
Script::Nabataean => "Nabataean",
Script::NagMundari => "Nag_Mundari",
Script::Nandinagari => "Nandinagari",
Script::NewTaiLue => "New_Tai_Lue",
Script::Newa => "Newa",
Script::Nko => "Nko",
Script::Nushu => "Nushu",
Script::NyiakengPuachueHmong => "Nyiakeng_Puachue_Hmong",
Script::Ogham => "Ogham",
Script::OlChiki => "Ol_Chiki",
Script::OlOnal => "Ol_Onal",
Script::OldHungarian => "Old_Hungarian",
Script::OldItalic => "Old_Italic",
Script::OldNorthArabian => "Old_North_Arabian",
Script::OldPermic => "Old_Permic",
Script::OldPersian => "Old_Persian",
Script::OldSogdian => "Old_Sogdian",
Script::OldSouthArabian => "Old_South_Arabian",
Script::OldTurkic => "Old_Turkic",
Script::OldUyghur => "Old_Uyghur",
Script::Oriya => "Oriya",
Script::Osage => "Osage",
Script::Osmanya => "Osmanya",
Script::PahawhHmong => "Pahawh_Hmong",
Script::Palmyrene => "Palmyrene",
Script::PauCinHau => "Pau_Cin_Hau",
Script::PhagsPa => "Phags_Pa",
Script::Phoenician => "Phoenician",
Script::PsalterPahlavi => "Psalter_Pahlavi",
Script::Rejang => "Rejang",
Script::Runic => "Runic",
Script::Samaritan => "Samaritan",
Script::Saurashtra => "Saurashtra",
Script::Sharada => "Sharada",
Script::Shavian => "Shavian",
Script::Siddham => "Siddham",
Script::Sidetic => "Sidetic",
Script::SignWriting => "SignWriting",
Script::Sinhala => "Sinhala",
Script::Sogdian => "Sogdian",
Script::SoraSompeng => "Sora_Sompeng",
Script::Soyombo => "Soyombo",
Script::Sundanese => "Sundanese",
Script::Sunuwar => "Sunuwar",
Script::SylotiNagri => "Syloti_Nagri",
Script::Syriac => "Syriac",
Script::Tagalog => "Tagalog",
Script::Tagbanwa => "Tagbanwa",
Script::TaiLe => "Tai_Le",
Script::TaiTham => "Tai_Tham",
Script::TaiViet => "Tai_Viet",
Script::TaiYo => "Tai_Yo",
Script::Takri => "Takri",
Script::Tamil => "Tamil",
Script::Tangsa => "Tangsa",
Script::Tangut => "Tangut",
Script::Telugu => "Telugu",
Script::Thaana => "Thaana",
Script::Thai => "Thai",
Script::Tibetan => "Tibetan",
Script::Tifinagh => "Tifinagh",
Script::Tirhuta => "Tirhuta",
Script::Todhri => "Todhri",
Script::TolongSiki => "Tolong_Siki",
Script::Toto => "Toto",
Script::TuluTigalari => "Tulu_Tigalari",
Script::Ugaritic => "Ugaritic",
Script::Vai => "Vai",
Script::Vithkuqi => "Vithkuqi",
Script::Wancho => "Wancho",
Script::WarangCiti => "Warang_Citi",
Script::Yezidi => "Yezidi",
Script::Yi => "Yi",
Script::ZanabazarSquare => "Zanabazar_Square",
Script::Unknown => "Unknown",
}
}
}
const SCX_0: &[Script] = &[
Script::Avestan,
Script::Carian,
Script::Coptic,
Script::Duployan,
Script::Elbasan,
Script::Georgian,
Script::Glagolitic,
Script::Gothic,
Script::Greek,
Script::GunjalaGondi,
Script::Han,
Script::Latin,
Script::Lydian,
Script::Mahajani,
Script::OldPermic,
Script::Shavian,
];
const SCX_1: &[Script] = &[
Script::Bengali,
Script::Cyrillic,
Script::Devanagari,
Script::Latin,
Script::Lisu,
Script::Thai,
Script::Toto,
];
const SCX_2: &[Script] = &[Script::Bopomofo, Script::Latin];
const SCX_3: &[Script] = &[Script::Latin, Script::Lisu];
const SCX_4: &[Script] = &[Script::Latin, Script::Thai];
const SCX_5: &[Script] = &[
Script::Cherokee,
Script::Coptic,
Script::Cyrillic,
Script::Greek,
Script::Latin,
Script::OldPermic,
Script::Sunuwar,
Script::TaiLe,
];
const SCX_6: &[Script] = &[
Script::Cherokee,
Script::Cyrillic,
Script::Greek,
Script::Latin,
Script::Osage,
Script::Sunuwar,
Script::TaiLe,
Script::Todhri,
];
const SCX_7: &[Script] = &[
Script::Cherokee,
Script::Cyrillic,
Script::Latin,
Script::Tifinagh,
];
const SCX_8: &[Script] = &[
Script::Glagolitic,
Script::Latin,
Script::Sunuwar,
Script::Syriac,
Script::Thai,
];
const SCX_9: &[Script] = &[
Script::CaucasianAlbanian,
Script::Cherokee,
Script::Coptic,
Script::Cyrillic,
Script::Gothic,
Script::Greek,
Script::Latin,
Script::Osage,
Script::Syriac,
Script::Tifinagh,
Script::Todhri,
];
const SCX_10: &[Script] = &[
Script::Coptic,
Script::Elbasan,
Script::Glagolitic,
Script::Gothic,
Script::Katakana,
Script::Latin,
];
const SCX_11: &[Script] = &[
Script::Cyrillic,
Script::Greek,
Script::Latin,
Script::OldPermic,
Script::Tifinagh,
];
const SCX_12: &[Script] = &[
Script::Coptic,
Script::Duployan,
Script::Hebrew,
Script::Latin,
Script::OldPermic,
Script::Syriac,
Script::TaiLe,
Script::Tifinagh,
Script::Todhri,
];
const SCX_13: &[Script] = &[
Script::Armenian,
Script::Cyrillic,
Script::Duployan,
Script::Gothic,
Script::Greek,
Script::Hebrew,
Script::Latin,
Script::OldPermic,
Script::Syriac,
Script::TaiLe,
Script::Tifinagh,
];
const SCX_14: &[Script] = &[Script::Latin, Script::Tifinagh];
const SCX_15: &[Script] = &[Script::Duployan, Script::Latin, Script::Syriac];
const SCX_16: &[Script] = &[
Script::Cherokee,
Script::Cyrillic,
Script::Latin,
Script::Osage,
];
const SCX_17: &[Script] = &[Script::Cherokee, Script::Latin, Script::TaiLe];
const SCX_18: &[Script] = &[Script::Latin, Script::Sunuwar];
const SCX_19: &[Script] = &[Script::Ethiopic, Script::Latin];
const SCX_20: &[Script] = &[Script::Cyrillic, Script::Latin, Script::Todhri];
const SCX_21: &[Script] = &[
Script::Greek,
Script::Latin,
Script::OldPermic,
Script::Todhri,
];
const SCX_22: &[Script] = &[
Script::Cherokee,
Script::Duployan,
Script::Katakana,
Script::Latin,
Script::Syriac,
Script::Tifinagh,
];
const SCX_23: &[Script] = &[
Script::Cherokee,
Script::Duployan,
Script::Latin,
Script::Syriac,
];
const SCX_24: &[Script] = &[Script::Latin, Script::Syriac];
const SCX_25: &[Script] = &[Script::Latin, Script::Sunuwar, Script::Syriac];
const SCX_26: &[Script] = &[Script::Cherokee, Script::Latin, Script::Syriac];
const SCX_27: &[Script] = &[
Script::CaucasianAlbanian,
Script::Cherokee,
Script::Gothic,
Script::Latin,
Script::Sunuwar,
Script::Syriac,
Script::Thai,
];
const SCX_28: &[Script] = &[Script::Greek];
const SCX_29: &[Script] = &[Script::Latin, Script::Osage];
const SCX_30: &[Script] = &[Script::CaucasianAlbanian, Script::Latin, Script::Todhri];
const SCX_31: &[Script] = &[Script::Latin];
const SCX_32: &[Script] = &[Script::Coptic, Script::Greek];
const SCX_33: &[Script] = &[Script::Cyrillic, Script::OldPermic];
const SCX_34: &[Script] = &[Script::Cyrillic, Script::Glagolitic];
const SCX_35: &[Script] = &[Script::Cyrillic, Script::Latin];
const SCX_36: &[Script] = &[Script::Armenian, Script::Georgian, Script::Glagolitic];
const SCX_37: &[Script] = &[
Script::Arabic,
Script::Garay,
Script::HanifiRohingya,
Script::Nko,
Script::Syriac,
Script::Thaana,
Script::Yezidi,
];
const SCX_38: &[Script] = &[Script::Arabic, Script::Syriac, Script::Thaana];
const SCX_39: &[Script] = &[
Script::Adlam,
Script::Arabic,
Script::Garay,
Script::HanifiRohingya,
Script::Nko,
Script::Syriac,
Script::Thaana,
Script::Yezidi,
];
const SCX_40: &[Script] = &[
Script::Adlam,
Script::Arabic,
Script::HanifiRohingya,
Script::Mandaic,
Script::Manichaean,
Script::OldUyghur,
Script::PsalterPahlavi,
Script::Sogdian,
Script::Syriac,
];
const SCX_41: &[Script] = &[Script::Arabic, Script::Syriac];
const SCX_42: &[Script] = &[Script::Arabic, Script::Thaana, Script::Yezidi];
const SCX_43: &[Script] = &[Script::Arabic, Script::HanifiRohingya];
const SCX_44: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Grantha,
Script::Gujarati,
Script::Gurmukhi,
Script::Kannada,
Script::Latin,
Script::Malayalam,
Script::Nandinagari,
Script::Newa,
Script::Oriya,
Script::Sharada,
Script::Tamil,
Script::Telugu,
Script::Tirhuta,
];
const SCX_45: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Grantha,
Script::Gujarati,
Script::Gurmukhi,
Script::Kannada,
Script::Latin,
Script::Malayalam,
Script::Newa,
Script::Oriya,
Script::Tamil,
Script::Telugu,
Script::Tirhuta,
];
const SCX_46: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Dogra,
Script::Grantha,
Script::Gujarati,
Script::GunjalaGondi,
Script::Gurmukhi,
Script::Kannada,
Script::Khudawadi,
Script::Mahajani,
Script::Malayalam,
Script::MasaramGondi,
Script::Nandinagari,
Script::OlOnal,
Script::Oriya,
Script::Sinhala,
Script::SylotiNagri,
Script::Takri,
Script::Tamil,
Script::Telugu,
Script::Tirhuta,
];
const SCX_47: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Dogra,
Script::Grantha,
Script::Gujarati,
Script::GunjalaGondi,
Script::Gurmukhi,
Script::GurungKhema,
Script::Kannada,
Script::Khudawadi,
Script::Limbu,
Script::Mahajani,
Script::Malayalam,
Script::MasaramGondi,
Script::Nandinagari,
Script::OlOnal,
Script::Oriya,
Script::Sinhala,
Script::SylotiNagri,
Script::Takri,
Script::Tamil,
Script::Telugu,
Script::Tirhuta,
];
const SCX_48: &[Script] = &[
Script::Devanagari,
Script::Dogra,
Script::Kaithi,
Script::Mahajani,
];
const SCX_49: &[Script] = &[Script::Bengali, Script::Chakma, Script::SylotiNagri];
const SCX_50: &[Script] = &[Script::Gurmukhi, Script::Multani];
const SCX_51: &[Script] = &[Script::Gujarati, Script::Khojki];
const SCX_52: &[Script] = &[Script::Grantha, Script::Tamil];
const SCX_53: &[Script] = &[Script::Kannada, Script::Nandinagari, Script::TuluTigalari];
const SCX_54: &[Script] = &[Script::Chakma, Script::Myanmar, Script::TaiLe];
const SCX_55: &[Script] = &[Script::Georgian, Script::Glagolitic, Script::Latin];
const SCX_56: &[Script] = &[Script::Runic];
const SCX_57: &[Script] = &[
Script::Buhid,
Script::Hanunoo,
Script::Tagalog,
Script::Tagbanwa,
];
const SCX_58: &[Script] = &[Script::Mongolian, Script::PhagsPa];
const SCX_59: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Grantha,
Script::Kannada,
];
const SCX_60: &[Script] = &[Script::Devanagari];
const SCX_61: &[Script] = &[Script::Devanagari, Script::Grantha, Script::Kannada];
const SCX_62: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Newa,
Script::Telugu,
Script::Tirhuta,
];
const SCX_63: &[Script] = &[Script::Bengali, Script::Devanagari, Script::Telugu];
const SCX_64: &[Script] = &[Script::Devanagari, Script::Newa, Script::Sharada];
const SCX_65: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Newa,
Script::Telugu,
];
const SCX_66: &[Script] = &[Script::Devanagari, Script::Sharada];
const SCX_67: &[Script] = &[
Script::Devanagari,
Script::Kannada,
Script::Malayalam,
Script::Oriya,
Script::Tamil,
Script::Telugu,
];
const SCX_68: &[Script] = &[Script::Bengali, Script::Devanagari];
const SCX_69: &[Script] = &[Script::Devanagari, Script::Newa, Script::Tirhuta];
const SCX_70: &[Script] = &[Script::Devanagari, Script::Nandinagari, Script::Newa];
const SCX_71: &[Script] = &[Script::Bengali, Script::Devanagari, Script::Sharada];
const SCX_72: &[Script] = &[Script::Devanagari, Script::Newa];
const SCX_73: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Newa,
Script::Sharada,
];
const SCX_74: &[Script] = &[
Script::Bengali,
Script::Devanagari,
Script::Grantha,
Script::Kannada,
Script::Malayalam,
Script::Nandinagari,
Script::Oriya,
Script::Sinhala,
Script::Telugu,
Script::Tirhuta,
Script::TuluTigalari,
];
const SCX_75: &[Script] = &[Script::Devanagari, Script::Grantha];
const SCX_76: &[Script] = &[
Script::Devanagari,
Script::Grantha,
Script::Kannada,
Script::TuluTigalari,
];
const SCX_77: &[Script] = &[Script::Bengali];
const SCX_78: &[Script] = &[Script::Nandinagari];
const SCX_79: &[Script] = &[Script::Cyrillic, Script::Latin, Script::Syriac];
const SCX_80: &[Script] = &[Script::Syriac];
const SCX_81: &[Script] = &[Script::Latin, Script::Mongolian, Script::PhagsPa];
const SCX_82: &[Script] = &[Script::Adlam, Script::Arabic];
const SCX_83: &[Script] = &[
Script::Carian,
Script::Georgian,
Script::Glagolitic,
Script::Lycian,
Script::OldHungarian,
Script::OldTurkic,
];
const SCX_84: &[Script] = &[
Script::Carian,
Script::Greek,
Script::MeroiticHieroglyphs,
Script::OldHungarian,
];
const SCX_85: &[Script] = &[Script::Devanagari, Script::Grantha, Script::Latin];
const SCX_86: &[Script] = &[Script::Coptic, Script::Latin];
const SCX_87: &[Script] = &[Script::Avestan, Script::OldTurkic];
const SCX_88: &[Script] = &[
Script::Avestan,
Script::Carian,
Script::Georgian,
Script::Kaithi,
Script::Lydian,
Script::OldHungarian,
Script::Samaritan,
];
const SCX_89: &[Script] = &[Script::Duployan];
const SCX_90: &[Script] = &[Script::Adlam, Script::Arabic, Script::OldHungarian];
const SCX_91: &[Script] = &[Script::Han, Script::Tangut];
const SCX_92: &[Script] = &[
Script::Bopomofo,
Script::Han,
Script::Hangul,
Script::Hiragana,
Script::Katakana,
Script::Mongolian,
Script::Yi,
];
const SCX_93: &[Script] = &[
Script::Bopomofo,
Script::Han,
Script::Hangul,
Script::Hiragana,
Script::Katakana,
Script::Mongolian,
Script::PhagsPa,
Script::Yi,
];
const SCX_94: &[Script] = &[
Script::Bopomofo,
Script::Han,
Script::Hangul,
Script::Hiragana,
Script::Katakana,
];
const SCX_95: &[Script] = &[Script::Han];
const SCX_96: &[Script] = &[
Script::Bopomofo,
Script::Han,
Script::Hangul,
Script::Hiragana,
Script::Katakana,
Script::Mongolian,
Script::Tibetan,
Script::Yi,
];
const SCX_97: &[Script] = &[
Script::Bopomofo,
Script::Han,
Script::Hangul,
Script::Hiragana,
Script::Katakana,
Script::Lisu,
Script::Mongolian,
Script::Tibetan,
Script::Yi,
];
const SCX_98: &[Script] = &[
Script::Bopomofo,
Script::Han,
Script::Hangul,
Script::Hiragana,
Script::Katakana,
Script::Yi,
];
const SCX_99: &[Script] = &[Script::Bopomofo, Script::Han];
const SCX_100: &[Script] = &[Script::Hiragana, Script::Katakana];
const SCX_101: &[Script] = &[Script::Han, Script::Hiragana, Script::Katakana];
const SCX_102: &[Script] = &[Script::Han, Script::Latin];
const SCX_103: &[Script] = &[
Script::Devanagari,
Script::Dogra,
Script::Gujarati,
Script::Gurmukhi,
Script::Kaithi,
Script::Kannada,
Script::Khojki,
Script::Khudawadi,
Script::Mahajani,
Script::Malayalam,
Script::Modi,
Script::Nandinagari,
Script::Sharada,
Script::Takri,
Script::Tirhuta,
Script::TuluTigalari,
];
const SCX_104: &[Script] = &[
Script::Devanagari,
Script::Dogra,
Script::Gujarati,
Script::Gurmukhi,
Script::Kaithi,
Script::Kannada,
Script::Khojki,
Script::Khudawadi,
Script::Mahajani,
Script::Modi,
Script::Nandinagari,
Script::Sharada,
Script::Takri,
Script::Tirhuta,
Script::TuluTigalari,
];
const SCX_105: &[Script] = &[
Script::Devanagari,
Script::Dogra,
Script::Gujarati,
Script::Gurmukhi,
Script::Kaithi,
Script::Khojki,
Script::Khudawadi,
Script::Mahajani,
Script::Modi,
Script::Takri,
Script::Tirhuta,
];
const SCX_106: &[Script] = &[
Script::Devanagari,
Script::Dogra,
Script::Gujarati,
Script::Gurmukhi,
Script::Kaithi,
Script::Khojki,
Script::Khudawadi,
Script::Mahajani,
Script::Modi,
Script::Sharada,
Script::Takri,
Script::Tirhuta,
];
const SCX_107: &[Script] = &[Script::Bengali, Script::Devanagari, Script::TuluTigalari];
const SCX_108: &[Script] = &[Script::Devanagari, Script::Tamil];
const SCX_109: &[Script] = &[Script::KayahLi, Script::Latin, Script::Myanmar];
const SCX_110: &[Script] = &[Script::Buginese, Script::Javanese];
const SCX_111: &[Script] = &[Script::Arabic, Script::Nko];
const SCX_112: &[Script] = &[Script::Arabic, Script::Thaana];
const SCX_113: &[Script] = &[Script::Cypriot, Script::CyproMinoan, Script::LinearB];
const SCX_114: &[Script] = &[Script::Cypriot, Script::LinearB];
const SCX_115: &[Script] = &[Script::Cypriot, Script::LinearA, Script::LinearB];
const SCX_116: &[Script] = &[Script::Arabic, Script::Coptic];
const SCX_117: &[Script] = &[Script::Manichaean, Script::OldUyghur];
#[inline]
pub(crate) const fn script(cp: u32) -> Script {
match cp >> 8 {
#[cfg(feature = "ascii")]
0x000 => sc_p0(cp as u8),
#[cfg(feature = "bmp")]
0x001 => Script::Latin,
#[cfg(feature = "bmp")]
0x002 => sc_p2(cp as u8),
#[cfg(feature = "bmp")]
0x003 => sc_p3(cp as u8),
#[cfg(feature = "bmp")]
0x004 => sc_p4(cp as u8),
#[cfg(feature = "bmp")]
0x005 => sc_p5(cp as u8),
#[cfg(feature = "bmp")]
0x006 => sc_p6(cp as u8),
#[cfg(feature = "bmp")]
0x007 => sc_p7(cp as u8),
#[cfg(feature = "bmp")]
0x008 => sc_p8(cp as u8),
#[cfg(feature = "bmp")]
0x009 => sc_p9(cp as u8),
#[cfg(feature = "bmp")]
0x00a => sc_pa(cp as u8),
#[cfg(feature = "bmp")]
0x00b => sc_pb(cp as u8),
#[cfg(feature = "bmp")]
0x00c => sc_pc(cp as u8),
#[cfg(feature = "bmp")]
0x00d => sc_pd(cp as u8),
#[cfg(feature = "bmp")]
0x00e => sc_pe(cp as u8),
#[cfg(feature = "bmp")]
0x00f => sc_pf(cp as u8),
#[cfg(feature = "bmp")]
0x010 => sc_p10(cp as u8),
#[cfg(feature = "bmp")]
0x011 => Script::Hangul,
#[cfg(feature = "bmp")]
0x012 => sc_p12(cp as u8),
#[cfg(feature = "bmp")]
0x013 => sc_p13(cp as u8),
#[cfg(feature = "bmp")]
0x014 => Script::CanadianAboriginal,
#[cfg(feature = "bmp")]
0x015 => Script::CanadianAboriginal,
#[cfg(feature = "bmp")]
0x016 => sc_p16(cp as u8),
#[cfg(feature = "bmp")]
0x017 => sc_p17(cp as u8),
#[cfg(feature = "bmp")]
0x018 => sc_p18(cp as u8),
#[cfg(feature = "bmp")]
0x019 => sc_p19(cp as u8),
#[cfg(feature = "bmp")]
0x01a => sc_p1a(cp as u8),
#[cfg(feature = "bmp")]
0x01b => sc_p1b(cp as u8),
#[cfg(feature = "bmp")]
0x01c => sc_p1c(cp as u8),
#[cfg(feature = "bmp")]
0x01d => sc_p1d(cp as u8),
#[cfg(feature = "bmp")]
0x01e => Script::Latin,
#[cfg(feature = "bmp")]
0x01f => sc_p1f(cp as u8),
#[cfg(feature = "bmp")]
0x020 => sc_p20(cp as u8),
#[cfg(feature = "bmp")]
0x021 => sc_p21(cp as u8),
#[cfg(feature = "bmp")]
0x022 => Script::Common,
#[cfg(feature = "bmp")]
0x023 => Script::Common,
#[cfg(feature = "bmp")]
0x024 => sc_p24(cp as u8),
#[cfg(feature = "bmp")]
0x025 => Script::Common,
#[cfg(feature = "bmp")]
0x026 => Script::Common,
#[cfg(feature = "bmp")]
0x027 => Script::Common,
#[cfg(feature = "bmp")]
0x028 => Script::Braille,
#[cfg(feature = "bmp")]
0x029 => Script::Common,
#[cfg(feature = "bmp")]
0x02a => Script::Common,
#[cfg(feature = "bmp")]
0x02b => sc_p2b(cp as u8),
#[cfg(feature = "bmp")]
0x02c => sc_p2c(cp as u8),
#[cfg(feature = "bmp")]
0x02d => sc_p2d(cp as u8),
#[cfg(feature = "bmp")]
0x02e => sc_p2e(cp as u8),
#[cfg(feature = "bmp")]
0x02f => sc_p2f(cp as u8),
#[cfg(feature = "bmp")]
0x030 => sc_p30(cp as u8),
#[cfg(feature = "bmp")]
0x031 => sc_p31(cp as u8),
#[cfg(feature = "bmp")]
0x032 => sc_p32(cp as u8),
#[cfg(feature = "bmp")]
0x033 => sc_p33(cp as u8),
#[cfg(feature = "bmp")]
0x034 => Script::Han,
#[cfg(feature = "bmp")]
0x035 => Script::Han,
#[cfg(feature = "bmp")]
0x036 => Script::Han,
#[cfg(feature = "bmp")]
0x037 => Script::Han,
#[cfg(feature = "bmp")]
0x038 => Script::Han,
#[cfg(feature = "bmp")]
0x039 => Script::Han,
#[cfg(feature = "bmp")]
0x03a => Script::Han,
#[cfg(feature = "bmp")]
0x03b => Script::Han,
#[cfg(feature = "bmp")]
0x03c => Script::Han,
#[cfg(feature = "bmp")]
0x03d => Script::Han,
#[cfg(feature = "bmp")]
0x03e => Script::Han,
#[cfg(feature = "bmp")]
0x03f => Script::Han,
#[cfg(feature = "bmp")]
0x040 => Script::Han,
#[cfg(feature = "bmp")]
0x041 => Script::Han,
#[cfg(feature = "bmp")]
0x042 => Script::Han,
#[cfg(feature = "bmp")]
0x043 => Script::Han,
#[cfg(feature = "bmp")]
0x044 => Script::Han,
#[cfg(feature = "bmp")]
0x045 => Script::Han,
#[cfg(feature = "bmp")]
0x046 => Script::Han,
#[cfg(feature = "bmp")]
0x047 => Script::Han,
#[cfg(feature = "bmp")]
0x048 => Script::Han,
#[cfg(feature = "bmp")]
0x049 => Script::Han,
#[cfg(feature = "bmp")]
0x04a => Script::Han,
#[cfg(feature = "bmp")]
0x04b => Script::Han,
#[cfg(feature = "bmp")]
0x04c => Script::Han,
#[cfg(feature = "bmp")]
0x04d => sc_p4d(cp as u8),
#[cfg(feature = "bmp")]
0x04e => Script::Han,
#[cfg(feature = "bmp")]
0x04f => Script::Han,
#[cfg(feature = "bmp")]
0x050 => Script::Han,
#[cfg(feature = "bmp")]
0x051 => Script::Han,
#[cfg(feature = "bmp")]
0x052 => Script::Han,
#[cfg(feature = "bmp")]
0x053 => Script::Han,
#[cfg(feature = "bmp")]
0x054 => Script::Han,
#[cfg(feature = "bmp")]
0x055 => Script::Han,
#[cfg(feature = "bmp")]
0x056 => Script::Han,
#[cfg(feature = "bmp")]
0x057 => Script::Han,
#[cfg(feature = "bmp")]
0x058 => Script::Han,
#[cfg(feature = "bmp")]
0x059 => Script::Han,
#[cfg(feature = "bmp")]
0x05a => Script::Han,
#[cfg(feature = "bmp")]
0x05b => Script::Han,
#[cfg(feature = "bmp")]
0x05c => Script::Han,
#[cfg(feature = "bmp")]
0x05d => Script::Han,
#[cfg(feature = "bmp")]
0x05e => Script::Han,
#[cfg(feature = "bmp")]
0x05f => Script::Han,
#[cfg(feature = "bmp")]
0x060 => Script::Han,
#[cfg(feature = "bmp")]
0x061 => Script::Han,
#[cfg(feature = "bmp")]
0x062 => Script::Han,
#[cfg(feature = "bmp")]
0x063 => Script::Han,
#[cfg(feature = "bmp")]
0x064 => Script::Han,
#[cfg(feature = "bmp")]
0x065 => Script::Han,
#[cfg(feature = "bmp")]
0x066 => Script::Han,
#[cfg(feature = "bmp")]
0x067 => Script::Han,
#[cfg(feature = "bmp")]
0x068 => Script::Han,
#[cfg(feature = "bmp")]
0x069 => Script::Han,
#[cfg(feature = "bmp")]
0x06a => Script::Han,
#[cfg(feature = "bmp")]
0x06b => Script::Han,
#[cfg(feature = "bmp")]
0x06c => Script::Han,
#[cfg(feature = "bmp")]
0x06d => Script::Han,
#[cfg(feature = "bmp")]
0x06e => Script::Han,
#[cfg(feature = "bmp")]
0x06f => Script::Han,
#[cfg(feature = "bmp")]
0x070 => Script::Han,
#[cfg(feature = "bmp")]
0x071 => Script::Han,
#[cfg(feature = "bmp")]
0x072 => Script::Han,
#[cfg(feature = "bmp")]
0x073 => Script::Han,
#[cfg(feature = "bmp")]
0x074 => Script::Han,
#[cfg(feature = "bmp")]
0x075 => Script::Han,
#[cfg(feature = "bmp")]
0x076 => Script::Han,
#[cfg(feature = "bmp")]
0x077 => Script::Han,
#[cfg(feature = "bmp")]
0x078 => Script::Han,
#[cfg(feature = "bmp")]
0x079 => Script::Han,
#[cfg(feature = "bmp")]
0x07a => Script::Han,
#[cfg(feature = "bmp")]
0x07b => Script::Han,
#[cfg(feature = "bmp")]
0x07c => Script::Han,
#[cfg(feature = "bmp")]
0x07d => Script::Han,
#[cfg(feature = "bmp")]
0x07e => Script::Han,
#[cfg(feature = "bmp")]
0x07f => Script::Han,
#[cfg(feature = "bmp")]
0x080 => Script::Han,
#[cfg(feature = "bmp")]
0x081 => Script::Han,
#[cfg(feature = "bmp")]
0x082 => Script::Han,
#[cfg(feature = "bmp")]
0x083 => Script::Han,
#[cfg(feature = "bmp")]
0x084 => Script::Han,
#[cfg(feature = "bmp")]
0x085 => Script::Han,
#[cfg(feature = "bmp")]
0x086 => Script::Han,
#[cfg(feature = "bmp")]
0x087 => Script::Han,
#[cfg(feature = "bmp")]
0x088 => Script::Han,
#[cfg(feature = "bmp")]
0x089 => Script::Han,
#[cfg(feature = "bmp")]
0x08a => Script::Han,
#[cfg(feature = "bmp")]
0x08b => Script::Han,
#[cfg(feature = "bmp")]
0x08c => Script::Han,
#[cfg(feature = "bmp")]
0x08d => Script::Han,
#[cfg(feature = "bmp")]
0x08e => Script::Han,
#[cfg(feature = "bmp")]
0x08f => Script::Han,
#[cfg(feature = "bmp")]
0x090 => Script::Han,
#[cfg(feature = "bmp")]
0x091 => Script::Han,
#[cfg(feature = "bmp")]
0x092 => Script::Han,
#[cfg(feature = "bmp")]
0x093 => Script::Han,
#[cfg(feature = "bmp")]
0x094 => Script::Han,
#[cfg(feature = "bmp")]
0x095 => Script::Han,
#[cfg(feature = "bmp")]
0x096 => Script::Han,
#[cfg(feature = "bmp")]
0x097 => Script::Han,
#[cfg(feature = "bmp")]
0x098 => Script::Han,
#[cfg(feature = "bmp")]
0x099 => Script::Han,
#[cfg(feature = "bmp")]
0x09a => Script::Han,
#[cfg(feature = "bmp")]
0x09b => Script::Han,
#[cfg(feature = "bmp")]
0x09c => Script::Han,
#[cfg(feature = "bmp")]
0x09d => Script::Han,
#[cfg(feature = "bmp")]
0x09e => Script::Han,
#[cfg(feature = "bmp")]
0x09f => Script::Han,
#[cfg(feature = "bmp")]
0x0a0 => Script::Yi,
#[cfg(feature = "bmp")]
0x0a1 => Script::Yi,
#[cfg(feature = "bmp")]
0x0a2 => Script::Yi,
#[cfg(feature = "bmp")]
0x0a3 => Script::Yi,
#[cfg(feature = "bmp")]
0x0a4 => sc_pa4(cp as u8),
#[cfg(feature = "bmp")]
0x0a5 => Script::Vai,
#[cfg(feature = "bmp")]
0x0a6 => sc_pa6(cp as u8),
#[cfg(feature = "bmp")]
0x0a7 => sc_pa7(cp as u8),
#[cfg(feature = "bmp")]
0x0a8 => sc_pa8(cp as u8),
#[cfg(feature = "bmp")]
0x0a9 => sc_pa9(cp as u8),
#[cfg(feature = "bmp")]
0x0aa => sc_paa(cp as u8),
#[cfg(feature = "bmp")]
0x0ab => sc_pab(cp as u8),
#[cfg(feature = "bmp")]
0x0ac => Script::Hangul,
#[cfg(feature = "bmp")]
0x0ad => Script::Hangul,
#[cfg(feature = "bmp")]
0x0ae => Script::Hangul,
#[cfg(feature = "bmp")]
0x0af => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b0 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b1 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b2 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b3 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b4 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b5 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b6 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b7 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b8 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0b9 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0ba => Script::Hangul,
#[cfg(feature = "bmp")]
0x0bb => Script::Hangul,
#[cfg(feature = "bmp")]
0x0bc => Script::Hangul,
#[cfg(feature = "bmp")]
0x0bd => Script::Hangul,
#[cfg(feature = "bmp")]
0x0be => Script::Hangul,
#[cfg(feature = "bmp")]
0x0bf => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c0 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c1 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c2 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c3 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c4 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c5 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c6 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c7 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c8 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0c9 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0ca => Script::Hangul,
#[cfg(feature = "bmp")]
0x0cb => Script::Hangul,
#[cfg(feature = "bmp")]
0x0cc => Script::Hangul,
#[cfg(feature = "bmp")]
0x0cd => Script::Hangul,
#[cfg(feature = "bmp")]
0x0ce => Script::Hangul,
#[cfg(feature = "bmp")]
0x0cf => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d0 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d1 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d2 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d3 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d4 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d5 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d6 => Script::Hangul,
#[cfg(feature = "bmp")]
0x0d7 => sc_pd7(cp as u8),
#[cfg(feature = "bmp")]
0x0f9 => Script::Han,
#[cfg(feature = "bmp")]
0x0fa => sc_pfa(cp as u8),
#[cfg(feature = "bmp")]
0x0fb => sc_pfb(cp as u8),
#[cfg(feature = "bmp")]
0x0fc => Script::Arabic,
#[cfg(feature = "bmp")]
0x0fd => sc_pfd(cp as u8),
#[cfg(feature = "bmp")]
0x0fe => sc_pfe(cp as u8),
#[cfg(feature = "bmp")]
0x0ff => sc_pff(cp as u8),
#[cfg(feature = "full")]
0x100 => sc_p100(cp as u8),
#[cfg(feature = "full")]
0x101 => sc_p101(cp as u8),
#[cfg(feature = "full")]
0x102 => sc_p102(cp as u8),
#[cfg(feature = "full")]
0x103 => sc_p103(cp as u8),
#[cfg(feature = "full")]
0x104 => sc_p104(cp as u8),
#[cfg(feature = "full")]
0x105 => sc_p105(cp as u8),
#[cfg(feature = "full")]
0x106 => Script::LinearA,
#[cfg(feature = "full")]
0x107 => sc_p107(cp as u8),
#[cfg(feature = "full")]
0x108 => sc_p108(cp as u8),
#[cfg(feature = "full")]
0x109 => sc_p109(cp as u8),
#[cfg(feature = "full")]
0x10a => sc_p10a(cp as u8),
#[cfg(feature = "full")]
0x10b => sc_p10b(cp as u8),
#[cfg(feature = "full")]
0x10c => sc_p10c(cp as u8),
#[cfg(feature = "full")]
0x10d => sc_p10d(cp as u8),
#[cfg(feature = "full")]
0x10e => sc_p10e(cp as u8),
#[cfg(feature = "full")]
0x10f => sc_p10f(cp as u8),
#[cfg(feature = "full")]
0x110 => sc_p110(cp as u8),
#[cfg(feature = "full")]
0x111 => sc_p111(cp as u8),
#[cfg(feature = "full")]
0x112 => sc_p112(cp as u8),
#[cfg(feature = "full")]
0x113 => sc_p113(cp as u8),
#[cfg(feature = "full")]
0x114 => sc_p114(cp as u8),
#[cfg(feature = "full")]
0x115 => sc_p115(cp as u8),
#[cfg(feature = "full")]
0x116 => sc_p116(cp as u8),
#[cfg(feature = "full")]
0x117 => sc_p117(cp as u8),
#[cfg(feature = "full")]
0x118 => sc_p118(cp as u8),
#[cfg(feature = "full")]
0x119 => sc_p119(cp as u8),
#[cfg(feature = "full")]
0x11a => sc_p11a(cp as u8),
#[cfg(feature = "full")]
0x11b => sc_p11b(cp as u8),
#[cfg(feature = "full")]
0x11c => sc_p11c(cp as u8),
#[cfg(feature = "full")]
0x11d => sc_p11d(cp as u8),
#[cfg(feature = "full")]
0x11e => sc_p11e(cp as u8),
#[cfg(feature = "full")]
0x11f => sc_p11f(cp as u8),
#[cfg(feature = "full")]
0x120 => Script::Cuneiform,
#[cfg(feature = "full")]
0x121 => Script::Cuneiform,
#[cfg(feature = "full")]
0x122 => Script::Cuneiform,
#[cfg(feature = "full")]
0x123 => sc_p123(cp as u8),
#[cfg(feature = "full")]
0x124 => sc_p124(cp as u8),
#[cfg(feature = "full")]
0x125 => sc_p125(cp as u8),
#[cfg(feature = "full")]
0x12f => sc_p12f(cp as u8),
#[cfg(feature = "full")]
0x130 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x131 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x132 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x133 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x134 => sc_p134(cp as u8),
#[cfg(feature = "full")]
0x135 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x136 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x137 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x138 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x139 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x13a => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x13b => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x13c => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x13d => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x13e => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x13f => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x140 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x141 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x142 => Script::EgyptianHieroglyphs,
#[cfg(feature = "full")]
0x143 => sc_p143(cp as u8),
#[cfg(feature = "full")]
0x144 => Script::AnatolianHieroglyphs,
#[cfg(feature = "full")]
0x145 => Script::AnatolianHieroglyphs,
#[cfg(feature = "full")]
0x146 => sc_p146(cp as u8),
#[cfg(feature = "full")]
0x161 => sc_p161(cp as u8),
#[cfg(feature = "full")]
0x168 => Script::Bamum,
#[cfg(feature = "full")]
0x169 => Script::Bamum,
#[cfg(feature = "full")]
0x16a => sc_p16a(cp as u8),
#[cfg(feature = "full")]
0x16b => sc_p16b(cp as u8),
#[cfg(feature = "full")]
0x16d => sc_p16d(cp as u8),
#[cfg(feature = "full")]
0x16e => sc_p16e(cp as u8),
#[cfg(feature = "full")]
0x16f => sc_p16f(cp as u8),
#[cfg(feature = "full")]
0x170 => Script::Tangut,
#[cfg(feature = "full")]
0x171 => Script::Tangut,
#[cfg(feature = "full")]
0x172 => Script::Tangut,
#[cfg(feature = "full")]
0x173 => Script::Tangut,
#[cfg(feature = "full")]
0x174 => Script::Tangut,
#[cfg(feature = "full")]
0x175 => Script::Tangut,
#[cfg(feature = "full")]
0x176 => Script::Tangut,
#[cfg(feature = "full")]
0x177 => Script::Tangut,
#[cfg(feature = "full")]
0x178 => Script::Tangut,
#[cfg(feature = "full")]
0x179 => Script::Tangut,
#[cfg(feature = "full")]
0x17a => Script::Tangut,
#[cfg(feature = "full")]
0x17b => Script::Tangut,
#[cfg(feature = "full")]
0x17c => Script::Tangut,
#[cfg(feature = "full")]
0x17d => Script::Tangut,
#[cfg(feature = "full")]
0x17e => Script::Tangut,
#[cfg(feature = "full")]
0x17f => Script::Tangut,
#[cfg(feature = "full")]
0x180 => Script::Tangut,
#[cfg(feature = "full")]
0x181 => Script::Tangut,
#[cfg(feature = "full")]
0x182 => Script::Tangut,
#[cfg(feature = "full")]
0x183 => Script::Tangut,
#[cfg(feature = "full")]
0x184 => Script::Tangut,
#[cfg(feature = "full")]
0x185 => Script::Tangut,
#[cfg(feature = "full")]
0x186 => Script::Tangut,
#[cfg(feature = "full")]
0x187 => Script::Tangut,
#[cfg(feature = "full")]
0x188 => Script::Tangut,
#[cfg(feature = "full")]
0x189 => Script::Tangut,
#[cfg(feature = "full")]
0x18a => Script::Tangut,
#[cfg(feature = "full")]
0x18b => Script::KhitanSmallScript,
#[cfg(feature = "full")]
0x18c => sc_p18c(cp as u8),
#[cfg(feature = "full")]
0x18d => sc_p18d(cp as u8),
#[cfg(feature = "full")]
0x1af => sc_p1af(cp as u8),
#[cfg(feature = "full")]
0x1b0 => sc_p1b0(cp as u8),
#[cfg(feature = "full")]
0x1b1 => sc_p1b1(cp as u8),
#[cfg(feature = "full")]
0x1b2 => sc_p1b2(cp as u8),
#[cfg(feature = "full")]
0x1bc => sc_p1bc(cp as u8),
#[cfg(feature = "full")]
0x1cc => sc_p1cc(cp as u8),
#[cfg(feature = "full")]
0x1cd => Script::Common,
#[cfg(feature = "full")]
0x1ce => sc_p1ce(cp as u8),
#[cfg(feature = "full")]
0x1cf => sc_p1cf(cp as u8),
#[cfg(feature = "full")]
0x1d0 => sc_p1d0(cp as u8),
#[cfg(feature = "full")]
0x1d1 => sc_p1d1(cp as u8),
#[cfg(feature = "full")]
0x1d2 => sc_p1d2(cp as u8),
#[cfg(feature = "full")]
0x1d3 => sc_p1d3(cp as u8),
#[cfg(feature = "full")]
0x1d4 => sc_p1d4(cp as u8),
#[cfg(feature = "full")]
0x1d5 => sc_p1d5(cp as u8),
#[cfg(feature = "full")]
0x1d6 => sc_p1d6(cp as u8),
#[cfg(feature = "full")]
0x1d7 => sc_p1d7(cp as u8),
#[cfg(feature = "full")]
0x1d8 => Script::SignWriting,
#[cfg(feature = "full")]
0x1d9 => Script::SignWriting,
#[cfg(feature = "full")]
0x1da => sc_p1da(cp as u8),
#[cfg(feature = "full")]
0x1df => sc_p1df(cp as u8),
#[cfg(feature = "full")]
0x1e0 => sc_p1e0(cp as u8),
#[cfg(feature = "full")]
0x1e1 => sc_p1e1(cp as u8),
#[cfg(feature = "full")]
0x1e2 => sc_p1e2(cp as u8),
#[cfg(feature = "full")]
0x1e4 => sc_p1e4(cp as u8),
#[cfg(feature = "full")]
0x1e5 => sc_p1e5(cp as u8),
#[cfg(feature = "full")]
0x1e6 => sc_p1e6(cp as u8),
#[cfg(feature = "full")]
0x1e7 => sc_p1e7(cp as u8),
#[cfg(feature = "full")]
0x1e8 => sc_p1e8(cp as u8),
#[cfg(feature = "full")]
0x1e9 => sc_p1e9(cp as u8),
#[cfg(feature = "full")]
0x1ec => sc_p1ec(cp as u8),
#[cfg(feature = "full")]
0x1ed => sc_p1ed(cp as u8),
#[cfg(feature = "full")]
0x1ee => sc_p1ee(cp as u8),
#[cfg(feature = "full")]
0x1f0 => sc_p1f0(cp as u8),
#[cfg(feature = "full")]
0x1f1 => sc_p1f1(cp as u8),
#[cfg(feature = "full")]
0x1f2 => sc_p1f2(cp as u8),
#[cfg(feature = "full")]
0x1f3 => Script::Common,
#[cfg(feature = "full")]
0x1f4 => Script::Common,
#[cfg(feature = "full")]
0x1f5 => Script::Common,
#[cfg(feature = "full")]
0x1f6 => sc_p1f6(cp as u8),
#[cfg(feature = "full")]
0x1f7 => sc_p1f7(cp as u8),
#[cfg(feature = "full")]
0x1f8 => sc_p1f8(cp as u8),
#[cfg(feature = "full")]
0x1f9 => Script::Common,
#[cfg(feature = "full")]
0x1fa => sc_p1fa(cp as u8),
#[cfg(feature = "full")]
0x1fb => sc_p1fb(cp as u8),
#[cfg(feature = "full")]
0x200 => Script::Han,
#[cfg(feature = "full")]
0x201 => Script::Han,
#[cfg(feature = "full")]
0x202 => Script::Han,
#[cfg(feature = "full")]
0x203 => Script::Han,
#[cfg(feature = "full")]
0x204 => Script::Han,
#[cfg(feature = "full")]
0x205 => Script::Han,
#[cfg(feature = "full")]
0x206 => Script::Han,
#[cfg(feature = "full")]
0x207 => Script::Han,
#[cfg(feature = "full")]
0x208 => Script::Han,
#[cfg(feature = "full")]
0x209 => Script::Han,
#[cfg(feature = "full")]
0x20a => Script::Han,
#[cfg(feature = "full")]
0x20b => Script::Han,
#[cfg(feature = "full")]
0x20c => Script::Han,
#[cfg(feature = "full")]
0x20d => Script::Han,
#[cfg(feature = "full")]
0x20e => Script::Han,
#[cfg(feature = "full")]
0x20f => Script::Han,
#[cfg(feature = "full")]
0x210 => Script::Han,
#[cfg(feature = "full")]
0x211 => Script::Han,
#[cfg(feature = "full")]
0x212 => Script::Han,
#[cfg(feature = "full")]
0x213 => Script::Han,
#[cfg(feature = "full")]
0x214 => Script::Han,
#[cfg(feature = "full")]
0x215 => Script::Han,
#[cfg(feature = "full")]
0x216 => Script::Han,
#[cfg(feature = "full")]
0x217 => Script::Han,
#[cfg(feature = "full")]
0x218 => Script::Han,
#[cfg(feature = "full")]
0x219 => Script::Han,
#[cfg(feature = "full")]
0x21a => Script::Han,
#[cfg(feature = "full")]
0x21b => Script::Han,
#[cfg(feature = "full")]
0x21c => Script::Han,
#[cfg(feature = "full")]
0x21d => Script::Han,
#[cfg(feature = "full")]
0x21e => Script::Han,
#[cfg(feature = "full")]
0x21f => Script::Han,
#[cfg(feature = "full")]
0x220 => Script::Han,
#[cfg(feature = "full")]
0x221 => Script::Han,
#[cfg(feature = "full")]
0x222 => Script::Han,
#[cfg(feature = "full")]
0x223 => Script::Han,
#[cfg(feature = "full")]
0x224 => Script::Han,
#[cfg(feature = "full")]
0x225 => Script::Han,
#[cfg(feature = "full")]
0x226 => Script::Han,
#[cfg(feature = "full")]
0x227 => Script::Han,
#[cfg(feature = "full")]
0x228 => Script::Han,
#[cfg(feature = "full")]
0x229 => Script::Han,
#[cfg(feature = "full")]
0x22a => Script::Han,
#[cfg(feature = "full")]
0x22b => Script::Han,
#[cfg(feature = "full")]
0x22c => Script::Han,
#[cfg(feature = "full")]
0x22d => Script::Han,
#[cfg(feature = "full")]
0x22e => Script::Han,
#[cfg(feature = "full")]
0x22f => Script::Han,
#[cfg(feature = "full")]
0x230 => Script::Han,
#[cfg(feature = "full")]
0x231 => Script::Han,
#[cfg(feature = "full")]
0x232 => Script::Han,
#[cfg(feature = "full")]
0x233 => Script::Han,
#[cfg(feature = "full")]
0x234 => Script::Han,
#[cfg(feature = "full")]
0x235 => Script::Han,
#[cfg(feature = "full")]
0x236 => Script::Han,
#[cfg(feature = "full")]
0x237 => Script::Han,
#[cfg(feature = "full")]
0x238 => Script::Han,
#[cfg(feature = "full")]
0x239 => Script::Han,
#[cfg(feature = "full")]
0x23a => Script::Han,
#[cfg(feature = "full")]
0x23b => Script::Han,
#[cfg(feature = "full")]
0x23c => Script::Han,
#[cfg(feature = "full")]
0x23d => Script::Han,
#[cfg(feature = "full")]
0x23e => Script::Han,
#[cfg(feature = "full")]
0x23f => Script::Han,
#[cfg(feature = "full")]
0x240 => Script::Han,
#[cfg(feature = "full")]
0x241 => Script::Han,
#[cfg(feature = "full")]
0x242 => Script::Han,
#[cfg(feature = "full")]
0x243 => Script::Han,
#[cfg(feature = "full")]
0x244 => Script::Han,
#[cfg(feature = "full")]
0x245 => Script::Han,
#[cfg(feature = "full")]
0x246 => Script::Han,
#[cfg(feature = "full")]
0x247 => Script::Han,
#[cfg(feature = "full")]
0x248 => Script::Han,
#[cfg(feature = "full")]
0x249 => Script::Han,
#[cfg(feature = "full")]
0x24a => Script::Han,
#[cfg(feature = "full")]
0x24b => Script::Han,
#[cfg(feature = "full")]
0x24c => Script::Han,
#[cfg(feature = "full")]
0x24d => Script::Han,
#[cfg(feature = "full")]
0x24e => Script::Han,
#[cfg(feature = "full")]
0x24f => Script::Han,
#[cfg(feature = "full")]
0x250 => Script::Han,
#[cfg(feature = "full")]
0x251 => Script::Han,
#[cfg(feature = "full")]
0x252 => Script::Han,
#[cfg(feature = "full")]
0x253 => Script::Han,
#[cfg(feature = "full")]
0x254 => Script::Han,
#[cfg(feature = "full")]
0x255 => Script::Han,
#[cfg(feature = "full")]
0x256 => Script::Han,
#[cfg(feature = "full")]
0x257 => Script::Han,
#[cfg(feature = "full")]
0x258 => Script::Han,
#[cfg(feature = "full")]
0x259 => Script::Han,
#[cfg(feature = "full")]
0x25a => Script::Han,
#[cfg(feature = "full")]
0x25b => Script::Han,
#[cfg(feature = "full")]
0x25c => Script::Han,
#[cfg(feature = "full")]
0x25d => Script::Han,
#[cfg(feature = "full")]
0x25e => Script::Han,
#[cfg(feature = "full")]
0x25f => Script::Han,
#[cfg(feature = "full")]
0x260 => Script::Han,
#[cfg(feature = "full")]
0x261 => Script::Han,
#[cfg(feature = "full")]
0x262 => Script::Han,
#[cfg(feature = "full")]
0x263 => Script::Han,
#[cfg(feature = "full")]
0x264 => Script::Han,
#[cfg(feature = "full")]
0x265 => Script::Han,
#[cfg(feature = "full")]
0x266 => Script::Han,
#[cfg(feature = "full")]
0x267 => Script::Han,
#[cfg(feature = "full")]
0x268 => Script::Han,
#[cfg(feature = "full")]
0x269 => Script::Han,
#[cfg(feature = "full")]
0x26a => Script::Han,
#[cfg(feature = "full")]
0x26b => Script::Han,
#[cfg(feature = "full")]
0x26c => Script::Han,
#[cfg(feature = "full")]
0x26d => Script::Han,
#[cfg(feature = "full")]
0x26e => Script::Han,
#[cfg(feature = "full")]
0x26f => Script::Han,
#[cfg(feature = "full")]
0x270 => Script::Han,
#[cfg(feature = "full")]
0x271 => Script::Han,
#[cfg(feature = "full")]
0x272 => Script::Han,
#[cfg(feature = "full")]
0x273 => Script::Han,
#[cfg(feature = "full")]
0x274 => Script::Han,
#[cfg(feature = "full")]
0x275 => Script::Han,
#[cfg(feature = "full")]
0x276 => Script::Han,
#[cfg(feature = "full")]
0x277 => Script::Han,
#[cfg(feature = "full")]
0x278 => Script::Han,
#[cfg(feature = "full")]
0x279 => Script::Han,
#[cfg(feature = "full")]
0x27a => Script::Han,
#[cfg(feature = "full")]
0x27b => Script::Han,
#[cfg(feature = "full")]
0x27c => Script::Han,
#[cfg(feature = "full")]
0x27d => Script::Han,
#[cfg(feature = "full")]
0x27e => Script::Han,
#[cfg(feature = "full")]
0x27f => Script::Han,
#[cfg(feature = "full")]
0x280 => Script::Han,
#[cfg(feature = "full")]
0x281 => Script::Han,
#[cfg(feature = "full")]
0x282 => Script::Han,
#[cfg(feature = "full")]
0x283 => Script::Han,
#[cfg(feature = "full")]
0x284 => Script::Han,
#[cfg(feature = "full")]
0x285 => Script::Han,
#[cfg(feature = "full")]
0x286 => Script::Han,
#[cfg(feature = "full")]
0x287 => Script::Han,
#[cfg(feature = "full")]
0x288 => Script::Han,
#[cfg(feature = "full")]
0x289 => Script::Han,
#[cfg(feature = "full")]
0x28a => Script::Han,
#[cfg(feature = "full")]
0x28b => Script::Han,
#[cfg(feature = "full")]
0x28c => Script::Han,
#[cfg(feature = "full")]
0x28d => Script::Han,
#[cfg(feature = "full")]
0x28e => Script::Han,
#[cfg(feature = "full")]
0x28f => Script::Han,
#[cfg(feature = "full")]
0x290 => Script::Han,
#[cfg(feature = "full")]
0x291 => Script::Han,
#[cfg(feature = "full")]
0x292 => Script::Han,
#[cfg(feature = "full")]
0x293 => Script::Han,
#[cfg(feature = "full")]
0x294 => Script::Han,
#[cfg(feature = "full")]
0x295 => Script::Han,
#[cfg(feature = "full")]
0x296 => Script::Han,
#[cfg(feature = "full")]
0x297 => Script::Han,
#[cfg(feature = "full")]
0x298 => Script::Han,
#[cfg(feature = "full")]
0x299 => Script::Han,
#[cfg(feature = "full")]
0x29a => Script::Han,
#[cfg(feature = "full")]
0x29b => Script::Han,
#[cfg(feature = "full")]
0x29c => Script::Han,
#[cfg(feature = "full")]
0x29d => Script::Han,
#[cfg(feature = "full")]
0x29e => Script::Han,
#[cfg(feature = "full")]
0x29f => Script::Han,
#[cfg(feature = "full")]
0x2a0 => Script::Han,
#[cfg(feature = "full")]
0x2a1 => Script::Han,
#[cfg(feature = "full")]
0x2a2 => Script::Han,
#[cfg(feature = "full")]
0x2a3 => Script::Han,
#[cfg(feature = "full")]
0x2a4 => Script::Han,
#[cfg(feature = "full")]
0x2a5 => Script::Han,
#[cfg(feature = "full")]
0x2a6 => sc_p2a6(cp as u8),
#[cfg(feature = "full")]
0x2a7 => Script::Han,
#[cfg(feature = "full")]
0x2a8 => Script::Han,
#[cfg(feature = "full")]
0x2a9 => Script::Han,
#[cfg(feature = "full")]
0x2aa => Script::Han,
#[cfg(feature = "full")]
0x2ab => Script::Han,
#[cfg(feature = "full")]
0x2ac => Script::Han,
#[cfg(feature = "full")]
0x2ad => Script::Han,
#[cfg(feature = "full")]
0x2ae => Script::Han,
#[cfg(feature = "full")]
0x2af => Script::Han,
#[cfg(feature = "full")]
0x2b0 => Script::Han,
#[cfg(feature = "full")]
0x2b1 => Script::Han,
#[cfg(feature = "full")]
0x2b2 => Script::Han,
#[cfg(feature = "full")]
0x2b3 => Script::Han,
#[cfg(feature = "full")]
0x2b4 => Script::Han,
#[cfg(feature = "full")]
0x2b5 => Script::Han,
#[cfg(feature = "full")]
0x2b6 => Script::Han,
#[cfg(feature = "full")]
0x2b7 => Script::Han,
#[cfg(feature = "full")]
0x2b8 => sc_p2b8(cp as u8),
#[cfg(feature = "full")]
0x2b9 => Script::Han,
#[cfg(feature = "full")]
0x2ba => Script::Han,
#[cfg(feature = "full")]
0x2bb => Script::Han,
#[cfg(feature = "full")]
0x2bc => Script::Han,
#[cfg(feature = "full")]
0x2bd => Script::Han,
#[cfg(feature = "full")]
0x2be => Script::Han,
#[cfg(feature = "full")]
0x2bf => Script::Han,
#[cfg(feature = "full")]
0x2c0 => Script::Han,
#[cfg(feature = "full")]
0x2c1 => Script::Han,
#[cfg(feature = "full")]
0x2c2 => Script::Han,
#[cfg(feature = "full")]
0x2c3 => Script::Han,
#[cfg(feature = "full")]
0x2c4 => Script::Han,
#[cfg(feature = "full")]
0x2c5 => Script::Han,
#[cfg(feature = "full")]
0x2c6 => Script::Han,
#[cfg(feature = "full")]
0x2c7 => Script::Han,
#[cfg(feature = "full")]
0x2c8 => Script::Han,
#[cfg(feature = "full")]
0x2c9 => Script::Han,
#[cfg(feature = "full")]
0x2ca => Script::Han,
#[cfg(feature = "full")]
0x2cb => Script::Han,
#[cfg(feature = "full")]
0x2cc => Script::Han,
#[cfg(feature = "full")]
0x2cd => Script::Han,
#[cfg(feature = "full")]
0x2ce => sc_p2ce(cp as u8),
#[cfg(feature = "full")]
0x2cf => Script::Han,
#[cfg(feature = "full")]
0x2d0 => Script::Han,
#[cfg(feature = "full")]
0x2d1 => Script::Han,
#[cfg(feature = "full")]
0x2d2 => Script::Han,
#[cfg(feature = "full")]
0x2d3 => Script::Han,
#[cfg(feature = "full")]
0x2d4 => Script::Han,
#[cfg(feature = "full")]
0x2d5 => Script::Han,
#[cfg(feature = "full")]
0x2d6 => Script::Han,
#[cfg(feature = "full")]
0x2d7 => Script::Han,
#[cfg(feature = "full")]
0x2d8 => Script::Han,
#[cfg(feature = "full")]
0x2d9 => Script::Han,
#[cfg(feature = "full")]
0x2da => Script::Han,
#[cfg(feature = "full")]
0x2db => Script::Han,
#[cfg(feature = "full")]
0x2dc => Script::Han,
#[cfg(feature = "full")]
0x2dd => Script::Han,
#[cfg(feature = "full")]
0x2de => Script::Han,
#[cfg(feature = "full")]
0x2df => Script::Han,
#[cfg(feature = "full")]
0x2e0 => Script::Han,
#[cfg(feature = "full")]
0x2e1 => Script::Han,
#[cfg(feature = "full")]
0x2e2 => Script::Han,
#[cfg(feature = "full")]
0x2e3 => Script::Han,
#[cfg(feature = "full")]
0x2e4 => Script::Han,
#[cfg(feature = "full")]
0x2e5 => Script::Han,
#[cfg(feature = "full")]
0x2e6 => Script::Han,
#[cfg(feature = "full")]
0x2e7 => Script::Han,
#[cfg(feature = "full")]
0x2e8 => Script::Han,
#[cfg(feature = "full")]
0x2e9 => Script::Han,
#[cfg(feature = "full")]
0x2ea => Script::Han,
#[cfg(feature = "full")]
0x2eb => sc_p2eb(cp as u8),
#[cfg(feature = "full")]
0x2ec => Script::Han,
#[cfg(feature = "full")]
0x2ed => Script::Han,
#[cfg(feature = "full")]
0x2ee => sc_p2ee(cp as u8),
#[cfg(feature = "full")]
0x2f8 => Script::Han,
#[cfg(feature = "full")]
0x2f9 => Script::Han,
#[cfg(feature = "full")]
0x2fa => sc_p2fa(cp as u8),
#[cfg(feature = "full")]
0x300 => Script::Han,
#[cfg(feature = "full")]
0x301 => Script::Han,
#[cfg(feature = "full")]
0x302 => Script::Han,
#[cfg(feature = "full")]
0x303 => Script::Han,
#[cfg(feature = "full")]
0x304 => Script::Han,
#[cfg(feature = "full")]
0x305 => Script::Han,
#[cfg(feature = "full")]
0x306 => Script::Han,
#[cfg(feature = "full")]
0x307 => Script::Han,
#[cfg(feature = "full")]
0x308 => Script::Han,
#[cfg(feature = "full")]
0x309 => Script::Han,
#[cfg(feature = "full")]
0x30a => Script::Han,
#[cfg(feature = "full")]
0x30b => Script::Han,
#[cfg(feature = "full")]
0x30c => Script::Han,
#[cfg(feature = "full")]
0x30d => Script::Han,
#[cfg(feature = "full")]
0x30e => Script::Han,
#[cfg(feature = "full")]
0x30f => Script::Han,
#[cfg(feature = "full")]
0x310 => Script::Han,
#[cfg(feature = "full")]
0x311 => Script::Han,
#[cfg(feature = "full")]
0x312 => Script::Han,
#[cfg(feature = "full")]
0x313 => sc_p313(cp as u8),
#[cfg(feature = "full")]
0x314 => Script::Han,
#[cfg(feature = "full")]
0x315 => Script::Han,
#[cfg(feature = "full")]
0x316 => Script::Han,
#[cfg(feature = "full")]
0x317 => Script::Han,
#[cfg(feature = "full")]
0x318 => Script::Han,
#[cfg(feature = "full")]
0x319 => Script::Han,
#[cfg(feature = "full")]
0x31a => Script::Han,
#[cfg(feature = "full")]
0x31b => Script::Han,
#[cfg(feature = "full")]
0x31c => Script::Han,
#[cfg(feature = "full")]
0x31d => Script::Han,
#[cfg(feature = "full")]
0x31e => Script::Han,
#[cfg(feature = "full")]
0x31f => Script::Han,
#[cfg(feature = "full")]
0x320 => Script::Han,
#[cfg(feature = "full")]
0x321 => Script::Han,
#[cfg(feature = "full")]
0x322 => Script::Han,
#[cfg(feature = "full")]
0x323 => Script::Han,
#[cfg(feature = "full")]
0x324 => Script::Han,
#[cfg(feature = "full")]
0x325 => Script::Han,
#[cfg(feature = "full")]
0x326 => Script::Han,
#[cfg(feature = "full")]
0x327 => Script::Han,
#[cfg(feature = "full")]
0x328 => Script::Han,
#[cfg(feature = "full")]
0x329 => Script::Han,
#[cfg(feature = "full")]
0x32a => Script::Han,
#[cfg(feature = "full")]
0x32b => Script::Han,
#[cfg(feature = "full")]
0x32c => Script::Han,
#[cfg(feature = "full")]
0x32d => Script::Han,
#[cfg(feature = "full")]
0x32e => Script::Han,
#[cfg(feature = "full")]
0x32f => Script::Han,
#[cfg(feature = "full")]
0x330 => Script::Han,
#[cfg(feature = "full")]
0x331 => Script::Han,
#[cfg(feature = "full")]
0x332 => Script::Han,
#[cfg(feature = "full")]
0x333 => Script::Han,
#[cfg(feature = "full")]
0x334 => sc_p334(cp as u8),
#[cfg(feature = "full")]
0xe00 => sc_pe00(cp as u8),
#[cfg(feature = "full")]
0xe01 => sc_pe01(cp as u8),
_ => Script::Unknown,
}
}
#[cfg(feature = "ascii")]
const fn sc_p0(b: u8) -> Script {
match b {
0x00..=0x40 => Script::Common,
0x41..=0x5a => Script::Latin,
0x5b..=0x60 => Script::Common,
0x61..=0x7a => Script::Latin,
0x7b..=0x7f => Script::Common,
#[cfg(feature = "latin1")]
0x80..=0xa9 => Script::Common,
#[cfg(feature = "latin1")]
0xaa => Script::Latin,
#[cfg(feature = "latin1")]
0xab..=0xb9 => Script::Common,
#[cfg(feature = "latin1")]
0xba => Script::Latin,
#[cfg(feature = "latin1")]
0xbb..=0xbf => Script::Common,
#[cfg(feature = "latin1")]
0xc0..=0xd6 => Script::Latin,
#[cfg(feature = "latin1")]
0xd7 => Script::Common,
#[cfg(feature = "latin1")]
0xd8..=0xf6 => Script::Latin,
#[cfg(feature = "latin1")]
0xf7 => Script::Common,
#[cfg(feature = "latin1")]
0xf8..=0xff => Script::Latin,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p2(b: u8) -> Script {
match b {
0x00..=0xb8 => Script::Latin,
0xb9..=0xdf => Script::Common,
0xe0..=0xe4 => Script::Latin,
0xe5..=0xe9 => Script::Common,
0xea..=0xeb => Script::Bopomofo,
0xec..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p3(b: u8) -> Script {
match b {
0x00..=0x6f => Script::Inherited,
0x70..=0x73 => Script::Greek,
0x74 => Script::Common,
0x75..=0x77 => Script::Greek,
0x7a..=0x7d => Script::Greek,
0x7e => Script::Common,
0x7f => Script::Greek,
0x84 => Script::Greek,
0x85 => Script::Common,
0x86 => Script::Greek,
0x87 => Script::Common,
0x88..=0x8a => Script::Greek,
0x8c => Script::Greek,
0x8e..=0xa1 => Script::Greek,
0xa3..=0xe1 => Script::Greek,
0xe2..=0xef => Script::Coptic,
0xf0..=0xff => Script::Greek,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p4(b: u8) -> Script {
match b {
0x00..=0x84 => Script::Cyrillic,
0x85..=0x86 => Script::Inherited,
0x87..=0xff => Script::Cyrillic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p5(b: u8) -> Script {
match b {
0x00..=0x2f => Script::Cyrillic,
0x31..=0x56 => Script::Armenian,
0x59..=0x8a => Script::Armenian,
0x8d..=0x8f => Script::Armenian,
0x91..=0xc7 => Script::Hebrew,
0xd0..=0xea => Script::Hebrew,
0xef..=0xf4 => Script::Hebrew,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p6(b: u8) -> Script {
match b {
0x00..=0x04 => Script::Arabic,
0x05 => Script::Common,
0x06..=0x0b => Script::Arabic,
0x0c => Script::Common,
0x0d..=0x1a => Script::Arabic,
0x1b => Script::Common,
0x1c..=0x1e => Script::Arabic,
0x1f => Script::Common,
0x20..=0x3f => Script::Arabic,
0x40 => Script::Common,
0x41..=0x4a => Script::Arabic,
0x4b..=0x55 => Script::Inherited,
0x56..=0x6f => Script::Arabic,
0x70 => Script::Inherited,
0x71..=0xdc => Script::Arabic,
0xdd => Script::Common,
0xde..=0xff => Script::Arabic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p7(b: u8) -> Script {
match b {
0x00..=0x0d => Script::Syriac,
0x0f..=0x4a => Script::Syriac,
0x4d..=0x4f => Script::Syriac,
0x50..=0x7f => Script::Arabic,
0x80..=0xb1 => Script::Thaana,
0xc0..=0xfa => Script::Nko,
0xfd..=0xff => Script::Nko,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p8(b: u8) -> Script {
match b {
0x00..=0x2d => Script::Samaritan,
0x30..=0x3e => Script::Samaritan,
0x40..=0x5b => Script::Mandaic,
0x5e => Script::Mandaic,
0x60..=0x6a => Script::Syriac,
0x70..=0x91 => Script::Arabic,
0x97..=0xe1 => Script::Arabic,
0xe2 => Script::Common,
0xe3..=0xff => Script::Arabic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p9(b: u8) -> Script {
match b {
0x00..=0x50 => Script::Devanagari,
0x51..=0x54 => Script::Inherited,
0x55..=0x63 => Script::Devanagari,
0x64..=0x65 => Script::Common,
0x66..=0x7f => Script::Devanagari,
0x80..=0x83 => Script::Bengali,
0x85..=0x8c => Script::Bengali,
0x8f..=0x90 => Script::Bengali,
0x93..=0xa8 => Script::Bengali,
0xaa..=0xb0 => Script::Bengali,
0xb2 => Script::Bengali,
0xb6..=0xb9 => Script::Bengali,
0xbc..=0xc4 => Script::Bengali,
0xc7..=0xc8 => Script::Bengali,
0xcb..=0xce => Script::Bengali,
0xd7 => Script::Bengali,
0xdc..=0xdd => Script::Bengali,
0xdf..=0xe3 => Script::Bengali,
0xe6..=0xfe => Script::Bengali,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pa(b: u8) -> Script {
match b {
0x01..=0x03 => Script::Gurmukhi,
0x05..=0x0a => Script::Gurmukhi,
0x0f..=0x10 => Script::Gurmukhi,
0x13..=0x28 => Script::Gurmukhi,
0x2a..=0x30 => Script::Gurmukhi,
0x32..=0x33 => Script::Gurmukhi,
0x35..=0x36 => Script::Gurmukhi,
0x38..=0x39 => Script::Gurmukhi,
0x3c => Script::Gurmukhi,
0x3e..=0x42 => Script::Gurmukhi,
0x47..=0x48 => Script::Gurmukhi,
0x4b..=0x4d => Script::Gurmukhi,
0x51 => Script::Gurmukhi,
0x59..=0x5c => Script::Gurmukhi,
0x5e => Script::Gurmukhi,
0x66..=0x76 => Script::Gurmukhi,
0x81..=0x83 => Script::Gujarati,
0x85..=0x8d => Script::Gujarati,
0x8f..=0x91 => Script::Gujarati,
0x93..=0xa8 => Script::Gujarati,
0xaa..=0xb0 => Script::Gujarati,
0xb2..=0xb3 => Script::Gujarati,
0xb5..=0xb9 => Script::Gujarati,
0xbc..=0xc5 => Script::Gujarati,
0xc7..=0xc9 => Script::Gujarati,
0xcb..=0xcd => Script::Gujarati,
0xd0 => Script::Gujarati,
0xe0..=0xe3 => Script::Gujarati,
0xe6..=0xf1 => Script::Gujarati,
0xf9..=0xff => Script::Gujarati,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pb(b: u8) -> Script {
match b {
0x01..=0x03 => Script::Oriya,
0x05..=0x0c => Script::Oriya,
0x0f..=0x10 => Script::Oriya,
0x13..=0x28 => Script::Oriya,
0x2a..=0x30 => Script::Oriya,
0x32..=0x33 => Script::Oriya,
0x35..=0x39 => Script::Oriya,
0x3c..=0x44 => Script::Oriya,
0x47..=0x48 => Script::Oriya,
0x4b..=0x4d => Script::Oriya,
0x55..=0x57 => Script::Oriya,
0x5c..=0x5d => Script::Oriya,
0x5f..=0x63 => Script::Oriya,
0x66..=0x77 => Script::Oriya,
0x82..=0x83 => Script::Tamil,
0x85..=0x8a => Script::Tamil,
0x8e..=0x90 => Script::Tamil,
0x92..=0x95 => Script::Tamil,
0x99..=0x9a => Script::Tamil,
0x9c => Script::Tamil,
0x9e..=0x9f => Script::Tamil,
0xa3..=0xa4 => Script::Tamil,
0xa8..=0xaa => Script::Tamil,
0xae..=0xb9 => Script::Tamil,
0xbe..=0xc2 => Script::Tamil,
0xc6..=0xc8 => Script::Tamil,
0xca..=0xcd => Script::Tamil,
0xd0 => Script::Tamil,
0xd7 => Script::Tamil,
0xe6..=0xfa => Script::Tamil,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pc(b: u8) -> Script {
match b {
0x00..=0x0c => Script::Telugu,
0x0e..=0x10 => Script::Telugu,
0x12..=0x28 => Script::Telugu,
0x2a..=0x39 => Script::Telugu,
0x3c..=0x44 => Script::Telugu,
0x46..=0x48 => Script::Telugu,
0x4a..=0x4d => Script::Telugu,
0x55..=0x56 => Script::Telugu,
0x58..=0x5a => Script::Telugu,
0x5c..=0x5d => Script::Telugu,
0x60..=0x63 => Script::Telugu,
0x66..=0x6f => Script::Telugu,
0x77..=0x7f => Script::Telugu,
0x80..=0x8c => Script::Kannada,
0x8e..=0x90 => Script::Kannada,
0x92..=0xa8 => Script::Kannada,
0xaa..=0xb3 => Script::Kannada,
0xb5..=0xb9 => Script::Kannada,
0xbc..=0xc4 => Script::Kannada,
0xc6..=0xc8 => Script::Kannada,
0xca..=0xcd => Script::Kannada,
0xd5..=0xd6 => Script::Kannada,
0xdc..=0xde => Script::Kannada,
0xe0..=0xe3 => Script::Kannada,
0xe6..=0xef => Script::Kannada,
0xf1..=0xf3 => Script::Kannada,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pd(b: u8) -> Script {
match b {
0x00..=0x0c => Script::Malayalam,
0x0e..=0x10 => Script::Malayalam,
0x12..=0x44 => Script::Malayalam,
0x46..=0x48 => Script::Malayalam,
0x4a..=0x4f => Script::Malayalam,
0x54..=0x63 => Script::Malayalam,
0x66..=0x7f => Script::Malayalam,
0x81..=0x83 => Script::Sinhala,
0x85..=0x96 => Script::Sinhala,
0x9a..=0xb1 => Script::Sinhala,
0xb3..=0xbb => Script::Sinhala,
0xbd => Script::Sinhala,
0xc0..=0xc6 => Script::Sinhala,
0xca => Script::Sinhala,
0xcf..=0xd4 => Script::Sinhala,
0xd6 => Script::Sinhala,
0xd8..=0xdf => Script::Sinhala,
0xe6..=0xef => Script::Sinhala,
0xf2..=0xf4 => Script::Sinhala,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pe(b: u8) -> Script {
match b {
0x01..=0x3a => Script::Thai,
0x3f => Script::Common,
0x40..=0x5b => Script::Thai,
0x81..=0x82 => Script::Lao,
0x84 => Script::Lao,
0x86..=0x8a => Script::Lao,
0x8c..=0xa3 => Script::Lao,
0xa5 => Script::Lao,
0xa7..=0xbd => Script::Lao,
0xc0..=0xc4 => Script::Lao,
0xc6 => Script::Lao,
0xc8..=0xce => Script::Lao,
0xd0..=0xd9 => Script::Lao,
0xdc..=0xdf => Script::Lao,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pf(b: u8) -> Script {
match b {
0x00..=0x47 => Script::Tibetan,
0x49..=0x6c => Script::Tibetan,
0x71..=0x97 => Script::Tibetan,
0x99..=0xbc => Script::Tibetan,
0xbe..=0xcc => Script::Tibetan,
0xce..=0xd4 => Script::Tibetan,
0xd5..=0xd8 => Script::Common,
0xd9..=0xda => Script::Tibetan,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p10(b: u8) -> Script {
match b {
0x00..=0x9f => Script::Myanmar,
0xa0..=0xc5 => Script::Georgian,
0xc7 => Script::Georgian,
0xcd => Script::Georgian,
0xd0..=0xfa => Script::Georgian,
0xfb => Script::Common,
0xfc..=0xff => Script::Georgian,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p12(b: u8) -> Script {
match b {
0x00..=0x48 => Script::Ethiopic,
0x4a..=0x4d => Script::Ethiopic,
0x50..=0x56 => Script::Ethiopic,
0x58 => Script::Ethiopic,
0x5a..=0x5d => Script::Ethiopic,
0x60..=0x88 => Script::Ethiopic,
0x8a..=0x8d => Script::Ethiopic,
0x90..=0xb0 => Script::Ethiopic,
0xb2..=0xb5 => Script::Ethiopic,
0xb8..=0xbe => Script::Ethiopic,
0xc0 => Script::Ethiopic,
0xc2..=0xc5 => Script::Ethiopic,
0xc8..=0xd6 => Script::Ethiopic,
0xd8..=0xff => Script::Ethiopic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p13(b: u8) -> Script {
match b {
0x00..=0x10 => Script::Ethiopic,
0x12..=0x15 => Script::Ethiopic,
0x18..=0x5a => Script::Ethiopic,
0x5d..=0x7c => Script::Ethiopic,
0x80..=0x99 => Script::Ethiopic,
0xa0..=0xf5 => Script::Cherokee,
0xf8..=0xfd => Script::Cherokee,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p16(b: u8) -> Script {
match b {
0x00..=0x7f => Script::CanadianAboriginal,
0x80..=0x9c => Script::Ogham,
0xa0..=0xea => Script::Runic,
0xeb..=0xed => Script::Common,
0xee..=0xf8 => Script::Runic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p17(b: u8) -> Script {
match b {
0x00..=0x15 => Script::Tagalog,
0x1f => Script::Tagalog,
0x20..=0x34 => Script::Hanunoo,
0x35..=0x36 => Script::Common,
0x40..=0x53 => Script::Buhid,
0x60..=0x6c => Script::Tagbanwa,
0x6e..=0x70 => Script::Tagbanwa,
0x72..=0x73 => Script::Tagbanwa,
0x80..=0xdd => Script::Khmer,
0xe0..=0xe9 => Script::Khmer,
0xf0..=0xf9 => Script::Khmer,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p18(b: u8) -> Script {
match b {
0x00..=0x01 => Script::Mongolian,
0x02..=0x03 => Script::Common,
0x04 => Script::Mongolian,
0x05 => Script::Common,
0x06..=0x19 => Script::Mongolian,
0x20..=0x78 => Script::Mongolian,
0x80..=0xaa => Script::Mongolian,
0xb0..=0xf5 => Script::CanadianAboriginal,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p19(b: u8) -> Script {
match b {
0x00..=0x1e => Script::Limbu,
0x20..=0x2b => Script::Limbu,
0x30..=0x3b => Script::Limbu,
0x40 => Script::Limbu,
0x44..=0x4f => Script::Limbu,
0x50..=0x6d => Script::TaiLe,
0x70..=0x74 => Script::TaiLe,
0x80..=0xab => Script::NewTaiLue,
0xb0..=0xc9 => Script::NewTaiLue,
0xd0..=0xda => Script::NewTaiLue,
0xde..=0xdf => Script::NewTaiLue,
0xe0..=0xff => Script::Khmer,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p1a(b: u8) -> Script {
match b {
0x00..=0x1b => Script::Buginese,
0x1e..=0x1f => Script::Buginese,
0x20..=0x5e => Script::TaiTham,
0x60..=0x7c => Script::TaiTham,
0x7f..=0x89 => Script::TaiTham,
0x90..=0x99 => Script::TaiTham,
0xa0..=0xad => Script::TaiTham,
0xb0..=0xdd => Script::Inherited,
0xe0..=0xeb => Script::Inherited,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p1b(b: u8) -> Script {
match b {
0x00..=0x4c => Script::Balinese,
0x4e..=0x7f => Script::Balinese,
0x80..=0xbf => Script::Sundanese,
0xc0..=0xf3 => Script::Batak,
0xfc..=0xff => Script::Batak,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p1c(b: u8) -> Script {
match b {
0x00..=0x37 => Script::Lepcha,
0x3b..=0x49 => Script::Lepcha,
0x4d..=0x4f => Script::Lepcha,
0x50..=0x7f => Script::OlChiki,
0x80..=0x8a => Script::Cyrillic,
0x90..=0xba => Script::Georgian,
0xbd..=0xbf => Script::Georgian,
0xc0..=0xc7 => Script::Sundanese,
0xd0..=0xd2 => Script::Inherited,
0xd3 => Script::Common,
0xd4..=0xe0 => Script::Inherited,
0xe1 => Script::Common,
0xe2..=0xe8 => Script::Inherited,
0xe9..=0xec => Script::Common,
0xed => Script::Inherited,
0xee..=0xf3 => Script::Common,
0xf4 => Script::Inherited,
0xf5..=0xf7 => Script::Common,
0xf8..=0xf9 => Script::Inherited,
0xfa => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p1d(b: u8) -> Script {
match b {
0x00..=0x25 => Script::Latin,
0x26..=0x2a => Script::Greek,
0x2b => Script::Cyrillic,
0x2c..=0x5c => Script::Latin,
0x5d..=0x61 => Script::Greek,
0x62..=0x65 => Script::Latin,
0x66..=0x6a => Script::Greek,
0x6b..=0x77 => Script::Latin,
0x78 => Script::Cyrillic,
0x79..=0xbe => Script::Latin,
0xbf => Script::Greek,
0xc0..=0xff => Script::Inherited,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p1f(b: u8) -> Script {
match b {
0x00..=0x15 => Script::Greek,
0x18..=0x1d => Script::Greek,
0x20..=0x45 => Script::Greek,
0x48..=0x4d => Script::Greek,
0x50..=0x57 => Script::Greek,
0x59 => Script::Greek,
0x5b => Script::Greek,
0x5d => Script::Greek,
0x5f..=0x7d => Script::Greek,
0x80..=0xb4 => Script::Greek,
0xb6..=0xc4 => Script::Greek,
0xc6..=0xd3 => Script::Greek,
0xd6..=0xdb => Script::Greek,
0xdd..=0xef => Script::Greek,
0xf2..=0xf4 => Script::Greek,
0xf6..=0xfe => Script::Greek,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p20(b: u8) -> Script {
match b {
0x00..=0x0b => Script::Common,
0x0c..=0x0d => Script::Inherited,
0x0e..=0x64 => Script::Common,
0x66..=0x70 => Script::Common,
0x71 => Script::Latin,
0x74..=0x7e => Script::Common,
0x7f => Script::Latin,
0x80..=0x8e => Script::Common,
0x90..=0x9c => Script::Latin,
0xa0..=0xc1 => Script::Common,
0xd0..=0xf0 => Script::Inherited,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p21(b: u8) -> Script {
match b {
0x00..=0x25 => Script::Common,
0x26 => Script::Greek,
0x27..=0x29 => Script::Common,
0x2a..=0x2b => Script::Latin,
0x2c..=0x31 => Script::Common,
0x32 => Script::Latin,
0x33..=0x4d => Script::Common,
0x4e => Script::Latin,
0x4f..=0x5f => Script::Common,
0x60..=0x88 => Script::Latin,
0x89..=0x8b => Script::Common,
0x90..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p24(b: u8) -> Script {
match b {
0x00..=0x29 => Script::Common,
0x40..=0x4a => Script::Common,
0x60..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p2b(b: u8) -> Script {
match b {
0x00..=0x73 => Script::Common,
0x76..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p2c(b: u8) -> Script {
match b {
0x00..=0x5f => Script::Glagolitic,
0x60..=0x7f => Script::Latin,
0x80..=0xf3 => Script::Coptic,
0xf9..=0xff => Script::Coptic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p2d(b: u8) -> Script {
match b {
0x00..=0x25 => Script::Georgian,
0x27 => Script::Georgian,
0x2d => Script::Georgian,
0x30..=0x67 => Script::Tifinagh,
0x6f..=0x70 => Script::Tifinagh,
0x7f => Script::Tifinagh,
0x80..=0x96 => Script::Ethiopic,
0xa0..=0xa6 => Script::Ethiopic,
0xa8..=0xae => Script::Ethiopic,
0xb0..=0xb6 => Script::Ethiopic,
0xb8..=0xbe => Script::Ethiopic,
0xc0..=0xc6 => Script::Ethiopic,
0xc8..=0xce => Script::Ethiopic,
0xd0..=0xd6 => Script::Ethiopic,
0xd8..=0xde => Script::Ethiopic,
0xe0..=0xff => Script::Cyrillic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p2e(b: u8) -> Script {
match b {
0x00..=0x5d => Script::Common,
0x80..=0x99 => Script::Han,
0x9b..=0xf3 => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p2f(b: u8) -> Script {
match b {
0x00..=0xd5 => Script::Han,
0xf0..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p30(b: u8) -> Script {
match b {
0x00..=0x04 => Script::Common,
0x05 => Script::Han,
0x06 => Script::Common,
0x07 => Script::Han,
0x08..=0x20 => Script::Common,
0x21..=0x29 => Script::Han,
0x2a..=0x2d => Script::Inherited,
0x2e..=0x2f => Script::Hangul,
0x30..=0x37 => Script::Common,
0x38..=0x3b => Script::Han,
0x3c..=0x3f => Script::Common,
0x41..=0x96 => Script::Hiragana,
0x99..=0x9a => Script::Inherited,
0x9b..=0x9c => Script::Common,
0x9d..=0x9f => Script::Hiragana,
0xa0 => Script::Common,
0xa1..=0xfa => Script::Katakana,
0xfb..=0xfc => Script::Common,
0xfd..=0xff => Script::Katakana,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p31(b: u8) -> Script {
match b {
0x05..=0x2f => Script::Bopomofo,
0x31..=0x8e => Script::Hangul,
0x90..=0x9f => Script::Common,
0xa0..=0xbf => Script::Bopomofo,
0xc0..=0xe5 => Script::Common,
0xef => Script::Common,
0xf0..=0xff => Script::Katakana,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p32(b: u8) -> Script {
match b {
0x00..=0x1e => Script::Hangul,
0x20..=0x5f => Script::Common,
0x60..=0x7e => Script::Hangul,
0x7f..=0xcf => Script::Common,
0xd0..=0xfe => Script::Katakana,
0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p33(b: u8) -> Script {
match b {
0x00..=0x57 => Script::Katakana,
0x58..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_p4d(b: u8) -> Script {
match b {
0x00..=0xbf => Script::Han,
0xc0..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pa4(b: u8) -> Script {
match b {
0x00..=0x8c => Script::Yi,
0x90..=0xc6 => Script::Yi,
0xd0..=0xff => Script::Lisu,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pa6(b: u8) -> Script {
match b {
0x00..=0x2b => Script::Vai,
0x40..=0x9f => Script::Cyrillic,
0xa0..=0xf7 => Script::Bamum,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pa7(b: u8) -> Script {
match b {
0x00..=0x21 => Script::Common,
0x22..=0x87 => Script::Latin,
0x88..=0x8a => Script::Common,
0x8b..=0xdc => Script::Latin,
0xf1..=0xff => Script::Latin,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pa8(b: u8) -> Script {
match b {
0x00..=0x2c => Script::SylotiNagri,
0x30..=0x39 => Script::Common,
0x40..=0x77 => Script::PhagsPa,
0x80..=0xc5 => Script::Saurashtra,
0xce..=0xd9 => Script::Saurashtra,
0xe0..=0xff => Script::Devanagari,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pa9(b: u8) -> Script {
match b {
0x00..=0x2d => Script::KayahLi,
0x2e => Script::Common,
0x2f => Script::KayahLi,
0x30..=0x53 => Script::Rejang,
0x5f => Script::Rejang,
0x60..=0x7c => Script::Hangul,
0x80..=0xcd => Script::Javanese,
0xcf => Script::Common,
0xd0..=0xd9 => Script::Javanese,
0xde..=0xdf => Script::Javanese,
0xe0..=0xfe => Script::Myanmar,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_paa(b: u8) -> Script {
match b {
0x00..=0x36 => Script::Cham,
0x40..=0x4d => Script::Cham,
0x50..=0x59 => Script::Cham,
0x5c..=0x5f => Script::Cham,
0x60..=0x7f => Script::Myanmar,
0x80..=0xc2 => Script::TaiViet,
0xdb..=0xdf => Script::TaiViet,
0xe0..=0xf6 => Script::MeeteiMayek,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pab(b: u8) -> Script {
match b {
0x01..=0x06 => Script::Ethiopic,
0x09..=0x0e => Script::Ethiopic,
0x11..=0x16 => Script::Ethiopic,
0x20..=0x26 => Script::Ethiopic,
0x28..=0x2e => Script::Ethiopic,
0x30..=0x5a => Script::Latin,
0x5b => Script::Common,
0x5c..=0x64 => Script::Latin,
0x65 => Script::Greek,
0x66..=0x69 => Script::Latin,
0x6a..=0x6b => Script::Common,
0x70..=0xbf => Script::Cherokee,
0xc0..=0xed => Script::MeeteiMayek,
0xf0..=0xf9 => Script::MeeteiMayek,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pd7(b: u8) -> Script {
match b {
0x00..=0xa3 => Script::Hangul,
0xb0..=0xc6 => Script::Hangul,
0xcb..=0xfb => Script::Hangul,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pfa(b: u8) -> Script {
match b {
0x00..=0x6d => Script::Han,
0x70..=0xd9 => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pfb(b: u8) -> Script {
match b {
0x00..=0x06 => Script::Latin,
0x13..=0x17 => Script::Armenian,
0x1d..=0x36 => Script::Hebrew,
0x38..=0x3c => Script::Hebrew,
0x3e => Script::Hebrew,
0x40..=0x41 => Script::Hebrew,
0x43..=0x44 => Script::Hebrew,
0x46..=0x4f => Script::Hebrew,
0x50..=0xff => Script::Arabic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pfd(b: u8) -> Script {
match b {
0x00..=0x3d => Script::Arabic,
0x3e..=0x3f => Script::Common,
0x40..=0xcf => Script::Arabic,
0xf0..=0xff => Script::Arabic,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pfe(b: u8) -> Script {
match b {
0x00..=0x0f => Script::Inherited,
0x10..=0x19 => Script::Common,
0x20..=0x2d => Script::Inherited,
0x2e..=0x2f => Script::Cyrillic,
0x30..=0x52 => Script::Common,
0x54..=0x66 => Script::Common,
0x68..=0x6b => Script::Common,
0x70..=0x74 => Script::Arabic,
0x76..=0xfc => Script::Arabic,
0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "bmp")]
const fn sc_pff(b: u8) -> Script {
match b {
0x01..=0x20 => Script::Common,
0x21..=0x3a => Script::Latin,
0x3b..=0x40 => Script::Common,
0x41..=0x5a => Script::Latin,
0x5b..=0x65 => Script::Common,
0x66..=0x6f => Script::Katakana,
0x70 => Script::Common,
0x71..=0x9d => Script::Katakana,
0x9e..=0x9f => Script::Common,
0xa0..=0xbe => Script::Hangul,
0xc2..=0xc7 => Script::Hangul,
0xca..=0xcf => Script::Hangul,
0xd2..=0xd7 => Script::Hangul,
0xda..=0xdc => Script::Hangul,
0xe0..=0xe6 => Script::Common,
0xe8..=0xee => Script::Common,
0xf9..=0xfd => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p100(b: u8) -> Script {
match b {
0x00..=0x0b => Script::LinearB,
0x0d..=0x26 => Script::LinearB,
0x28..=0x3a => Script::LinearB,
0x3c..=0x3d => Script::LinearB,
0x3f..=0x4d => Script::LinearB,
0x50..=0x5d => Script::LinearB,
0x80..=0xfa => Script::LinearB,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p101(b: u8) -> Script {
match b {
0x00..=0x02 => Script::Common,
0x07..=0x33 => Script::Common,
0x37..=0x3f => Script::Common,
0x40..=0x8e => Script::Greek,
0x90..=0x9c => Script::Common,
0xa0 => Script::Greek,
0xd0..=0xfc => Script::Common,
0xfd => Script::Inherited,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p102(b: u8) -> Script {
match b {
0x80..=0x9c => Script::Lycian,
0xa0..=0xd0 => Script::Carian,
0xe0 => Script::Inherited,
0xe1..=0xfb => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p103(b: u8) -> Script {
match b {
0x00..=0x23 => Script::OldItalic,
0x2d..=0x2f => Script::OldItalic,
0x30..=0x4a => Script::Gothic,
0x50..=0x7a => Script::OldPermic,
0x80..=0x9d => Script::Ugaritic,
0x9f => Script::Ugaritic,
0xa0..=0xc3 => Script::OldPersian,
0xc8..=0xd5 => Script::OldPersian,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p104(b: u8) -> Script {
match b {
0x00..=0x4f => Script::Deseret,
0x50..=0x7f => Script::Shavian,
0x80..=0x9d => Script::Osmanya,
0xa0..=0xa9 => Script::Osmanya,
0xb0..=0xd3 => Script::Osage,
0xd8..=0xfb => Script::Osage,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p105(b: u8) -> Script {
match b {
0x00..=0x27 => Script::Elbasan,
0x30..=0x63 => Script::CaucasianAlbanian,
0x6f => Script::CaucasianAlbanian,
0x70..=0x7a => Script::Vithkuqi,
0x7c..=0x8a => Script::Vithkuqi,
0x8c..=0x92 => Script::Vithkuqi,
0x94..=0x95 => Script::Vithkuqi,
0x97..=0xa1 => Script::Vithkuqi,
0xa3..=0xb1 => Script::Vithkuqi,
0xb3..=0xb9 => Script::Vithkuqi,
0xbb..=0xbc => Script::Vithkuqi,
0xc0..=0xf3 => Script::Todhri,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p107(b: u8) -> Script {
match b {
0x00..=0x36 => Script::LinearA,
0x40..=0x55 => Script::LinearA,
0x60..=0x67 => Script::LinearA,
0x80..=0x85 => Script::Latin,
0x87..=0xb0 => Script::Latin,
0xb2..=0xba => Script::Latin,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p108(b: u8) -> Script {
match b {
0x00..=0x05 => Script::Cypriot,
0x08 => Script::Cypriot,
0x0a..=0x35 => Script::Cypriot,
0x37..=0x38 => Script::Cypriot,
0x3c => Script::Cypriot,
0x3f => Script::Cypriot,
0x40..=0x55 => Script::ImperialAramaic,
0x57..=0x5f => Script::ImperialAramaic,
0x60..=0x7f => Script::Palmyrene,
0x80..=0x9e => Script::Nabataean,
0xa7..=0xaf => Script::Nabataean,
0xe0..=0xf2 => Script::Hatran,
0xf4..=0xf5 => Script::Hatran,
0xfb..=0xff => Script::Hatran,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p109(b: u8) -> Script {
match b {
0x00..=0x1b => Script::Phoenician,
0x1f => Script::Phoenician,
0x20..=0x39 => Script::Lydian,
0x3f => Script::Lydian,
0x40..=0x59 => Script::Sidetic,
0x80..=0x9f => Script::MeroiticHieroglyphs,
0xa0..=0xb7 => Script::MeroiticCursive,
0xbc..=0xcf => Script::MeroiticCursive,
0xd2..=0xff => Script::MeroiticCursive,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p10a(b: u8) -> Script {
match b {
0x00..=0x03 => Script::Kharoshthi,
0x05..=0x06 => Script::Kharoshthi,
0x0c..=0x13 => Script::Kharoshthi,
0x15..=0x17 => Script::Kharoshthi,
0x19..=0x35 => Script::Kharoshthi,
0x38..=0x3a => Script::Kharoshthi,
0x3f..=0x48 => Script::Kharoshthi,
0x50..=0x58 => Script::Kharoshthi,
0x60..=0x7f => Script::OldSouthArabian,
0x80..=0x9f => Script::OldNorthArabian,
0xc0..=0xe6 => Script::Manichaean,
0xeb..=0xf6 => Script::Manichaean,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p10b(b: u8) -> Script {
match b {
0x00..=0x35 => Script::Avestan,
0x39..=0x3f => Script::Avestan,
0x40..=0x55 => Script::InscriptionalParthian,
0x58..=0x5f => Script::InscriptionalParthian,
0x60..=0x72 => Script::InscriptionalPahlavi,
0x78..=0x7f => Script::InscriptionalPahlavi,
0x80..=0x91 => Script::PsalterPahlavi,
0x99..=0x9c => Script::PsalterPahlavi,
0xa9..=0xaf => Script::PsalterPahlavi,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p10c(b: u8) -> Script {
match b {
0x00..=0x48 => Script::OldTurkic,
0x80..=0xb2 => Script::OldHungarian,
0xc0..=0xf2 => Script::OldHungarian,
0xfa..=0xff => Script::OldHungarian,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p10d(b: u8) -> Script {
match b {
0x00..=0x27 => Script::HanifiRohingya,
0x30..=0x39 => Script::HanifiRohingya,
0x40..=0x65 => Script::Garay,
0x69..=0x85 => Script::Garay,
0x8e..=0x8f => Script::Garay,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p10e(b: u8) -> Script {
match b {
0x60..=0x7e => Script::Arabic,
0x80..=0xa9 => Script::Yezidi,
0xab..=0xad => Script::Yezidi,
0xb0..=0xb1 => Script::Yezidi,
0xc2..=0xc7 => Script::Arabic,
0xd0..=0xd8 => Script::Arabic,
0xfa..=0xff => Script::Arabic,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p10f(b: u8) -> Script {
match b {
0x00..=0x27 => Script::OldSogdian,
0x30..=0x59 => Script::Sogdian,
0x70..=0x89 => Script::OldUyghur,
0xb0..=0xcb => Script::Chorasmian,
0xe0..=0xf6 => Script::Elymaic,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p110(b: u8) -> Script {
match b {
0x00..=0x4d => Script::Brahmi,
0x52..=0x75 => Script::Brahmi,
0x7f => Script::Brahmi,
0x80..=0xc2 => Script::Kaithi,
0xcd => Script::Kaithi,
0xd0..=0xe8 => Script::SoraSompeng,
0xf0..=0xf9 => Script::SoraSompeng,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p111(b: u8) -> Script {
match b {
0x00..=0x34 => Script::Chakma,
0x36..=0x47 => Script::Chakma,
0x50..=0x76 => Script::Mahajani,
0x80..=0xdf => Script::Sharada,
0xe1..=0xf4 => Script::Sinhala,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p112(b: u8) -> Script {
match b {
0x00..=0x11 => Script::Khojki,
0x13..=0x41 => Script::Khojki,
0x80..=0x86 => Script::Multani,
0x88 => Script::Multani,
0x8a..=0x8d => Script::Multani,
0x8f..=0x9d => Script::Multani,
0x9f..=0xa9 => Script::Multani,
0xb0..=0xea => Script::Khudawadi,
0xf0..=0xf9 => Script::Khudawadi,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p113(b: u8) -> Script {
match b {
0x00..=0x03 => Script::Grantha,
0x05..=0x0c => Script::Grantha,
0x0f..=0x10 => Script::Grantha,
0x13..=0x28 => Script::Grantha,
0x2a..=0x30 => Script::Grantha,
0x32..=0x33 => Script::Grantha,
0x35..=0x39 => Script::Grantha,
0x3b => Script::Inherited,
0x3c..=0x44 => Script::Grantha,
0x47..=0x48 => Script::Grantha,
0x4b..=0x4d => Script::Grantha,
0x50 => Script::Grantha,
0x57 => Script::Grantha,
0x5d..=0x63 => Script::Grantha,
0x66..=0x6c => Script::Grantha,
0x70..=0x74 => Script::Grantha,
0x80..=0x89 => Script::TuluTigalari,
0x8b => Script::TuluTigalari,
0x8e => Script::TuluTigalari,
0x90..=0xb5 => Script::TuluTigalari,
0xb7..=0xc0 => Script::TuluTigalari,
0xc2 => Script::TuluTigalari,
0xc5 => Script::TuluTigalari,
0xc7..=0xca => Script::TuluTigalari,
0xcc..=0xd5 => Script::TuluTigalari,
0xd7..=0xd8 => Script::TuluTigalari,
0xe1..=0xe2 => Script::TuluTigalari,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p114(b: u8) -> Script {
match b {
0x00..=0x5b => Script::Newa,
0x5d..=0x61 => Script::Newa,
0x80..=0xc7 => Script::Tirhuta,
0xd0..=0xd9 => Script::Tirhuta,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p115(b: u8) -> Script {
match b {
0x80..=0xb5 => Script::Siddham,
0xb8..=0xdd => Script::Siddham,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p116(b: u8) -> Script {
match b {
0x00..=0x44 => Script::Modi,
0x50..=0x59 => Script::Modi,
0x60..=0x6c => Script::Mongolian,
0x80..=0xb9 => Script::Takri,
0xc0..=0xc9 => Script::Takri,
0xd0..=0xe3 => Script::Myanmar,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p117(b: u8) -> Script {
match b {
0x00..=0x1a => Script::Ahom,
0x1d..=0x2b => Script::Ahom,
0x30..=0x46 => Script::Ahom,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p118(b: u8) -> Script {
match b {
0x00..=0x3b => Script::Dogra,
0xa0..=0xf2 => Script::WarangCiti,
0xff => Script::WarangCiti,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p119(b: u8) -> Script {
match b {
0x00..=0x06 => Script::DivesAkuru,
0x09 => Script::DivesAkuru,
0x0c..=0x13 => Script::DivesAkuru,
0x15..=0x16 => Script::DivesAkuru,
0x18..=0x35 => Script::DivesAkuru,
0x37..=0x38 => Script::DivesAkuru,
0x3b..=0x46 => Script::DivesAkuru,
0x50..=0x59 => Script::DivesAkuru,
0xa0..=0xa7 => Script::Nandinagari,
0xaa..=0xd7 => Script::Nandinagari,
0xda..=0xe4 => Script::Nandinagari,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p11a(b: u8) -> Script {
match b {
0x00..=0x47 => Script::ZanabazarSquare,
0x50..=0xa2 => Script::Soyombo,
0xb0..=0xbf => Script::CanadianAboriginal,
0xc0..=0xf8 => Script::PauCinHau,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p11b(b: u8) -> Script {
match b {
0x00..=0x09 => Script::Devanagari,
0x60..=0x67 => Script::Sharada,
0xc0..=0xe1 => Script::Sunuwar,
0xf0..=0xf9 => Script::Sunuwar,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p11c(b: u8) -> Script {
match b {
0x00..=0x08 => Script::Bhaiksuki,
0x0a..=0x36 => Script::Bhaiksuki,
0x38..=0x45 => Script::Bhaiksuki,
0x50..=0x6c => Script::Bhaiksuki,
0x70..=0x8f => Script::Marchen,
0x92..=0xa7 => Script::Marchen,
0xa9..=0xb6 => Script::Marchen,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p11d(b: u8) -> Script {
match b {
0x00..=0x06 => Script::MasaramGondi,
0x08..=0x09 => Script::MasaramGondi,
0x0b..=0x36 => Script::MasaramGondi,
0x3a => Script::MasaramGondi,
0x3c..=0x3d => Script::MasaramGondi,
0x3f..=0x47 => Script::MasaramGondi,
0x50..=0x59 => Script::MasaramGondi,
0x60..=0x65 => Script::GunjalaGondi,
0x67..=0x68 => Script::GunjalaGondi,
0x6a..=0x8e => Script::GunjalaGondi,
0x90..=0x91 => Script::GunjalaGondi,
0x93..=0x98 => Script::GunjalaGondi,
0xa0..=0xa9 => Script::GunjalaGondi,
0xb0..=0xdb => Script::TolongSiki,
0xe0..=0xe9 => Script::TolongSiki,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p11e(b: u8) -> Script {
match b {
0xe0..=0xf8 => Script::Makasar,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p11f(b: u8) -> Script {
match b {
0x00..=0x10 => Script::Kawi,
0x12..=0x3a => Script::Kawi,
0x3e..=0x5a => Script::Kawi,
0xb0 => Script::Lisu,
0xc0..=0xf1 => Script::Tamil,
0xff => Script::Tamil,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p123(b: u8) -> Script {
match b {
0x00..=0x99 => Script::Cuneiform,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p124(b: u8) -> Script {
match b {
0x00..=0x6e => Script::Cuneiform,
0x70..=0x74 => Script::Cuneiform,
0x80..=0xff => Script::Cuneiform,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p125(b: u8) -> Script {
match b {
0x00..=0x43 => Script::Cuneiform,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p12f(b: u8) -> Script {
match b {
0x90..=0xf2 => Script::CyproMinoan,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p134(b: u8) -> Script {
match b {
0x00..=0x55 => Script::EgyptianHieroglyphs,
0x60..=0xff => Script::EgyptianHieroglyphs,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p143(b: u8) -> Script {
match b {
0x00..=0xfa => Script::EgyptianHieroglyphs,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p146(b: u8) -> Script {
match b {
0x00..=0x46 => Script::AnatolianHieroglyphs,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p161(b: u8) -> Script {
match b {
0x00..=0x39 => Script::GurungKhema,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p16a(b: u8) -> Script {
match b {
0x00..=0x38 => Script::Bamum,
0x40..=0x5e => Script::Mro,
0x60..=0x69 => Script::Mro,
0x6e..=0x6f => Script::Mro,
0x70..=0xbe => Script::Tangsa,
0xc0..=0xc9 => Script::Tangsa,
0xd0..=0xed => Script::BassaVah,
0xf0..=0xf5 => Script::BassaVah,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p16b(b: u8) -> Script {
match b {
0x00..=0x45 => Script::PahawhHmong,
0x50..=0x59 => Script::PahawhHmong,
0x5b..=0x61 => Script::PahawhHmong,
0x63..=0x77 => Script::PahawhHmong,
0x7d..=0x8f => Script::PahawhHmong,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p16d(b: u8) -> Script {
match b {
0x40..=0x79 => Script::KiratRai,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p16e(b: u8) -> Script {
match b {
0x40..=0x9a => Script::Medefaidrin,
0xa0..=0xb8 => Script::BeriaErfe,
0xbb..=0xd3 => Script::BeriaErfe,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p16f(b: u8) -> Script {
match b {
0x00..=0x4a => Script::Miao,
0x4f..=0x87 => Script::Miao,
0x8f..=0x9f => Script::Miao,
0xe0 => Script::Tangut,
0xe1 => Script::Nushu,
0xe2..=0xe3 => Script::Han,
0xe4 => Script::KhitanSmallScript,
0xf0..=0xf6 => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p18c(b: u8) -> Script {
match b {
0x00..=0xd5 => Script::KhitanSmallScript,
0xff => Script::KhitanSmallScript,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p18d(b: u8) -> Script {
match b {
0x00..=0x1e => Script::Tangut,
0x80..=0xf2 => Script::Tangut,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1af(b: u8) -> Script {
match b {
0xf0..=0xf3 => Script::Katakana,
0xf5..=0xfb => Script::Katakana,
0xfd..=0xfe => Script::Katakana,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1b0(b: u8) -> Script {
match b {
0x00 => Script::Katakana,
0x01..=0xff => Script::Hiragana,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1b1(b: u8) -> Script {
match b {
0x00..=0x1f => Script::Hiragana,
0x20..=0x22 => Script::Katakana,
0x32 => Script::Hiragana,
0x50..=0x52 => Script::Hiragana,
0x55 => Script::Katakana,
0x64..=0x67 => Script::Katakana,
0x70..=0xff => Script::Nushu,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1b2(b: u8) -> Script {
match b {
0x00..=0xfb => Script::Nushu,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1bc(b: u8) -> Script {
match b {
0x00..=0x6a => Script::Duployan,
0x70..=0x7c => Script::Duployan,
0x80..=0x88 => Script::Duployan,
0x90..=0x99 => Script::Duployan,
0x9c..=0x9f => Script::Duployan,
0xa0..=0xa3 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1cc(b: u8) -> Script {
match b {
0x00..=0xfc => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1ce(b: u8) -> Script {
match b {
0x00..=0xb3 => Script::Common,
0xba..=0xd0 => Script::Common,
0xe0..=0xf0 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1cf(b: u8) -> Script {
match b {
0x00..=0x2d => Script::Inherited,
0x30..=0x46 => Script::Inherited,
0x50..=0xc3 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d0(b: u8) -> Script {
match b {
0x00..=0xf5 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d1(b: u8) -> Script {
match b {
0x00..=0x26 => Script::Common,
0x29..=0x66 => Script::Common,
0x67..=0x69 => Script::Inherited,
0x6a..=0x7a => Script::Common,
0x7b..=0x82 => Script::Inherited,
0x83..=0x84 => Script::Common,
0x85..=0x8b => Script::Inherited,
0x8c..=0xa9 => Script::Common,
0xaa..=0xad => Script::Inherited,
0xae..=0xea => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d2(b: u8) -> Script {
match b {
0x00..=0x45 => Script::Greek,
0xc0..=0xd3 => Script::Common,
0xe0..=0xf3 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d3(b: u8) -> Script {
match b {
0x00..=0x56 => Script::Common,
0x60..=0x78 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d4(b: u8) -> Script {
match b {
0x00..=0x54 => Script::Common,
0x56..=0x9c => Script::Common,
0x9e..=0x9f => Script::Common,
0xa2 => Script::Common,
0xa5..=0xa6 => Script::Common,
0xa9..=0xac => Script::Common,
0xae..=0xb9 => Script::Common,
0xbb => Script::Common,
0xbd..=0xc3 => Script::Common,
0xc5..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d5(b: u8) -> Script {
match b {
0x00..=0x05 => Script::Common,
0x07..=0x0a => Script::Common,
0x0d..=0x14 => Script::Common,
0x16..=0x1c => Script::Common,
0x1e..=0x39 => Script::Common,
0x3b..=0x3e => Script::Common,
0x40..=0x44 => Script::Common,
0x46 => Script::Common,
0x4a..=0x50 => Script::Common,
0x52..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d6(b: u8) -> Script {
match b {
0x00..=0xa5 => Script::Common,
0xa8..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1d7(b: u8) -> Script {
match b {
0x00..=0xcb => Script::Common,
0xce..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1da(b: u8) -> Script {
match b {
0x00..=0x8b => Script::SignWriting,
0x9b..=0x9f => Script::SignWriting,
0xa1..=0xaf => Script::SignWriting,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1df(b: u8) -> Script {
match b {
0x00..=0x1e => Script::Latin,
0x25..=0x2a => Script::Latin,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e0(b: u8) -> Script {
match b {
0x00..=0x06 => Script::Glagolitic,
0x08..=0x18 => Script::Glagolitic,
0x1b..=0x21 => Script::Glagolitic,
0x23..=0x24 => Script::Glagolitic,
0x26..=0x2a => Script::Glagolitic,
0x30..=0x6d => Script::Cyrillic,
0x8f => Script::Cyrillic,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e1(b: u8) -> Script {
match b {
0x00..=0x2c => Script::NyiakengPuachueHmong,
0x30..=0x3d => Script::NyiakengPuachueHmong,
0x40..=0x49 => Script::NyiakengPuachueHmong,
0x4e..=0x4f => Script::NyiakengPuachueHmong,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e2(b: u8) -> Script {
match b {
0x90..=0xae => Script::Toto,
0xc0..=0xf9 => Script::Wancho,
0xff => Script::Wancho,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e4(b: u8) -> Script {
match b {
0xd0..=0xf9 => Script::NagMundari,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e5(b: u8) -> Script {
match b {
0xd0..=0xfa => Script::OlOnal,
0xff => Script::OlOnal,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e6(b: u8) -> Script {
match b {
0xc0..=0xde => Script::TaiYo,
0xe0..=0xf5 => Script::TaiYo,
0xfe..=0xff => Script::TaiYo,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e7(b: u8) -> Script {
match b {
0xe0..=0xe6 => Script::Ethiopic,
0xe8..=0xeb => Script::Ethiopic,
0xed..=0xee => Script::Ethiopic,
0xf0..=0xfe => Script::Ethiopic,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e8(b: u8) -> Script {
match b {
0x00..=0xc4 => Script::MendeKikakui,
0xc7..=0xd6 => Script::MendeKikakui,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1e9(b: u8) -> Script {
match b {
0x00..=0x4b => Script::Adlam,
0x50..=0x59 => Script::Adlam,
0x5e..=0x5f => Script::Adlam,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1ec(b: u8) -> Script {
match b {
0x71..=0xb4 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1ed(b: u8) -> Script {
match b {
0x01..=0x3d => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1ee(b: u8) -> Script {
match b {
0x00..=0x03 => Script::Arabic,
0x05..=0x1f => Script::Arabic,
0x21..=0x22 => Script::Arabic,
0x24 => Script::Arabic,
0x27 => Script::Arabic,
0x29..=0x32 => Script::Arabic,
0x34..=0x37 => Script::Arabic,
0x39 => Script::Arabic,
0x3b => Script::Arabic,
0x42 => Script::Arabic,
0x47 => Script::Arabic,
0x49 => Script::Arabic,
0x4b => Script::Arabic,
0x4d..=0x4f => Script::Arabic,
0x51..=0x52 => Script::Arabic,
0x54 => Script::Arabic,
0x57 => Script::Arabic,
0x59 => Script::Arabic,
0x5b => Script::Arabic,
0x5d => Script::Arabic,
0x5f => Script::Arabic,
0x61..=0x62 => Script::Arabic,
0x64 => Script::Arabic,
0x67..=0x6a => Script::Arabic,
0x6c..=0x72 => Script::Arabic,
0x74..=0x77 => Script::Arabic,
0x79..=0x7c => Script::Arabic,
0x7e => Script::Arabic,
0x80..=0x89 => Script::Arabic,
0x8b..=0x9b => Script::Arabic,
0xa1..=0xa3 => Script::Arabic,
0xa5..=0xa9 => Script::Arabic,
0xab..=0xbb => Script::Arabic,
0xf0..=0xf1 => Script::Arabic,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1f0(b: u8) -> Script {
match b {
0x00..=0x2b => Script::Common,
0x30..=0x93 => Script::Common,
0xa0..=0xae => Script::Common,
0xb1..=0xbf => Script::Common,
0xc1..=0xcf => Script::Common,
0xd1..=0xf5 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1f1(b: u8) -> Script {
match b {
0x00..=0xad => Script::Common,
0xe6..=0xff => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1f2(b: u8) -> Script {
match b {
0x00 => Script::Hiragana,
0x01..=0x02 => Script::Common,
0x10..=0x3b => Script::Common,
0x40..=0x48 => Script::Common,
0x50..=0x51 => Script::Common,
0x60..=0x65 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1f6(b: u8) -> Script {
match b {
0x00..=0xd8 => Script::Common,
0xdc..=0xec => Script::Common,
0xf0..=0xfc => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1f7(b: u8) -> Script {
match b {
0x00..=0xd9 => Script::Common,
0xe0..=0xeb => Script::Common,
0xf0 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1f8(b: u8) -> Script {
match b {
0x00..=0x0b => Script::Common,
0x10..=0x47 => Script::Common,
0x50..=0x59 => Script::Common,
0x60..=0x87 => Script::Common,
0x90..=0xad => Script::Common,
0xb0..=0xbb => Script::Common,
0xc0..=0xc1 => Script::Common,
0xd0..=0xd8 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1fa(b: u8) -> Script {
match b {
0x00..=0x57 => Script::Common,
0x60..=0x6d => Script::Common,
0x70..=0x7c => Script::Common,
0x80..=0x8a => Script::Common,
0x8e..=0xc6 => Script::Common,
0xc8 => Script::Common,
0xcd..=0xdc => Script::Common,
0xdf..=0xea => Script::Common,
0xef..=0xf8 => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p1fb(b: u8) -> Script {
match b {
0x00..=0x92 => Script::Common,
0x94..=0xfa => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p2a6(b: u8) -> Script {
match b {
0x00..=0xdf => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p2b8(b: u8) -> Script {
match b {
0x00..=0x1d => Script::Han,
0x20..=0xff => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p2ce(b: u8) -> Script {
match b {
0x00..=0xad => Script::Han,
0xb0..=0xff => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p2eb(b: u8) -> Script {
match b {
0x00..=0xe0 => Script::Han,
0xf0..=0xff => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p2ee(b: u8) -> Script {
match b {
0x00..=0x5d => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p2fa(b: u8) -> Script {
match b {
0x00..=0x1d => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p313(b: u8) -> Script {
match b {
0x00..=0x4a => Script::Han,
0x50..=0xff => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_p334(b: u8) -> Script {
match b {
0x00..=0x79 => Script::Han,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_pe00(b: u8) -> Script {
match b {
0x01 => Script::Common,
0x20..=0x7f => Script::Common,
_ => Script::Unknown,
}
}
#[cfg(feature = "full")]
const fn sc_pe01(b: u8) -> Script {
match b {
0x00..=0xef => Script::Inherited,
_ => Script::Unknown,
}
}
#[inline]
pub(crate) const fn script_extensions(cp: u32) -> Option<&'static [Script]> {
match cp >> 8 {
#[cfg(feature = "ascii")]
0x000 => scx_p0(cp as u8),
#[cfg(feature = "bmp")]
0x002 => scx_p2(cp as u8),
#[cfg(feature = "bmp")]
0x003 => scx_p3(cp as u8),
#[cfg(feature = "bmp")]
0x004 => scx_p4(cp as u8),
#[cfg(feature = "bmp")]
0x005 => scx_p5(cp as u8),
#[cfg(feature = "bmp")]
0x006 => scx_p6(cp as u8),
#[cfg(feature = "bmp")]
0x009 => scx_p9(cp as u8),
#[cfg(feature = "bmp")]
0x00a => scx_pa(cp as u8),
#[cfg(feature = "bmp")]
0x00b => scx_pb(cp as u8),
#[cfg(feature = "bmp")]
0x00c => scx_pc(cp as u8),
#[cfg(feature = "bmp")]
0x010 => scx_p10(cp as u8),
#[cfg(feature = "bmp")]
0x016 => scx_p16(cp as u8),
#[cfg(feature = "bmp")]
0x017 => scx_p17(cp as u8),
#[cfg(feature = "bmp")]
0x018 => scx_p18(cp as u8),
#[cfg(feature = "bmp")]
0x01c => scx_p1c(cp as u8),
#[cfg(feature = "bmp")]
0x01d => scx_p1d(cp as u8),
#[cfg(feature = "bmp")]
0x020 => scx_p20(cp as u8),
#[cfg(feature = "bmp")]
0x02e => scx_p2e(cp as u8),
#[cfg(feature = "bmp")]
0x02f => scx_p2f(cp as u8),
#[cfg(feature = "bmp")]
0x030 => scx_p30(cp as u8),
#[cfg(feature = "bmp")]
0x031 => scx_p31(cp as u8),
#[cfg(feature = "bmp")]
0x032 => scx_p32(cp as u8),
#[cfg(feature = "bmp")]
0x033 => scx_p33(cp as u8),
#[cfg(feature = "bmp")]
0x0a6 => scx_pa6(cp as u8),
#[cfg(feature = "bmp")]
0x0a7 => scx_pa7(cp as u8),
#[cfg(feature = "bmp")]
0x0a8 => scx_pa8(cp as u8),
#[cfg(feature = "bmp")]
0x0a9 => scx_pa9(cp as u8),
#[cfg(feature = "bmp")]
0x0fd => scx_pfd(cp as u8),
#[cfg(feature = "bmp")]
0x0fe => scx_pfe(cp as u8),
#[cfg(feature = "bmp")]
0x0ff => scx_pff(cp as u8),
#[cfg(feature = "full")]
0x101 => scx_p101(cp as u8),
#[cfg(feature = "full")]
0x102 => scx_p102(cp as u8),
#[cfg(feature = "full")]
0x10a => scx_p10a(cp as u8),
#[cfg(feature = "full")]
0x113 => scx_p113(cp as u8),
#[cfg(feature = "full")]
0x11f => scx_p11f(cp as u8),
#[cfg(feature = "full")]
0x1bc => scx_p1bc(cp as u8),
#[cfg(feature = "full")]
0x1d3 => scx_p1d3(cp as u8),
#[cfg(feature = "full")]
0x1f2 => scx_p1f2(cp as u8),
_ => None,
}
}
#[cfg(feature = "ascii")]
const fn scx_p0(b: u8) -> Option<&'static [Script]> {
match b {
#[cfg(feature = "latin1")]
0xb7 => Some(SCX_0),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p2(b: u8) -> Option<&'static [Script]> {
match b {
0xbc => Some(SCX_1),
0xc7 => Some(SCX_2),
0xc9..=0xcb => Some(SCX_2),
0xcd => Some(SCX_3),
0xd7 => Some(SCX_4),
0xd9 => Some(SCX_2),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p3(b: u8) -> Option<&'static [Script]> {
match b {
0x00 => Some(SCX_5),
0x01 => Some(SCX_6),
0x02 => Some(SCX_7),
0x03 => Some(SCX_8),
0x04 => Some(SCX_9),
0x05 => Some(SCX_10),
0x06 => Some(SCX_11),
0x07 => Some(SCX_12),
0x08 => Some(SCX_13),
0x09 => Some(SCX_14),
0x0a => Some(SCX_15),
0x0b => Some(SCX_16),
0x0c => Some(SCX_17),
0x0d => Some(SCX_18),
0x0e => Some(SCX_19),
0x10 => Some(SCX_18),
0x11 => Some(SCX_20),
0x13 => Some(SCX_21),
0x23 => Some(SCX_22),
0x24 => Some(SCX_23),
0x25 => Some(SCX_24),
0x2d => Some(SCX_25),
0x2e => Some(SCX_24),
0x30 => Some(SCX_26),
0x31 => Some(SCX_27),
0x42 => Some(SCX_28),
0x45 => Some(SCX_28),
0x58 => Some(SCX_29),
0x5e => Some(SCX_30),
0x63..=0x6f => Some(SCX_31),
0x74..=0x75 => Some(SCX_32),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p4(b: u8) -> Option<&'static [Script]> {
match b {
0x83 => Some(SCX_33),
0x84 => Some(SCX_34),
0x85..=0x86 => Some(SCX_35),
0x87 => Some(SCX_34),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p5(b: u8) -> Option<&'static [Script]> {
match b {
0x89 => Some(SCX_36),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p6(b: u8) -> Option<&'static [Script]> {
match b {
0x0c => Some(SCX_37),
0x1b => Some(SCX_37),
0x1c => Some(SCX_38),
0x1f => Some(SCX_39),
0x40 => Some(SCX_40),
0x4b..=0x55 => Some(SCX_41),
0x60..=0x69 => Some(SCX_42),
0x70 => Some(SCX_41),
0xd4 => Some(SCX_43),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p9(b: u8) -> Option<&'static [Script]> {
match b {
0x51 => Some(SCX_44),
0x52 => Some(SCX_45),
0x64 => Some(SCX_46),
0x65 => Some(SCX_47),
0x66..=0x6f => Some(SCX_48),
0xe6..=0xef => Some(SCX_49),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pa(b: u8) -> Option<&'static [Script]> {
match b {
0x66..=0x6f => Some(SCX_50),
0xe6..=0xef => Some(SCX_51),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pb(b: u8) -> Option<&'static [Script]> {
match b {
0xe6..=0xf3 => Some(SCX_52),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pc(b: u8) -> Option<&'static [Script]> {
match b {
0xe6..=0xef => Some(SCX_53),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p10(b: u8) -> Option<&'static [Script]> {
match b {
0x40..=0x49 => Some(SCX_54),
0xfb => Some(SCX_55),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p16(b: u8) -> Option<&'static [Script]> {
match b {
0xeb..=0xed => Some(SCX_56),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p17(b: u8) -> Option<&'static [Script]> {
match b {
0x35..=0x36 => Some(SCX_57),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p18(b: u8) -> Option<&'static [Script]> {
match b {
0x02..=0x03 => Some(SCX_58),
0x05 => Some(SCX_58),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p1c(b: u8) -> Option<&'static [Script]> {
match b {
0xd0 => Some(SCX_59),
0xd1 => Some(SCX_60),
0xd2 => Some(SCX_59),
0xd3 => Some(SCX_61),
0xd4 => Some(SCX_60),
0xd5 => Some(SCX_62),
0xd6 => Some(SCX_63),
0xd7 => Some(SCX_64),
0xd8 => Some(SCX_65),
0xd9 => Some(SCX_66),
0xda => Some(SCX_67),
0xdb => Some(SCX_60),
0xdc..=0xdd => Some(SCX_66),
0xde..=0xdf => Some(SCX_60),
0xe0 => Some(SCX_66),
0xe1 => Some(SCX_68),
0xe2 => Some(SCX_69),
0xe3..=0xe8 => Some(SCX_60),
0xe9 => Some(SCX_70),
0xea => Some(SCX_71),
0xeb => Some(SCX_72),
0xec => Some(SCX_60),
0xed => Some(SCX_73),
0xee..=0xf1 => Some(SCX_60),
0xf2 => Some(SCX_74),
0xf3 => Some(SCX_75),
0xf4 => Some(SCX_76),
0xf5..=0xf6 => Some(SCX_68),
0xf7 => Some(SCX_77),
0xf8..=0xf9 => Some(SCX_75),
0xfa => Some(SCX_78),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p1d(b: u8) -> Option<&'static [Script]> {
match b {
0xc0..=0xc1 => Some(SCX_28),
0xf8 => Some(SCX_79),
0xfa => Some(SCX_80),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p20(b: u8) -> Option<&'static [Script]> {
match b {
0x2f => Some(SCX_81),
0x4f => Some(SCX_82),
0x5a => Some(SCX_83),
0x5d => Some(SCX_84),
0xf0 => Some(SCX_85),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p2e(b: u8) -> Option<&'static [Script]> {
match b {
0x17 => Some(SCX_86),
0x30 => Some(SCX_87),
0x31 => Some(SCX_88),
0x3c => Some(SCX_89),
0x41 => Some(SCX_90),
0x43 => Some(SCX_34),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p2f(b: u8) -> Option<&'static [Script]> {
match b {
0xf0..=0xff => Some(SCX_91),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p30(b: u8) -> Option<&'static [Script]> {
match b {
0x01 => Some(SCX_92),
0x02 => Some(SCX_93),
0x03 => Some(SCX_94),
0x06 => Some(SCX_95),
0x08..=0x09 => Some(SCX_96),
0x0a..=0x0b => Some(SCX_97),
0x0c..=0x11 => Some(SCX_98),
0x13 => Some(SCX_94),
0x14..=0x1b => Some(SCX_98),
0x1c..=0x1f => Some(SCX_94),
0x2a..=0x2d => Some(SCX_99),
0x30 => Some(SCX_94),
0x31..=0x35 => Some(SCX_100),
0x37 => Some(SCX_94),
0x3c..=0x3d => Some(SCX_101),
0x3e..=0x3f => Some(SCX_95),
0x99..=0x9c => Some(SCX_100),
0xa0 => Some(SCX_100),
0xfb => Some(SCX_98),
0xfc => Some(SCX_100),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p31(b: u8) -> Option<&'static [Script]> {
match b {
0x90..=0x9f => Some(SCX_95),
0xc0..=0xe5 => Some(SCX_95),
0xef => Some(SCX_91),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p32(b: u8) -> Option<&'static [Script]> {
match b {
0x20..=0x47 => Some(SCX_95),
0x80..=0xb0 => Some(SCX_95),
0xc0..=0xcb => Some(SCX_95),
0xff => Some(SCX_95),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_p33(b: u8) -> Option<&'static [Script]> {
match b {
0x58..=0x70 => Some(SCX_95),
0x7b..=0x7f => Some(SCX_95),
0xe0..=0xfe => Some(SCX_95),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pa6(b: u8) -> Option<&'static [Script]> {
match b {
0x6f => Some(SCX_34),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pa7(b: u8) -> Option<&'static [Script]> {
match b {
0x00..=0x07 => Some(SCX_102),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pa8(b: u8) -> Option<&'static [Script]> {
match b {
0x30..=0x32 => Some(SCX_103),
0x33..=0x35 => Some(SCX_104),
0x36..=0x37 => Some(SCX_105),
0x38 => Some(SCX_106),
0x39 => Some(SCX_105),
0xf1 => Some(SCX_107),
0xf3 => Some(SCX_108),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pa9(b: u8) -> Option<&'static [Script]> {
match b {
0x2e => Some(SCX_109),
0xcf => Some(SCX_110),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pfd(b: u8) -> Option<&'static [Script]> {
match b {
0x3e..=0x3f => Some(SCX_111),
0xf2 => Some(SCX_112),
0xfd => Some(SCX_112),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pfe(b: u8) -> Option<&'static [Script]> {
match b {
0x45..=0x46 => Some(SCX_94),
_ => None,
}
}
#[cfg(feature = "bmp")]
const fn scx_pff(b: u8) -> Option<&'static [Script]> {
match b {
0x61..=0x65 => Some(SCX_98),
0x70 => Some(SCX_100),
0x9e..=0x9f => Some(SCX_100),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p101(b: u8) -> Option<&'static [Script]> {
match b {
0x00..=0x01 => Some(SCX_113),
0x02 => Some(SCX_114),
0x07..=0x33 => Some(SCX_115),
0x37..=0x3f => Some(SCX_114),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p102(b: u8) -> Option<&'static [Script]> {
match b {
0xe0..=0xfb => Some(SCX_116),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p10a(b: u8) -> Option<&'static [Script]> {
match b {
0xf2 => Some(SCX_117),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p113(b: u8) -> Option<&'static [Script]> {
match b {
0x01 => Some(SCX_52),
0x03 => Some(SCX_52),
0x3b..=0x3c => Some(SCX_52),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p11f(b: u8) -> Option<&'static [Script]> {
match b {
0xd0..=0xd1 => Some(SCX_52),
0xd3 => Some(SCX_52),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p1bc(b: u8) -> Option<&'static [Script]> {
match b {
0xa0..=0xa3 => Some(SCX_89),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p1d3(b: u8) -> Option<&'static [Script]> {
match b {
0x60..=0x71 => Some(SCX_95),
_ => None,
}
}
#[cfg(feature = "full")]
const fn scx_p1f2(b: u8) -> Option<&'static [Script]> {
match b {
0x50..=0x51 => Some(SCX_95),
_ => None,
}
}