Home
last modified time | relevance | path

Searched refs:FromBCP47 (Results 1 – 11 of 11) sorted by relevance

/external/libtextclassifier/native/utils/i18n/
Dlocale_test.cc30 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 …]
Dlocale.cc82 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()
Dlocale-list.cc34 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseFrom()
Dlocale.h34 static Locale FromBCP47(const std::string& locale_tag);
/external/libtextclassifier/native/utils/
Dresources_test.cc132 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/
Dlocale-shard-map_test.cc38 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/
Dgrammar-annotator_test.cc70 {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/
Dgrammar-parser.cc65 locales.emplace_back(Locale::FromBCP47("en")); in Parse()
Dregex-parser.cc313 const Locale locale = Locale::FromBCP47(locale_str.ToString()); in ParseAndExpandLocales()
/external/libtextclassifier/native/annotator/
Dannotator_test-include.cc1891 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/
Dutils.h85 context.locales = {Locale::FromBCP47("en")}; in TextContextForText()