/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_locale.cpp | 42 JSHandle<JSLocale> locale = in LocaleConstructor() local 97 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in Maximize() local 130 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in Minimize() local 179 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetBaseName() local 197 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetCalendar() local 215 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetCaseFirst() local 232 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetCollation() local 249 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetHourCycle() local 267 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetNumeric() local 287 JSHandle<JSLocale> locale = JSHandle<JSLocale>::Cast(loc); in GetNumberingSystem() local [all …]
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_plural_rules_test.cpp | 85 … JSTaggedValue JSPluralRulesCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSPluralRulesCreateWithLocaleTest() 116 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 140 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 164 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 188 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 212 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 236 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 260 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 283 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 307 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local
|
D | builtins_relative_time_format_test.cpp | 85 …edValue JSRelativeTimeFormatCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSRelativeTimeFormatCreateWithLocaleTest() 115 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 140 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 165 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 190 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 215 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 240 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 266 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local
|
D | builtins_displaynames_test.cpp | 62 …JSTaggedValue JSDisplayNamesCreateWithOptionTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSDisplayNamesCreateWithOptionTest() 127 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 151 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 175 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en")); in HWTEST_F_L0() local 216 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 247 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE-u-co-phonebk")); in HWTEST_F_L0() local 270 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local
|
D | builtins_list_format_test.cpp | 85 …c JSTaggedValue JSListFormatCreateWithOptionTest(JSThread *thread, JSHandle<JSTaggedValue> &locale, in JSListFormatCreateWithOptionTest() 115 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 138 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 176 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 214 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 244 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local 281 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local 303 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 342 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-GB")); in HWTEST_F_L0() local 382 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-cn")); in HWTEST_F_L0() local [all …]
|
D | builtins_collator_test.cpp | 108 …tic JSTaggedValue JSCollatorCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSCollatorCreateWithLocaleTest() 128 …edValue JSCollatorCreateWithLocaleAndOptionsTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSCollatorCreateWithLocaleAndOptionsTest() 162 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de")); in HWTEST_F_L0() local 211 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("sv")); in HWTEST_F_L0() local 266 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("sv")); in HWTEST_F_L0() local 306 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de")); in HWTEST_F_L0() local 342 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local
|
D | builtins_date_time_format_test.cpp | 129 …TaggedValue JSDateTimeFormatCreateWithLocaleTest(JSThread *thread, JSHandle<JSTaggedValue> &locale) in JSDateTimeFormatCreateWithLocaleTest() 161 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 201 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("pt-BR")); in HWTEST_F_L0() local 244 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 266 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh")); in HWTEST_F_L0() local 291 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 315 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-US")); in HWTEST_F_L0() local 340 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-ID")); in HWTEST_F_L0() local 369 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-ID")); in HWTEST_F_L0() local 398 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("id-u-co-pinyin-de-DE")); in HWTEST_F_L0() local
|
D | builtins_locale_test.cpp | 113 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("en-Latn-US")); in JSLocaleCreateWithOptionTest() local 349 JSHandle<EcmaString> locale = factory->NewFromASCII("zh"); in JSLocaleCreateWithOptionsTagsTest() local 489 JSHandle<EcmaString> locale = factory->NewFromASCII("en-US"); in HWTEST_F_L0() local
|
D | builtins_number_format_test.cpp | 87 … JSHandle<JSTaggedValue> &number, JSHandle<JSTaggedValue> &locale) in BuiltinsFormatTest() 254 JSHandle<JSTaggedValue> &locale) in NumberFormatCreateTest()
|
D | builtins_bigint_test.cpp | 211 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local 251 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("de-DE")); in HWTEST_F_L0() local
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_locale.cpp | 65 JSMutableHandle<EcmaString> locale(thread, JSTaggedValue::Undefined()); in LookupMatcher() local 103 …std::string locale = intl::LocaleHelper::ConvertToStdString(intl::LocaleHelper::DefaultLocale(thre… in BuildLocaleMatcher() local 195 JSMutableHandle<EcmaString> locale(thread, JSTaggedValue::Undefined()); in BestFitSupportedLocales() local 452 JSMutableHandle<EcmaString> locale(thread, JSTaggedValue::Undefined()); in ResolveLocale() local 607 for (const std::string &locale : icuAvailableLocales) { in ConstructLocaleList() local 791 icu::Locale locale = builder->build(status); in BuildOptionsTags() local 898 JSHandle<JSLocale> JSLocale::InitializeLocale(JSThread *thread, const JSHandle<JSLocale> &locale, in InitializeLocale() 942 …dle<EcmaString> JSLocale::NormalizeKeywordValue(JSThread *thread, const JSHandle<JSLocale> &locale, in NormalizeKeywordValue() 962 JSHandle<EcmaString> JSLocale::ToString(JSThread *thread, const JSHandle<JSLocale> &locale) in ToString()
|
D | js_locale.h | 131 std::string locale; member 335 static bool IsWellCollation(const icu::Locale &locale, const std::string &value) in IsWellCollation() 344 static bool IsWellCalendar(const icu::Locale &locale, const std::string &value) in IsWellCalendar() 350 … static bool IsWellExtension(const icu::Locale &locale, const char *key, const std::string &value) in IsWellExtension() 431 …static bool ValidateOtherTags(const icu::Locale &locale, const char *packageName, const char *key,… in ValidateOtherTags() 449 …static bool CheckLocales(const icu::Locale &locale, const char *key, const char *packageName, bool… in CheckLocales()
|
D | ecma_context.h | 242 void *GetIcuFormatterFromCache(IcuFormatterType type, std::string locale) in GetIcuFormatterFromCache() 445 std::string locale; member 451 : locale(locale), icuObj(icuObj), deleteEntry(deleteEntry) {} in locale() function
|
D | js_plural_rules.cpp | 110 for (const std::string &locale : icuAvailableLocales) { in BuildLocaleSet() local 120 const char *locale = nullptr; in GetNextLocale() local 310 JSHandle<EcmaString> locale(thread, pluralRules->GetLocale()); in ResolvedOptions() local
|
D | js_displaynames.cpp | 381 JSHandle<JSTaggedValue> locale(thread, displayNames->GetLocale()); in ResolvedOptions() local
|
D | ecma_string.h | 1054 …String *ToLocaleLower(const EcmaVM *vm, const JSHandle<EcmaString> &src, const icu::Locale &locale) in ToLocaleLower() 1059 …String *ToLocaleUpper(const EcmaVM *vm, const JSHandle<EcmaString> &src, const icu::Locale &locale) in ToLocaleUpper()
|
D | js_date_time_format.cpp | 845 JSHandle<JSTaggedValue> locale(thread, dateTimeFormat->GetLocale()); in ResolvedOptions() local 1256 std::unique_ptr<icu::Calendar> JSDateTimeFormat::BuildCalendar(const icu::Locale &locale, const icu… in BuildCalendar() 1518 icu::Locale locale = *(dtf->GetIcuLocale()); in ConstructDateIntervalFormat() local
|
D | js_collator.cpp | 418 JSHandle<JSTaggedValue> locale(thread, collator->GetLocale()); in ResolvedOptions() local
|
D | js_list_format.cpp | 412 JSHandle<JSTaggedValue> locale(thread, listFormat->GetLocale()); in ResolvedOptions() local
|
/arkcompiler/ets_runtime/ecmascript/intl/ |
D | locale_helper.cpp | 175 …ng> LocaleHelper::CanonicalizeUnicodeLocaleId(JSThread *thread, const JSHandle<EcmaString> &locale) in CanonicalizeUnicodeLocaleId() 207 JSHandle<EcmaString> LocaleHelper::ToLanguageTag(JSThread *thread, const icu::Locale &locale) in ToLanguageTag() 421 icu::Locale locale(locStr.c_str()); in GetAvailableLocales() local 444 const std::string &locale) in BestAvailableLocale()
|
D | locale_helper.h | 156 …static bool ValidateOtherTags(const icu::Locale &locale, const char *packageName, const char *key,… in ValidateOtherTags() 173 …static bool CheckLocales(const icu::Locale &locale, const char *key, const char *packageName, bool… in CheckLocales()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_displaynames_test.cpp | 189 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-Hant")); in HWTEST_F_L0() local 240 JSHandle<JSTaggedValue> locale(factory->NewFromASCII("zh-Hant")); in HWTEST_F_L0() local
|
D | locale_helper_test.cpp | 145 JSHandle<EcmaString> locale = factory-> NewFromStdString("en-Us"); in HWTEST_F_L0() local
|
/arkcompiler/ets_runtime/ecmascript/base/ |
D | string_helper.h | 140 static inline std::string ToLocaleUpper(const std::u16string &str, const icu::Locale &locale) in ToLocaleUpper() 162 static inline std::string ToLocaleLower(const std::u16string &str, const icu::Locale &locale) in ToLocaleLower()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | string_helper_test.cpp | 139 icu::Locale locale("el", "Latn", "GR"); in HWTEST_F_L0() local
|