Searched refs:FromBCP47 (Results 1 – 5 of 5) sorted by relevance
/external/libtextclassifier/utils/ |
D | resources_test.cc | 145 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-US")}, in TEST_P() 148 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-GB")}, in TEST_P() 151 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("pt-PT")}, in TEST_P() 154 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("zh-Hans-CN")}, in TEST_P() 157 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("zh")}, in TEST_P() 160 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("fr-CA")}, in TEST_P() 171 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-CA")}, in TEST_P() 182 EXPECT_FALSE(resources.GetResourceContent({Locale::FromBCP47("es-US")}, in TEST_P() 192 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("es-US")}, in TEST_P() 204 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("fr-CH")}, in TEST_P() [all …]
|
/external/libtextclassifier/utils/i18n/ |
D | locale_test.cc | 30 Locale locale = Locale::FromBCP47("en-CH"); in TEST() 38 Locale locale = Locale::FromBCP47("zh-CN"); in TEST() 46 Locale locale = Locale::FromBCP47("zh-Hant-TW"); in TEST() 54 Locale locale = Locale::FromBCP47("en"); in TEST() 62 Locale locale = Locale::FromBCP47("zh-Hant"); in TEST() 70 std::vector<Locale> locales = {Locale::FromBCP47("zh-HK"), in TEST() 71 Locale::FromBCP47("en-UK")}; in TEST() 72 std::vector<Locale> supported_locales = {Locale::FromBCP47("en")}; in TEST() 79 std::vector<Locale> locales = {Locale::FromBCP47("zh-tw")}; in TEST() 80 std::vector<Locale> supported_locales = {Locale::FromBCP47("en"), in TEST() [all …]
|
D | locale.cc | 80 Locale Locale::FromBCP47(const std::string& locale_tag) { in FromBCP47() function in libtextclassifier3::Locale 182 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseLocales()
|
D | locale.h | 33 static Locale FromBCP47(const std::string& locale_tag);
|
/external/libtextclassifier/annotator/datetime/ |
D | parser.cc | 305 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseAndExpandLocales()
|