| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_locale.cpp | 42 JSHandle<JSLocale> locale =JSHandle<JSLocale>::Cast(newObject); in LocaleConstructor() local 95 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in Maximize() local 128 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in Minimize() local 177 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetBaseName() local 196 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetCalendar() local 214 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetCaseFirst() local 231 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetCollation() local 248 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetHourCycle() local 266 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetNumeric() local 286 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetNumberingSystem() local [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_list_format_second_test.cpp | 31 JSTaggedValue CommonTest(JSThread* thread, JSHandle<JSTaggedValue>& locale, JSHandle<JSTaggedValue>… in CommonTest() 62 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local 84 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 99 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 116 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 132 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 148 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 176 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-DE")); in HWTEST_F_L0() local 204 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local
|
| D | builtins_list_format_first_test.cpp | 69 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 90 JSHandle<EcmaString> CommonTest(JSThread* thread, JSHandle<JSTaggedValue>& locale, JSHandle<JSTagge… in CommonTest() 116 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 127 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 138 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 150 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local
|
| D | builtins_segmenter_test.cpp | 30 …ic JSTaggedValue JSSegmenterCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSSegmenterCreateWithLocaleTest() 48 …dValue JSSegmenterCreateWithLocaleAndOptionsTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSSegmenterCreateWithLocaleAndOptionsTest() 74 static JSTaggedValue JSSegmentsCreateTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSSegmentsCreateTest() 117 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 145 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 170 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local 215 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 242 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("fr")); in HWTEST_F_L0() local 269 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("fr")); in HWTEST_F_L0() local 288 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("fr")); in HWTEST_F_L0() local [all …]
|
| D | builtins_relative_time_format_test.cpp | 51 …edValue JSRelativeTimeFormatCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSRelativeTimeFormatCreateWithLocaleTest() 97 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 114 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 131 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 149 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 167 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 184 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 210 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local
|
| D | builtins_displaynames_test.cpp | 28 …JSTaggedValue JSDisplayNamesCreateWithOptionTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSDisplayNamesCreateWithOptionTest() 87 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 111 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 135 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 176 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 207 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE-u-co-phonebk")); in HWTEST_F_L0() local 230 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local
|
| D | builtins_date_time_format_first_test.cpp | 105 JSHandle<JSTaggedValue> locale(factory->NewFromASCII(localeStr)); in FormatCommon() local 149 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 165 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh")); in HWTEST_F_L0() local 186 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 206 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local
|
| D | builtins_plural_rules_test.cpp | 51 … JSTaggedValue JSPluralRulesCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSPluralRulesCreateWithLocaleTest() 78 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in SelectTest() local 144 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 168 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local
|
| D | builtins_collator_test.cpp | 129 …tic JSTaggedValue JSCollatorCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSCollatorCreateWithLocaleTest() 142 …edValue JSCollatorCreateWithLocaleAndOptionsTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSCollatorCreateWithLocaleAndOptionsTest() 170 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de")); in HWTEST_F_L0() local 208 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("sv")); in HWTEST_F_L0() local 248 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("sv")); in HWTEST_F_L0() local 277 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de")); in HWTEST_F_L0() local 311 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local
|
| D | builtin_test_util.h | 186 …TaggedValue JSDateTimeFormatCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSDateTimeFormatCreateWithLocaleTest() 206 …c JSTaggedValue JSListFormatCreateWithOptionTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSListFormatCreateWithOptionTest()
|
| D | builtins_date_time_format_second_test.cpp | 39 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-ID")); in HWTEST_F_L0() local 68 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 97 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-DE")); in HWTEST_F_L0() local
|
| D | builtins_locale_test.cpp | 79 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-Latn-US")); in JSLocaleCreateWithOptionTest() local 344 JSHandle<EcmaString> locale = factory->NewFromASCII("zh"); in JSLocaleCreateWithOptionsTagsTest() local 447 JSHandle<EcmaString> locale = factory->NewFromASCII("en-US"); in HWTEST_F_L0() local
|
| D | builtins_number_format_test.cpp | 53 … JSHandle<JSTaggedValue> &number, JSHandle<JSTaggedValue> &locale) in BuiltinsFormatTest() 212 JSHandle<JSTaggedValue> &locale) in NumberFormatCreateTest()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/core/ |
| D | IntlNumberFormat.cpp | 55 ets_string IcuFormatDouble(EtsEnv *env, [[maybe_unused]] ets_class klass, ets_string locale, ets_do… in IcuFormatDouble() 73 ets_string IcuFormatDecStr(EtsEnv *env, [[maybe_unused]] ets_class klass, ets_string locale, ets_st… in IcuFormatDecStr() 94 ets_string IcuFormatRange(EtsEnv *env, ets_string locale, icu::Formattable startFrmtbl, icu::Format… in IcuFormatRange() 143 …string IcuFormatRangeDoubleDouble(EtsEnv *env, [[maybe_unused]] ets_class klass, ets_string locale, in IcuFormatRangeDoubleDouble() 149 …string IcuFormatRangeDoubleDecStr(EtsEnv *env, [[maybe_unused]] ets_class klass, ets_string locale, in IcuFormatRangeDoubleDecStr() 155 …string IcuFormatRangeDecStrDouble(EtsEnv *env, [[maybe_unused]] ets_class klass, ets_string locale, in IcuFormatRangeDecStrDouble() 161 …string IcuFormatRangeDecStrDecStr(EtsEnv *env, [[maybe_unused]] ets_class klass, ets_string locale, in IcuFormatRangeDecStrDecStr()
|
| /arkcompiler/ets_runtime/ecmascript/intl/ |
| D | locale_helper.cpp | 174 …ng> LocaleHelper::CanonicalizeUnicodeLocaleId(JSThread *thread, const JSHandle<EcmaString> &locale) in CanonicalizeUnicodeLocaleId() 211 std::string LocaleHelper::ToStdStringLanguageTag(JSThread *thread, const icu::Locale &locale) in ToStdStringLanguageTag() 259 JSHandle<EcmaString> LocaleHelper::ToLanguageTag(JSThread *thread, const icu::Locale &locale) in ToLanguageTag() 460 icu::Locale locale(locStr.c_str()); in GetAvailableLocales() local 483 const std::string &locale) in BestAvailableLocale()
|
| D | locale_helper.h | 158 …static bool ValidateOtherTags(const icu::Locale &locale, const char *packageName, const char *key,… in ValidateOtherTags() 175 …static bool CheckLocales(const icu::Locale &locale, const char *key, const char *packageName, bool… in CheckLocales()
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_locale.cpp | 80 JSMutableHandle<EcmaString> locale(thread, JSTaggedValue::Undefined()); in LookupMatcher() local 118 std::string locale = intl::LocaleHelper::StdStringDefaultLocale(thread); in BuildLocaleMatcher() local 223 JSMutableHandle<EcmaString> locale(thread, JSTaggedValue::Undefined()); in BestFitSupportedLocales() local 473 JSMutableHandle<EcmaString> locale(thread, JSTaggedValue::Undefined()); in ResolveLocale() local 632 for (const std::string &locale : icuAvailableLocales) { in ConstructLocaleList() local 838 icu::Locale locale = builder->build(status); in BuildOptionsTags() local 949 JSHandle<JSLocale> JSLocale::InitializeLocale(JSThread *thread, const JSHandle<JSLocale> &locale, in InitializeLocale() 993 JSTaggedValue JSLocale::NormalizeKeywordValue(JSThread *thread, const JSHandle<JSLocale> &locale, in NormalizeKeywordValue() 1013 JSHandle<EcmaString> JSLocale::ToString(JSThread *thread, const JSHandle<JSLocale> &locale) in ToString()
|
| D | js_locale.h | 133 std::string locale; member 348 static bool IsWellCollation(const icu::Locale &locale, const std::string &value) in IsWellCollation() 356 static bool IsWellCalendar(const icu::Locale &locale, const std::string &value) in IsWellCalendar() 362 … static bool IsWellExtension(const icu::Locale &locale, const char *key, const std::string &value) in IsWellExtension() 443 …static bool ValidateOtherTags(const icu::Locale &locale, const char *packageName, const char *key,… in ValidateOtherTags() 461 …static bool CheckLocales(const icu::Locale &locale, const char *key, const char *packageName, bool… in CheckLocales()
|
| D | js_plural_rules.cpp | 108 for (const std::string &locale : icuAvailableLocales) { in BuildLocaleSet() local 118 const char *locale = nullptr; in GetNextLocale() local 312 JSHandle<EcmaString> locale(thread, pluralRules->GetLocale()); in ResolvedOptions() local
|
| D | js_segmenter.cpp | 174 JSHandle<JSTaggedValue> locale(thread, segmenter->GetLocale()); in ResolvedOptions() local
|
| D | ecma_vm.h | 133 void SetDefaultLocale(const std::string& locale) in SetDefaultLocale() 159 void* GetIcuFormatterFromCache(IcuFormatterType type, const std::string& locale) const in GetIcuFormatterFromCache() 185 : locale(locale), icuObj(icuObj), deleteEntry(deleteEntry) {} in locale() function
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/ |
| D | std_core_String.cpp | 283 EtsString *ToLowerCase(EtsString *thisStr, const icu::Locale &locale) in ToLowerCase() 299 EtsString *ToUpperCase(EtsString *thisStr, const icu::Locale &locale) in ToUpperCase() 315 UErrorCode ParseSingleBCP47LanguageTag(EtsString *langTag, icu::Locale &locale) in ParseSingleBCP47LanguageTag() 344 icu::Locale locale; in StdCoreStringToLocaleUpperCase() local 358 icu::Locale locale; in StdCoreStringToLocaleLowerCase() local 372 icu::Locale locale; in StdCoreStringLocaleCmp() local
|
| D | escompat_Date.cpp | 62 extern "C" EtsString *EscompatDateGetLocaleString(EtsString *format, EtsString *locale, int64_t ms,… in EscompatDateGetLocaleString()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_displaynames_test.cpp | 155 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-Hant")); in HWTEST_F_L0() local 206 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-Hant")); in HWTEST_F_L0() local
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_collator_stub_builder.cpp | 47 GateRef locale = Load(VariableType::JS_ANY(), thisValue, IntPtr(JSCollator::LOCALE_OFFSET)); in ResolvedOptions() local
|