Home
last modified time | relevance | path

Searched refs:regionTag (Results 1 - 4 of 4) sorted by relevance

/base/global/i18n/frameworks/intl/test/unittest/
H A Dlocale_config_test.cpp231 std::string regionTag = "JP"; in HWTEST_F() local
233 std::string displayName = LocaleConfig::GetDisplayRegion(regionTag, localeTag, false); in HWTEST_F()
241 displayName = LocaleConfig::GetDisplayRegion(regionTag, fakeLocaleTag, false); in HWTEST_F()
245 displayName = LocaleConfig::GetDisplayRegion(regionTag, localeTag, false); in HWTEST_F()
248 regionTag = "zh-Hans-CN"; in HWTEST_F()
249 displayName = LocaleConfig::GetDisplayRegion(regionTag, localeTag, false); in HWTEST_F()
252 regionTag = "HK"; in HWTEST_F()
253 displayName = LocaleConfig::GetDisplayRegion(regionTag, localeTag, false); in HWTEST_F()
/base/global/i18n/frameworks/intl/include/
H A Dlocale_config.h51 * @param regionTag region tag to set.
54 static I18nErrorCode SetSystemRegion(const std::string &regionTag);
213 * @param regionTag Indicate region part in locale.
218 const std::string &regionTag, const std::string &extendParamTag);
223 * @param regionTag Indicats region tag used to create locale.
226 static std::string CreateLocaleFromRegion(const std::string &regionTag);
229 * @brief Change the region part of system locale to regionTag.
231 * @param regionTag Indicates region tag used to update locale.
234 static std::string UpdateRegionOfLocale(const std::string &regionTag);
/base/global/i18n/frameworks/intl/src/
H A Dlocale_config.cpp1219 I18nErrorCode LocaleConfig::SetSystemRegion(const std::string &regionTag) in SetSystemRegion() argument
1221 if (!IsValidRegion(regionTag)) { in SetSystemRegion()
1222 HILOG_ERROR_I18N("LocaleConfig::SetSystemRegion %{public}s is not valid region tag.", regionTag.c_str()); in SetSystemRegion()
1225 return SetSystemLocale(UpdateRegionOfLocale(regionTag)); in SetSystemRegion()
1384 std::string regionTag = systemLocale.getCountry(); in UpdateLanguageOfLocale() local
1391 return CreateLocale(langTag, scriptTag, regionTag, extendParamTag); in UpdateLanguageOfLocale()
1395 const std::string &regionTag, const std::string &extendParamTag) in CreateLocale()
1403 if (regionTag.length() > 0) { in CreateLocale()
1404 localeTag += splitor + regionTag; in CreateLocale()
1412 std::string LocaleConfig::UpdateRegionOfLocale(const std::string &regionTag) in UpdateRegionOfLocale() argument
1394 CreateLocale(const std::string &languageTag, const std::string &scriptTag, const std::string &regionTag, const std::string &extendParamTag) CreateLocale() argument
1437 CreateLocaleFromRegion(const std::string &regionTag) CreateLocaleFromRegion() argument
[all...]
/base/global/i18n/interfaces/js/kits/src/
H A Di18n_addon.cpp459 std::string regionTag = VariableConvertor::GetString(env, argv[0], code); in GetThreeLetterRegion() local
465 std::string country = GetISO3Country(regionTag); in GetThreeLetterRegion()

Completed in 7 milliseconds