/base/global/i18n/frameworks/intl/src/ |
D | locale_info.cpp | 58 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 …]
|
D | index_util.cpp | 27 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()
|
D | i18n_break_iterator.cpp | 24 I18nBreakIterator::I18nBreakIterator(std::string localeTag) in I18nBreakIterator() argument 27 iter = icu::BreakIterator::createLineInstance(localeTag.c_str(), status); in I18nBreakIterator()
|
D | system_locale_manager.cpp | 58 … 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()
|
D | i18n_calendar.cpp | 41 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()
|
D | locale_config.cpp | 1052 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()
|
D | date_time_format.cpp | 112 localeTag = localeInfo->GetBaseName(); in InitWithLocale() 560 map.insert(std::make_pair("locale", localeTag)); in GetResolvedOptions()
|
/base/global/i18n/frameworks/intl/test/unittest/ |
D | locale_config_test.cpp | 146 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 …]
|
D | i18n_test.cpp | 319 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);
|
D | intl_test.cpp | 1803 string localeTag = "zh-Hans-CN"; variable 1812 LocaleInfo *locale = new LocaleInfo(localeTag, configs);
|
/base/global/i18n/frameworks/intl/include/ |
D | locale_info.h | 31 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);
|
D | index_util.h | 29 explicit IndexUtil(const std::string &localeTag); 32 void AddLocale(const std::string &localeTag);
|
D | i18n_calendar.h | 47 explicit I18nCalendar(std::string localeTag); 48 I18nCalendar(std::string localeTag, CalendarType type);
|
D | system_locale_manager.h | 54 std::string localeTag; member
|
D | relative_time_format.h | 50 …RelativeTimeFormat(const std::vector<std::string> &localeTag, std::map<std::string, std::string> &…
|
D | number_format.h | 46 …NumberFormat(const std::vector<std::string> &localeTag, std::map<std::string, std::string> &config…
|
D | date_time_format.h | 62 std::string localeTag;
|
D | locale_config.h | 47 static std::string GetValidLocale(const std::string &localeTag);
|
/base/global/i18n/interfaces/js/kits/src/ |
D | system_locale_manager_addon.cpp | 239 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()
|
D | intl_addon.cpp | 279 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 …]
|
D | i18n_addon.cpp | 1711 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/ |
D | i18n_addon.h | 119 …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);
|
D | intl_addon.h | 105 bool InitLocaleContext(napi_env env, napi_callback_info info, const std::string localeTag,
|