Searched refs:FromBCP47 (Results 1 – 11 of 11) sorted by relevance
/external/libtextclassifier/native/utils/ |
D | resources_test.cc | 140 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-US")}, in TEST_F() 143 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-GB")}, in TEST_F() 146 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("pt-PT")}, in TEST_F() 149 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("zh-Hans-CN")}, in TEST_F() 152 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("zh")}, in TEST_F() 155 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("fr-CA")}, in TEST_F() 158 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("id")}, in TEST_F() 169 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("en-CA")}, in TEST_F() 180 EXPECT_FALSE(resources.GetResourceContent({Locale::FromBCP47("es-US")}, in TEST_F() 190 EXPECT_TRUE(resources.GetResourceContent({Locale::FromBCP47("es-US")}, in TEST_F() [all …]
|
/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/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 | 72 locales.emplace_back(Locale::FromBCP47("en")); in Parse()
|
D | regex-parser.cc | 314 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseAndExpandLocales()
|
/external/libtextclassifier/native/annotator/ |
D | annotator_test-include.cc | 1863 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1884 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1903 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1922 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1942 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1978 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 1999 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2018 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2037 std::vector<Locale> locales = {Locale::FromBCP47("en")}; in TEST_F() 2057 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()
|