Lines Matching refs:Locale
24 std::string GetLocaleString(const icu::Locale& locale) {
25 const char* language = locale.getLanguage();
26 const char* country = locale.getCountry();
44 // Represents the locale-specific ICU text direction.
47 // Convert the ICU default locale to a string.
49 return GetLocaleString(icu::Locale::getDefault());
52 // Convert the ICU canonicalized locale to a string.
53 std::string GetCanonicalLocale(const char* locale) {
54 return GetLocaleString(icu::Locale::createCanonical(locale));
57 // Convert Chrome locale name to ICU locale name
66 // locale. If it's es-RR other than es-ES, map to es-RR. Otherwise, map
69 const icu::Locale& locale = icu::Locale::getDefault();
70 std::string language = locale.getLanguage();
71 const char* country = locale.getCountry();
86 icu::Locale locale(ICULocaleName(locale_string).c_str());
88 icu::Locale::setDefault(locale, error_code);
89 // This return value is actually bogus because Locale object is
91 // presence of actual locale data). However,
117 const icu::Locale& locale = icu::Locale::getDefault();
118 g_icu_text_direction = GetTextDirectionForLocale(locale.getName());
171 // Marking the string as LTR if the locale is RTL and the string does not