Home
last modified time | relevance | path

Searched refs:localeStr (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_plural_rules.cpp112 JSHandle<EcmaString> localeStr = factory->NewFromStdString(locale); in BuildLocaleSet() local
113 locales->Set(thread, index++, localeStr); in BuildLocaleSet()
118 bool GetNextLocale(icu::StringEnumeration *locales, std::string &localeStr, int32_t *len) in GetNextLocale() argument
124 localeStr = ""; in GetNextLocale()
127 localeStr = std::string(locale); in GetNextLocale()
137 std::string localeStr; in GetAvailableLocales() local
139 while (GetNextLocale(locales.get(), localeStr, &len)) { in GetAvailableLocales()
141 std::replace(localeStr.begin(), localeStr.end(), '_', '-'); in GetAvailableLocales()
143 set.insert(localeStr); in GetAvailableLocales()
260 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializePluralRules() local
[all …]
Djs_displaynames.cpp196 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeDisplayNames() local
198 displayNames->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeDisplayNames()
Djs_list_format.cpp137 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeListFormat() local
139 listFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeListFormat()
Djs_locale.cpp202 std::string localeStr = intl::LocaleHelper::ConvertToStdString(locale); in BestFitSupportedLocales() local
203 icu::Locale desired = icu::Locale::forLanguageTag(localeStr, status); in BestFitSupportedLocales()
608 JSHandle<EcmaString> localeStr = factory->NewFromStdString(locale); in ConstructLocaleList() local
609 locales->Set(thread, index++, localeStr); in ConstructLocaleList()
Djs_collator.cpp166 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeCollator() local
168 collator->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeCollator()
Djs_relative_time_format.cpp91 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeRelativeTimeFormat() local
95 relativeTimeFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeRelativeTimeFormat()
Djs_number_format.cpp507 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeNumberFormat() local
509 numberFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeNumberFormat()
Djs_date_time_format.cpp638 … JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, resolvedIcuLocaleCopy); in InitializeDateTimeFormat() local
640 dateTimeFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeDateTimeFormat()
/arkcompiler/ets_runtime/test/fuzztest/publicapicollatorrefget_fuzzer/
Dpublicapicollatorrefget_fuzzer.cpp43 JSHandle<JSTaggedValue> localeStr = thread->GlobalConstants()->GetHandledEnUsString(); in GetCompareFunctionFuzzTest() local
45 …JSHandle<JSCollator> initCollator = JSCollator::InitializeCollator(thread, collator, localeStr, un… in GetCompareFunctionFuzzTest()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_collator_test.cpp117 JSHandle<JSTaggedValue> localeStr = thread->GlobalConstants()->GetHandledEnUsString(); in HWTEST_F_L0() local
120 …JSHandle<JSCollator> initCollator = JSCollator::InitializeCollator(thread, collator, localeStr, un… in HWTEST_F_L0()
129 …E(JSTaggedValue::SameValue(JSHandle<JSTaggedValue>(thread, initCollator->GetLocale()), localeStr)); in HWTEST_F_L0()
Djs_plural_rules_test.cpp123 JSHandle<JSTaggedValue> localeStr(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local
125 JSPluralRules::InitializePluralRules(thread, pluralRules, localeStr, optionHandle); in HWTEST_F_L0()
148 JSHandle<JSTaggedValue> localeStr(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local
158 JSPluralRules::InitializePluralRules(thread, pluralRules, localeStr, optionHandle); in HWTEST_F_L0()
Djs_displaynames_test.cpp88 JSHandle<EcmaString> localeStr = in HWTEST_F_L0() local
90 EXPECT_STREQ(EcmaStringAccessor(localeStr).ToCString().c_str(), "en"); in HWTEST_F_L0()
146 JSHandle<JSTaggedValue> localeStr(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local
148 …JSDisplayNames::InitializeDisplayNames(thread, displayNames, localeStr, JSHandle<JSTaggedValue>(di… in HWTEST_F_L0()
163 …JSDisplayNames::InitializeDisplayNames(thread, displayNames, localeStr, JSHandle<JSTaggedValue>(di… in HWTEST_F_L0()
Djs_relative_time_format_test.cpp80 JSHandle<EcmaString> localeStr(thread, relativeTimeFormat->GetLocale().GetTaggedObject()); in HWTEST_F_L0() local
81 EXPECT_STREQ("en", EcmaStringAccessor(localeStr).ToCString().c_str()); in HWTEST_F_L0()
Djs_number_format_test.cpp116 JSHandle<EcmaString> localeStr(thread, numberFormat->GetLocale().GetTaggedObject()); in HWTEST_F_L0() local
117 EXPECT_STREQ("zh-Hans-CN", EcmaStringAccessor(localeStr).ToCString().c_str()); in HWTEST_F_L0()
Djs_date_time_format_first_test.cpp225 std::string localeStr = LocaleHelper::ConvertToStdString(localeEcmaStr); in HWTEST_F_L0() local
226 EXPECT_STREQ(localeStr.c_str(), "zh-Hans-CN-u-ca-chinese"); in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp102 JSHandle<JSTaggedValue> localeStr = thread->GlobalConstants()->GetHandledEnUsString(); in IsJSCollatorFuzztest() local
104 …JSHandle<JSCollator> initCollator = JSCollator::InitializeCollator(thread, collator, localeStr, un… in IsJSCollatorFuzztest()
128 JSHandle<JSTaggedValue> localeStr(factory->NewFromASCII("en-GB")); in IsJSPluralRulesFuzztest() local
130 JSPluralRules::InitializePluralRules(thread, pluralRules, localeStr, optionHandle); in IsJSPluralRulesFuzztest()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Dffi_workload.cpp3823 JSHandle<JSTaggedValue> localeStr = thread_->GlobalConstants()->GetHandledEnUsString(); in HWTEST_F_L0() local
3825 …JSHandle<JSCollator> initCollator = JSCollator::InitializeCollator(thread_, collator, localeStr, u… in HWTEST_F_L0()
3861 JSHandle<JSTaggedValue> localeStr(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local
3863 JSPluralRules::InitializePluralRules(thread_, pluralRules, localeStr, optionHandle); in HWTEST_F_L0()
4716 JSHandle<JSTaggedValue> localeStr = thread_->GlobalConstants()->GetHandledEnUsString(); in HWTEST_F_L0() local
4718 …JSHandle<JSCollator> initCollator = JSCollator::InitializeCollator(thread_, collator, localeStr, u… in HWTEST_F_L0()