Home
last modified time | relevance | path

Searched refs:systemLocale (Results 1 - 10 of 10) sorted by relevance

/base/global/i18n/frameworks/intl/test/fuzztest/systemlocalemanager_fuzzer/
H A Dsystemlocalemanager_fuzzer.cpp33 std::string systemLocale = LocaleConfig::GetSystemLocale(); in DoSomethingInterestingWithMyAPI() local
34 SortOptions sortOptions = {systemLocale, true, true}; in DoSomethingInterestingWithMyAPI()
/base/global/i18n/frameworks/intl/src/
H A Dlocale_config.cpp330 std::string systemLocale = ReadSystemParameter(LOCALE_KEY, CONFIG_LEN); in GetSystemLocale() local
331 if (systemLocale.empty()) { in GetSystemLocale()
332 systemLocale = ReadSystemParameter(DEFAULT_LOCALE_KEY, CONFIG_LEN); in GetSystemLocale()
334 return systemLocale; in GetSystemLocale()
1091 std::string systemLocale = GetSystemLocale(); in Is24HourClock() local
1092 return Is24HourLocale(systemLocale); in Is24HourClock()
1106 bool LocaleConfig::Is24HourLocale(const std::string& systemLocale) in Is24HourLocale() argument
1109 if (is24HourLocaleMap.find(systemLocale) != is24HourLocaleMap.end()) { in Is24HourLocale()
1110 return is24HourLocaleMap[systemLocale]; in Is24HourLocale()
1113 icu::Locale locale = icu::Locale::forLanguageTag(icu::StringPiece(systemLocale), statu in Is24HourLocale()
1378 icu::Locale systemLocale = icu::Locale::forLanguageTag(systemLocaleTag.c_str(), status); UpdateLanguageOfLocale() local
[all...]
H A Dutils.cpp279 std::string systemLocale = LocaleConfig::GetSystemLocale(); in GetPseudoLocalizationEnforce() local
280 if (systemLocale.compare(PSEUDO_LOCALE_TAG) == 0) { in GetPseudoLocalizationEnforce()
H A Dnumber_format.cpp121 std::string systemLocale = LocaleConfig::GetSystemLocale(); in NumberFormat() local
122 localeInfo = std::make_unique<LocaleInfo>(systemLocale, configs); in NumberFormat()
123 CreateRelativeTimeFormat(systemLocale); in NumberFormat()
H A Dpreferred_language.cpp215 std::string systemLocale = LocaleConfig::GetSystemLocale(); in GetPreferredLocale() local
216 LocaleInfo systemLocaleInfo(systemLocale); in GetPreferredLocale()
H A Di18n_timezone.cpp710 std::string systemLocale = LocaleConfig::GetSystemLocale(); in GetDisplayName() local
711 icu::Locale locale = icu::Locale::forLanguageTag(systemLocale, status); in GetDisplayName()
/base/global/i18n/frameworks/intl/include/
H A Dlocale_config.h179 static bool Is24HourLocale(const std::string& systemLocale);
/base/global/i18n/frameworks/intl/test/unittest/
H A Di18n_test.cpp67 string systemLocale = "zh-Hans-CN"; in HWTEST_F() local
68 I18nErrorCode status = LocaleConfig::SetSystemLocale(systemLocale); in HWTEST_F()
H A Dintl_test.cpp792 std::string systemLocale = LocaleConfig::GetSystemLocale(); in HWTEST_F() local
795 EXPECT_EQ(it->second, systemLocale); in HWTEST_F()
H A Dintl_test_extent.cpp112 std::string systemLocale = LocaleConfig::GetSystemLocale(); in HWTEST_F() local
113 EXPECT_EQ(systemLocale, "zh-Hans-CN"); in HWTEST_F()

Completed in 16 milliseconds