Home
last modified time | relevance | path

Searched refs:localeTag (Results 1 – 23 of 23) sorted by relevance

/base/global/i18n/frameworks/intl/src/
Dlocale_info.cpp58 void LocaleInfo::InitLocaleInfo(const std::string &localeTag, std::map<std::string, std::string> &c… in InitLocaleInfo() argument
62 if (localeTag != "") { in InitLocaleInfo()
63 ComputeFinalLocaleTag(localeTag); in InitLocaleInfo()
66 if (localeTag == "" || status != U_ZERO_ERROR) { in InitLocaleInfo()
83 LocaleInfo::LocaleInfo(const std::string &localeTag) in LocaleInfo() argument
86 InitLocaleInfo(localeTag, configMap); in LocaleInfo()
89 LocaleInfo::LocaleInfo(const std::string &localeTag, std::map<std::string, std::string> &configMap) in LocaleInfo() argument
91 InitLocaleInfo(localeTag, configMap); in LocaleInfo()
96 void LocaleInfo::ComputeFinalLocaleTag(const std::string &localeTag) in ComputeFinalLocaleTag() argument
98 if (localeTag.find("-u-") == std::string::npos) { in ComputeFinalLocaleTag()
[all …]
Dindex_util.cpp27 IndexUtil::IndexUtil(const std::string &localeTag) in IndexUtil() argument
30 if (localeTag == "") { in IndexUtil()
34 icu::Locale locale(localeTag.c_str()); in IndexUtil()
65 void IndexUtil::AddLocale(const std::string &localeTag) in AddLocale() argument
68 icu::Locale locale(localeTag.c_str()); in AddLocale()
Di18n_break_iterator.cpp24 I18nBreakIterator::I18nBreakIterator(std::string localeTag) in I18nBreakIterator() argument
27 iter = icu::BreakIterator::createLineInstance(localeTag.c_str(), status); in I18nBreakIterator()
Dsystem_locale_manager.cpp58 … std::string languageDisplayName = LocaleConfig::GetDisplayLanguage(*it, options.localeTag, true); in GetLanguageInfoArray()
59 …languageDisplayName = tabooUtils->ReplaceLanguageName(*it, options.localeTag, languageDisplayName); in GetLanguageInfoArray()
102 … std::string regionDisplayName = LocaleConfig::GetDisplayRegion(*it, options.localeTag, true); in GetCountryInfoArray()
103 … regionDisplayName = tabooUtils->ReplaceCountryName(*it, options.localeTag, regionDisplayName); in GetCountryInfoArray()
118 std::vector<std::string> collatorLocaleTags { options.localeTag }; in SortLocaleItemList()
Di18n_calendar.cpp41 I18nCalendar::I18nCalendar(std::string localeTag) in I18nCalendar() argument
44 icu::Locale tempLocale = icu::Locale::forLanguageTag(localeTag, status); in I18nCalendar()
64 I18nCalendar::I18nCalendar(std::string localeTag, CalendarType type) in I18nCalendar() argument
67 icu::Locale tempLocale = icu::Locale::forLanguageTag(localeTag, status); in I18nCalendar()
Dlocale_config.cpp1052 std::string LocaleConfig::GetValidLocale(const std::string &localeTag) in GetValidLocale() argument
1056 std::size_t found = localeTag.find("-u-"); in GetValidLocale()
1057 baseLocale = localeTag.substr(0, found); in GetValidLocale()
1059 extension = localeTag.substr(found); in GetValidLocale()
Ddate_time_format.cpp112 localeTag = localeInfo->GetBaseName(); in InitWithLocale()
560 map.insert(std::make_pair("locale", localeTag)); in GetResolvedOptions()
/base/global/i18n/frameworks/intl/test/unittest/
Dlocale_config_test.cpp146 std::string localeTag = "en-US"; variable
147 std::string displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, true);
150 displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, false);
158 displayName = LocaleConfig::GetDisplayLanguage(fakeLanguageTag, localeTag, true);
162 localeTag = "en-US";
163 displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, false);
166 displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, true);
173 displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, false);
180 displayName = LocaleConfig::GetDisplayLanguage(languageTag, localeTag, true);
183 localeTag = "en-Hans";
[all …]
Di18n_test.cpp319 std::string localeTag = "en-Latn-US"; variable
320 I18nBreakIterator enBrkIterator(localeTag);
551 std::string localeTag = "en-Latn-US"; variable
552 std::string displayName = timezone3.GetDisplayName(localeTag);
556 std::string cityDisplayName = I18nTimeZone::GetCityDisplayName(fakeId, localeTag);
559 cityDisplayName = I18nTimeZone::GetCityDisplayName(id, localeTag);
Dintl_test.cpp1803 string localeTag = "zh-Hans-CN"; variable
1812 LocaleInfo *locale = new LocaleInfo(localeTag, configs);
/base/global/i18n/frameworks/intl/include/
Dlocale_info.h31 explicit LocaleInfo(const std::string &localeTag);
32 LocaleInfo(const std::string &localeTag, std::map<std::string, std::string> &configs);
77 void ComputeFinalLocaleTag(const std::string &localeTag);
79 void ParseLocaleTag(const std::string &localeTag);
81 … void InitLocaleInfo(const std::string &localeTag, std::map<std::string, std::string> &configMap);
Dindex_util.h29 explicit IndexUtil(const std::string &localeTag);
32 void AddLocale(const std::string &localeTag);
Di18n_calendar.h47 explicit I18nCalendar(std::string localeTag);
48 I18nCalendar(std::string localeTag, CalendarType type);
Dsystem_locale_manager.h54 std::string localeTag; member
Drelative_time_format.h50 …RelativeTimeFormat(const std::vector<std::string> &localeTag, std::map<std::string, std::string> &…
Dnumber_format.h46 …NumberFormat(const std::vector<std::string> &localeTag, std::map<std::string, std::string> &config…
Ddate_time_format.h62 std::string localeTag;
Dlocale_config.h47 static std::string GetValidLocale(const std::string &localeTag);
/base/global/i18n/interfaces/js/kits/src/
Dsystem_locale_manager_addon.cpp239 std::string localeTag; in GetSortOptionsFromJsParam() local
243 localeTag = LocaleConfig::GetSystemLocale(); in GetSortOptionsFromJsParam()
248 VariableConvertor::GetOptionValue(env, jsOptions, "locale", localeTag); in GetSortOptionsFromJsParam()
249 if (localeTag.length() == 0) { in GetSortOptionsFromJsParam()
250 localeTag = LocaleConfig::GetSystemLocale(); in GetSortOptionsFromJsParam()
258 options.localeTag = localeTag; in GetSortOptionsFromJsParam()
Dintl_addon.cpp279 std::string localeTag = ""; in GetLocaleTag() local
300 localeTag = buf.data(); in GetLocaleTag()
302 localeTag = ""; in GetLocaleTag()
304 return localeTag; in GetLocaleTag()
317 std::string localeTag = GetLocaleTag(env, argv[0]); in LocaleConstructor() local
336 if (!obj->InitLocaleContext(env, info, localeTag, map)) { in LocaleConstructor()
343 …ol IntlAddon::InitLocaleContext(napi_env env, napi_callback_info info, const std::string localeTag, in InitLocaleContext() argument
353 locale_ = std::make_unique<LocaleInfo>(localeTag, map); in InitLocaleContext()
952 std::string localeTag = obj->locale_->Maximize(); in Maximize() local
962 status = napi_create_string_utf8(env, localeTag.c_str(), NAPI_AUTO_LENGTH, &arg); in Maximize()
[all …]
Di18n_addon.cpp1711 std::string localeTag = GetString(env, argv[0], code); in CalendarConstructor() local
1724 if (!obj->InitCalendarContext(env, info, localeTag, type)) { in CalendarConstructor()
1753 …I18nAddon::InitCalendarContext(napi_env env, napi_callback_info info, const std::string &localeTag, in InitCalendarContext() argument
1756 calendar_ = std::make_unique<I18nCalendar>(localeTag, type); in InitCalendarContext()
2277 std::string localeTag = GetString(env, argv[0], code); in GetDisplayName() local
2290 std::string name = obj->calendar_->GetDisplayName(localeTag); in GetDisplayName()
2341 std::string localeTag = GetString(env, argv[0], code); in BreakIteratorConstructor() local
2353 obj->brkiter_ = std::make_unique<I18nBreakIterator>(localeTag); in BreakIteratorConstructor()
2698 std::string localeTag = ""; in IndexUtilConstructor() local
2718 localeTag = localeBuf.data(); in IndexUtilConstructor()
[all …]
/base/global/i18n/interfaces/js/kits/include/
Di18n_addon.h119 …bool InitCalendarContext(napi_env env, napi_callback_info info, const std::string &localeTag, Cale…
156 bool InitIndexUtilContext(napi_env env, napi_callback_info info, const std::string &localeTag);
Dintl_addon.h105 bool InitLocaleContext(napi_env env, napi_callback_info info, const std::string localeTag,