Searched refs:IsValidLocaleSyntax (Results 1 – 9 of 9) sorted by relevance
513 TEST_F(L10nUtilTest, IsValidLocaleSyntax) { in TEST_F() argument515 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("en")); in TEST_F()516 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("fr")); in TEST_F()517 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("de")); in TEST_F()518 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("pt")); in TEST_F()519 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("zh")); in TEST_F()520 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("fil")); in TEST_F()521 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("haw")); in TEST_F()522 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("en-US")); in TEST_F()523 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax("en_US")); in TEST_F()[all …]
98 UI_BASE_EXPORT bool IsValidLocaleSyntax(const std::string& locale);
593 bool IsValidLocaleSyntax(const std::string& locale) { in IsValidLocaleSyntax() function
175 if (!l10n_util::IsValidLocaleSyntax(locale)) in GetInitialLocale()182 if (l10n_util::IsValidLocaleSyntax(locale)) in SetInitialLocale()
43 !l10n_util::IsValidLocaleSyntax(info->default_locale)) { in Parse()
86 !l10n_util::IsValidLocaleSyntax(voice_data.lang)) { in Parse()
163 if (!lang.empty() && !l10n_util::IsValidLocaleSyntax(lang)) { in RunAsync()
181 l10n_util::IsValidLocaleSyntax(current_locale)) { in SetPrefs()
444 EXPECT_TRUE(l10n_util::IsValidLocaleSyntax(language_code)) in TEST_F()