/arkcompiler/ets_runtime/ecmascript/ |
D | js_plural_rules.cpp | 112 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 …]
|
D | js_displaynames.cpp | 196 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeDisplayNames() local 198 displayNames->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeDisplayNames()
|
D | js_list_format.cpp | 137 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeListFormat() local 139 listFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeListFormat()
|
D | js_locale.cpp | 202 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()
|
D | js_collator.cpp | 166 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeCollator() local 168 collator->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeCollator()
|
D | js_relative_time_format.cpp | 91 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeRelativeTimeFormat() local 95 relativeTimeFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeRelativeTimeFormat()
|
D | js_number_format.cpp | 507 JSHandle<EcmaString> localeStr = intl::LocaleHelper::ToLanguageTag(thread, icuLocale); in InitializeNumberFormat() local 509 numberFormat->SetLocale(thread, localeStr.GetTaggedValue()); in InitializeNumberFormat()
|
D | js_date_time_format.cpp | 638 … 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/ |
D | publicapicollatorrefget_fuzzer.cpp | 43 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/ |
D | js_collator_test.cpp | 117 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()
|
D | js_plural_rules_test.cpp | 123 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()
|
D | js_displaynames_test.cpp | 88 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()
|
D | js_relative_time_format_test.cpp | 80 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()
|
D | js_number_format_test.cpp | 116 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()
|
D | js_date_time_format_first_test.cpp | 225 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/ |
D | jsvaluerefismodulenamespace_fuzzer.cpp | 102 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/ |
D | ffi_workload.cpp | 3823 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()
|