Home
last modified time | relevance | path

Searched defs:locale (Results 1 – 25 of 31) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_locale.cpp42 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/
Dbuiltins_plural_rules_test.cpp85 … 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
Dbuiltins_relative_time_format_test.cpp85 …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
Dbuiltins_displaynames_test.cpp62 …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
Dbuiltins_list_format_test.cpp85 …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 …]
Dbuiltins_collator_test.cpp108 …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
Dbuiltins_date_time_format_test.cpp129 …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
Dbuiltins_locale_test.cpp113 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
Dbuiltins_number_format_test.cpp87 … JSHandle<JSTaggedValue> &number, JSHandle<JSTaggedValue> &locale) in BuiltinsFormatTest()
254 JSHandle<JSTaggedValue> &locale) in NumberFormatCreateTest()
Dbuiltins_bigint_test.cpp211 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/
Djs_locale.cpp65 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()
Djs_locale.h131 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()
Decma_context.h242 void *GetIcuFormatterFromCache(IcuFormatterType type, std::string locale) in GetIcuFormatterFromCache()
445 std::string locale; member
451 : locale(locale), icuObj(icuObj), deleteEntry(deleteEntry) {} in locale() function
Djs_plural_rules.cpp110 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
Djs_displaynames.cpp381 JSHandle<JSTaggedValue> locale(thread, displayNames->GetLocale()); in ResolvedOptions() local
Decma_string.h1054 …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()
Djs_date_time_format.cpp845 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
Djs_collator.cpp418 JSHandle<JSTaggedValue> locale(thread, collator->GetLocale()); in ResolvedOptions() local
Djs_list_format.cpp412 JSHandle<JSTaggedValue> locale(thread, listFormat->GetLocale()); in ResolvedOptions() local
/arkcompiler/ets_runtime/ecmascript/intl/
Dlocale_helper.cpp175 …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()
Dlocale_helper.h156 …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/
Djs_displaynames_test.cpp189 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
Dlocale_helper_test.cpp145 JSHandle<EcmaString> locale = factory-> NewFromStdString("en-Us"); in HWTEST_F_L0() local
/arkcompiler/ets_runtime/ecmascript/base/
Dstring_helper.h140 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/
Dstring_helper_test.cpp139 icu::Locale locale("el", "Latn", "GR"); in HWTEST_F_L0() local

12