Searched refs:icuType (Results 1 – 3 of 3) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/intl/ |
D | global_intl_helper.h | 90 IcuFormatterType icuType; in GetGlobalObject() local 93 icuType = IcuFormatterType::COLLATOR; in GetGlobalObject() 96 icuType = IcuFormatterType::SIMPLE_DATE_FORMAT_DATE; in GetGlobalObject() 99 icuType = IcuFormatterType::SIMPLE_DATE_FORMAT_TIME; in GetGlobalObject() 102 icuType = IcuFormatterType::SIMPLE_DATE_FORMAT_DEFAULT; in GetGlobalObject() 105 icuType = IcuFormatterType::NUMBER_FORMATTER; in GetGlobalObject() 112 void *cachedCollator = ecmaVm->GetIcuFormatterFromCache(icuType, cacheEntry); in GetGlobalObject() 120 switch (icuType) { in GetGlobalObject() 122 … ecmaVm->SetIcuFormatterToCache(icuType, cacheEntry, cacheObject, FreeCollatorFormat); in GetGlobalObject() 127 … ecmaVm->SetIcuFormatterToCache(icuType, cacheEntry, cacheObject, FreeDateTimeFormat); in GetGlobalObject() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_plural_rules.cpp | 207 UPluralType icuType = UPLURAL_TYPE_CARDINAL; in InitializePluralRules() local 211 icuType = UPLURAL_TYPE_ORDINAL; in InitializePluralRules() 214 icuType = UPLURAL_TYPE_CARDINAL; in InitializePluralRules() 220 …std::unique_ptr<icu::PluralRules> icuPluralRules(icu::PluralRules::forLocale(icuLocale, icuType, s… in InitializePluralRules() 231 icuType = UPLURAL_TYPE_ORDINAL; in InitializePluralRules() 234 icuType = UPLURAL_TYPE_CARDINAL; in InitializePluralRules() 240 icuPluralRules.reset(icu::PluralRules::forLocale(icuLocale, icuType, status)); in InitializePluralRules()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_plural_rules_test.cpp | 74 UPluralType icuType = UPLURAL_TYPE_CARDINAL; // Plural rules for cardinal numbers in HWTEST_F_L0() local 75 icu::PluralRules *icuPluralRules(icu::PluralRules::forLocale(icuLocale, icuType, status)); in HWTEST_F_L0()
|