Home
last modified time | relevance | path

Searched refs:supported_locales (Results 1 – 3 of 3) sorted by relevance

/external/libtextclassifier/native/utils/i18n/
Dlocale_test.cc72 std::vector<Locale> supported_locales = {Locale::FromBCP47("en")}; in TEST() local
74 EXPECT_TRUE(Locale::IsAnyLocaleSupported(locales, supported_locales, in TEST()
80 std::vector<Locale> supported_locales = {Locale::FromBCP47("en"), in TEST() local
83 EXPECT_FALSE(Locale::IsAnyLocaleSupported(locales, supported_locales, in TEST()
89 std::vector<Locale> supported_locales = {Locale::FromBCP47("*")}; in TEST() local
91 EXPECT_TRUE(Locale::IsAnyLocaleSupported(locales, supported_locales, in TEST()
96 std::vector<Locale> supported_locales = {Locale::FromBCP47("en")}; in TEST() local
98 EXPECT_TRUE(Locale::IsAnyLocaleSupported({}, supported_locales, in TEST()
Dlocale.cc153 const std::vector<Locale>& supported_locales, in IsLocaleSupported() argument
161 for (const Locale& supported_locale : supported_locales) { in IsLocaleSupported()
185 const std::vector<Locale>& supported_locales, in IsAnyLocaleSupported() argument
190 if (supported_locales.empty()) { in IsAnyLocaleSupported()
194 if (IsLocaleSupported(locale, supported_locales, default_value)) { in IsAnyLocaleSupported()
Dlocale.h60 const std::vector<Locale>& supported_locales,
76 const std::vector<Locale>& supported_locales,