Searched refs:FromBCP47 (Results 1 – 11 of 11) sorted by relevance
/external/libtextclassifier/native/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 | 82 Locale Locale::FromBCP47(const std::string& locale_tag) { in FromBCP47() function in libtextclassifier3::Locale 226 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseLocales()
|
D | locale-list.cc | 34 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseFrom()
|
D | locale.h | 34 static Locale FromBCP47(const std::string& locale_tag);
|
/external/libtextclassifier/native/utils/ |
D | resources_test.cc | 132 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-US")}, in TEST_F() 135 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-GB")}, in TEST_F() 138 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("pt-PT")}, in TEST_F() 141 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("zh-Hans-CN")}, in TEST_F() 144 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("zh")}, in TEST_F() 147 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("fr-CA")}, in TEST_F() 158 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-CA")}, in TEST_F() 169 EXPECT_FALSE(resources.GetResourceContent({Locale::FromBCP47("es-US")}, in TEST_F() 179 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("es-US")}, in TEST_F() 191 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("fr-CH")}, in TEST_F() [all …]
|
/external/libtextclassifier/native/utils/grammar/utils/ |
D | locale-shard-map_test.cc | 38 EXPECT_EQ(locale_shard_map.GetLocales(0)[0], Locale::FromBCP47("ar-EG")); in TEST() 39 EXPECT_EQ(locale_shard_map.GetLocales(8)[0], Locale::FromBCP47("fr-FR")); in TEST() 40 EXPECT_EQ(locale_shard_map.GetLocales(16)[0], Locale::FromBCP47("mr-IN")); in TEST() 41 EXPECT_EQ(locale_shard_map.GetLocales(24)[0], Locale::FromBCP47("te-IN")); in TEST() 42 EXPECT_EQ(locale_shard_map.GetLocales(30)[0], Locale::FromBCP47("zh-TW")); in TEST() 55 EXPECT_EQ(locale_shard_map.GetLocales(0)[0], Locale::FromBCP47("ar-EG")); in TEST() 56 EXPECT_EQ(locale_shard_map.GetLocales(0)[1], Locale::FromBCP47("bn-BD")); in TEST() 57 EXPECT_EQ(locale_shard_map.GetLocales(0)[2], Locale::FromBCP47("cs-CZ")); in TEST() 58 EXPECT_EQ(locale_shard_map.GetLocales(1)[0], Locale::FromBCP47("en")); in TEST() 72 EXPECT_EQ(locale_shard_map.GetLocales(1)[0], Locale::FromBCP47("en-US")); in TEST()
|
/external/libtextclassifier/native/annotator/grammar/ |
D | grammar-annotator_test.cc | 70 {Locale::FromBCP47("en")}, in TEST_F() 113 {Locale::FromBCP47("en")}, in TEST_F() 156 {Locale::FromBCP47("en")}, in TEST_F() 188 {Locale::FromBCP47("en")}, in TEST_F() 243 {Locale::FromBCP47("en")}, in TEST_F() 247 {Locale::FromBCP47("en")}, in TEST_F() 252 {Locale::FromBCP47("en")}, in TEST_F() 304 {Locale::FromBCP47("en")}, in TEST_F() 311 {Locale::FromBCP47("en")}, in TEST_F() 343 {Locale::FromBCP47("en")}, in TEST_F() [all …]
|
/external/libtextclassifier/native/annotator/datetime/ |
D | grammar-parser.cc | 65 locales.emplace_back(Locale::FromBCP47("en")); in Parse()
|
D | regex-parser.cc | 313 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseAndExpandLocales()
|
/external/libtextclassifier/native/annotator/ |
D | annotator_test-include.cc | 1891 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1912 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1931 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1950 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1970 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2006 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2027 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2046 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2065 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2085 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() [all …]
|
/external/libtextclassifier/native/utils/grammar/testing/ |
D | utils.h | 85 context.locales = {Locale::FromBCP47("en")}; in TextContextForText()
|