blob: 1d8469565bdf78eef68379580204c9d16e652fc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// @generated
/// Implement `DataProvider<ScriptNameToValueV1Marker>` on the given struct using the data
/// hardcoded in this file. This allows the struct to be used with
/// `icu`'s `_unstable` constructors.
#[doc(hidden)]
#[macro_export]
macro_rules! __impl_propnames_from_sc_v1 {
($ provider : ty) => {
#[clippy::msrv = "1.67"]
const _: () = <$provider>::MUST_USE_MAKE_PROVIDER_MACRO;
#[clippy::msrv = "1.67"]
impl $provider {
#[doc(hidden)]
pub const SINGLETON_PROPNAMES_FROM_SC_V1: &'static <icu::properties::provider::ScriptNameToValueV1Marker as icu_provider::DataMarker>::Yokeable = &icu::properties::provider::names::PropertyValueNameToEnumMapV1 {
map: unsafe {
#[allow(unused_unsafe)]
zerovec::ZeroMap::from_parts_unchecked(unsafe { zerovec::VarZeroVec::from_bytes_unchecked(b"g\x01\0\0\0\0\x05\0\t\0\r\0\x11\0\x15\0*\0.\x004\0<\0@\0D\0K\0O\0S\0[\0_\0d\0h\0q\0v\0z\0~\0\x85\0\x8E\0\x92\0\x96\0\x9A\0\xA2\0\xA6\0\xAC\0\xB0\0\xB7\0\xBB\0\xC3\0\xC7\0\xCC\0\xD0\0\xE3\0\xE7\0\xEB\0\xF1\0\x03\x01\t\x01\r\x01\x11\x01\x19\x01#\x01'\x01+\x011\x015\x01;\x01?\x01C\x01L\x01S\x01_\x01g\x01k\x01o\x01v\x01z\x01\x84\x01\x88\x01\x93\x01\x97\x01\x9C\x01\xA0\x01\xA4\x01\xAC\x01\xB0\x01\xB4\x01\xB8\x01\xCC\x01\xD0\x01\xD7\x01\xDB\x01\xE2\x01\xE6\x01\xEE\x01\xF2\x01\xF6\x01\xFE\x01\x02\x02\x0C\x02\x10\x02\x14\x02\x18\x02\x1E\x02\"\x02)\x02.\x022\x02:\x02>\x02K\x02S\x02W\x02Z\x02^\x02b\x02h\x02l\x02{\x02\x7F\x02\x83\x02\x87\x02\x8E\x02\x92\x02\x98\x02\x9C\x02\xA2\x02\xA6\x02\xAE\x02\xB2\x02\xB6\x02\xBA\x02\xBE\x02\xC2\x02\xD2\x02\xD6\x02\xDF\x02\xF4\x02\n\x03\x0E\x03\x12\x03\x16\x03\x1E\x03\"\x03&\x03,\x030\x034\x03;\x03C\x03W\x03[\x03c\x03g\x03q\x03\x84\x03\x89\x03\x8D\x03\x91\x03\x97\x03\xA0\x03\xA4\x03\xA8\x03\xAC\x03\xB0\x03\xB4\x03\xB8\x03\xBB\x03\xBF\x03\xC3\x03\xC7\x03\xCC\x03\xD0\x03\xD4\x03\xDA\x03\xDE\x03\xE3\x03\xE7\x03\xEB\x03\xF3\x03\xFB\x03\xFF\x03\x03\x04\x07\x04\r\x04\x11\x04\x17\x04\x1F\x04#\x04'\x04.\x047\x04;\x04B\x04F\x04P\x04T\x04[\x04h\x04l\x04w\x04{\x04\x87\x04\x8B\x04\x98\x04\x9C\x04\xA0\x04\xB0\x04\xC4\x04\xC8\x04\xCC\x04\xD0\x04\xD4\x04\xDD\x04\xE1\x04\xE4\x04\xE8\x04\xEC\x04\xF0\x04\xF7\x04\xFE\x04\x02\x05\x0B\x05\x0F\x05\x1A\x05\x1E\x05)\x05-\x051\x055\x05@\x05D\x05G\x05K\x05O\x05T\x05j\x05n\x05s\x05{\x05\x7F\x05\x8C\x05\x96\x05\xA7\x05\xB1\x05\xBC\x05\xC7\x05\xD8\x05\xE2\x05\xEC\x05\xF1\x05\xF5\x05\xF9\x05\xFE\x05\x02\x06\x06\x06\r\x06\x11\x06\x1D\x06!\x06*\x06.\x069\x06=\x06A\x06I\x06M\x06Q\x06U\x06Y\x06c\x06g\x06k\x06z\x06~\x06\x82\x06\x88\x06\x8C\x06\x90\x06\x94\x06\x99\x06\x9D\x06\xA6\x06\xAA\x06\xAE\x06\xB2\x06\xB6\x06\xC0\x06\xC4\x06\xCB\x06\xD2\x06\xD6\x06\xDA\x06\xDE\x06\xE5\x06\xF0\x06\xF4\x06\xF8\x06\xFF\x06\x03\x07\n\x07\x0E\x07\x12\x07\x1E\x07\"\x07)\x07-\x076\x07:\x07F\x07J\x07N\x07T\x07X\x07\\\x07c\x07g\x07o\x07u\x07}\x07\x85\x07\x89\x07\x8E\x07\x92\x07\x96\x07\x9B\x07\x9F\x07\xA3\x07\xA9\x07\xAF\x07\xB3\x07\xB7\x07\xBD\x07\xC1\x07\xC5\x07\xC9\x07\xCD\x07\xD3\x07\xD7\x07\xDE\x07\xE2\x07\xEA\x07\xEE\x07\xF5\x07\xF9\x07\xFD\x07\x01\x08\t\x08\x10\x08\x13\x08\x17\x08\x1B\x08\x1F\x08'\x08-\x081\x08<\x08@\x08D\x08H\x08L\x08P\x08V\x08X\x08\\\x08l\x08p\x08t\x08x\x08|\x08\x80\x08\x84\x08\x88\x08AdlamAdlmAfakAghbAhomAnatolian_HieroglyphsArabArabicArmenianArmiArmnAvestanAvstBaliBalineseBamuBamumBassBassa_VahBatakBatkBengBengaliBhaiksukiBhksBlisBopoBopomofoBrahBrahmiBraiBrailleBugiBugineseBuhdBuhidCakmCanadian_AboriginalCansCariCarianCaucasian_AlbanianChakmaChamCherCherokeeChorasmianChrsCirtCommonCoptCopticCpmnCprtCuneiformCypriotCypro_MinoanCyrillicCyrlCyrsDeseretDevaDevanagariDiakDives_AkuruDogrDograDsrtDuplDuployanEgydEgyhEgypEgyptian_HieroglyphsElbaElbasanElymElymaicEthiEthiopicGeokGeorGeorgianGlagGlagoliticGongGonmGothGothicGranGranthaGreekGrekGujaratiGujrGunjala_GondiGurmukhiGuruHanHanbHangHangulHaniHanifi_RohingyaHanoHansHantHanunooHatrHatranHebrHebrewHiraHiraganaHluwHmngHmnpHrktHungImperial_AramaicIndsInheritedInscriptional_PahlaviInscriptional_ParthianItalJamoJavaJavaneseJpanJurcKaithiKaliKanaKannadaKatakanaKatakana_Or_HiraganaKawiKayah_LiKharKharoshthiKhitan_Small_ScriptKhmerKhmrKhojKhojkiKhudawadiKitsKndaKoreKpelKthiLanaLaoLaooLatfLatgLatinLatnLepcLepchaLimbLimbuLinaLinbLinear_ALinear_BLisuLomaLyciLycianLydiLydianMahajaniMahjMakaMakasarMalayalamMandMandaicManiManichaeanMarcMarchenMasaram_GondiMayaMedefaidrinMedfMeetei_MayekMendMende_KikakuiMercMeroMeroitic_CursiveMeroitic_HieroglyphsMiaoMlymModiMongMongolianMoonMroMrooMteiMultMultaniMyanmarMymrNabataeanNagmNag_MundariNandNandinagariNarbNbatNewaNew_Tai_LueNkgbNkoNkooNshuNushuNyiakeng_Puachue_HmongOgamOghamOl_ChikiOlckOld_HungarianOld_ItalicOld_North_ArabianOld_PermicOld_PersianOld_SogdianOld_South_ArabianOld_TurkicOld_UyghurOriyaOrkhOryaOsageOsgeOsmaOsmanyaOugrPahawh_HmongPalmPalmyrenePaucPau_Cin_HauPermPhagPhags_PaPhliPhlpPhlvPhnxPhoenicianPlrdPrtiPsalter_PahlaviQaacQaaiRejangRjngRohgRoroRunicRunrSamaritanSamrSaraSarbSaurSaurashtraSgnwSharadaShavianShawShrdSiddSiddhamSignWritingSindSinhSinhalaSogdSogdianSogoSoraSora_SompengSoyoSoyomboSundSundaneseSyloSyloti_NagriSyrcSyreSyriacSyrjSyrnTagalogTagbTagbanwaTai_LeTai_ThamTai_VietTakrTakriTaleTaluTamilTamlTangTangsaTangutTavtTeluTeluguTengTfngTglgThaaThaanaThaiTibetanTibtTifinaghTirhTirhutaTnsaTotoUgarUgariticUnknownVaiVaiiVispVithVithkuqiWanchoWaraWarang_CitiWchoWoleXpeoXsuxYeziYezidiYiYiiiZanabazar_SquareZanbZinhZmthZsyeZsymZxxxZyyyZzzz") }, unsafe { zerovec::ZeroVec::from_bytes_unchecked(b"\xA7\0\xA7\0\x93\0\x9F\0\xA1\0\x9C\0\x02\0\x02\0\x03\0t\0\x03\0u\0u\0>\0>\0\x82\0\x82\0\x86\0\x86\0?\0?\0\x04\0\x04\0\xA8\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0Z\0z\0{\0|\0[\0[\0\\\0}\0{\0\x07\0\x01\0n\0n\0\xB6\0]\0 \0 \0~\0~\0^\0\x85\0o\0o\0p\0\x97\x003\x003\0\x97\0\xA6\0\xA6\0p\0\x91\0!\0!\0\xB7\0\xB7\0\xB8\0\x98\0\x98\0\xB0\0\xB0\0q\0q\0:\0:\0\"\0_\0\"\0`\0a\0*\0-\0-\x004\0j\0\x7F\0\x99\0\x99\x004\0;\0#\0#\0\x9A\0\xC3\0\x9A\0\x7F\0$\0$\0b\0<\0*\0%\0%\0&\0'\0'\0<\0\x9E\0\x9E\0\xC3\0\xC4\x005\x005\0g\0c\0c\0d\0\xC5\0\xC5\0\xBC\0\x92\0\x92\0\xBC\0\x9B\0=\0e\0\xC0\0\xC0\0)\0)\0\xB1\0\xB1\0\x01\0\x80\0\xAE\0\x81\0f\0\0\0g\0") })
},
};
}
#[clippy::msrv = "1.67"]
impl icu_provider::DataProvider<icu::properties::provider::ScriptNameToValueV1Marker> for $provider {
fn load(&self, req: icu_provider::DataRequest) -> Result<icu_provider::DataResponse<icu::properties::provider::ScriptNameToValueV1Marker>, icu_provider::DataError> {
if req.locale.is_empty() {
Ok(icu_provider::DataResponse { payload: Some(icu_provider::DataPayload::from_static_ref(Self::SINGLETON_PROPNAMES_FROM_SC_V1)), metadata: Default::default() })
} else {
Err(icu_provider::DataErrorKind::ExtraneousLocale.with_req(<icu::properties::provider::ScriptNameToValueV1Marker as icu_provider::KeyedDataMarker>::KEY, req))
}
}
}
};
}
|