Home
last modified time | relevance | path

Searched refs:locale_tag (Results 1 – 8 of 8) sorted by relevance

/external/libtextclassifier/native/utils/grammar/utils/
Dlocale-shard-map.cc60 for (const std::string& locale_tag : locale_tags) { in CreateLocaleShardMap() local
61 locale_shard_map.AddLocalTags(locale_tag); in CreateLocaleShardMap()
Dlocale-shard-map.h49 void AddLocalTags(const std::string& locale_tag);
/external/libtextclassifier/native/utils/i18n/
Dlocale.cc82 Locale Locale::FromBCP47(const std::string& locale_tag) { in FromBCP47() argument
83 std::vector<StringPiece> parts = strings::Split(locale_tag, '-'); in FromBCP47()
Dlocale.h34 static Locale FromBCP47(const std::string& locale_tag);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java5137 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndScript() local
5142 Assert.assertEquals(id, locale_tag.getName()); in TestUndScript()
5147 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndScript()
5151 Assert.assertEquals(locale_new, locale_tag); in TestUndScript()
5153 Assert.assertEquals(locale_tag, locale_build); in TestUndScript()
5160 Assert.assertEquals(displayName, locale_tag.getDisplayName(displayLocale)); in TestUndScript()
5172 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndRegion() local
5177 Assert.assertEquals(id, locale_tag.getName()); in TestUndRegion()
5182 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndRegion()
5186 Assert.assertEquals(locale_new, locale_tag); in TestUndRegion()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java5140 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndScript() local
5145 Assert.assertEquals(id, locale_tag.getName()); in TestUndScript()
5150 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndScript()
5154 Assert.assertEquals(locale_new, locale_tag); in TestUndScript()
5156 Assert.assertEquals(locale_tag, locale_build); in TestUndScript()
5163 Assert.assertEquals(displayName, locale_tag.getDisplayName(displayLocale)); in TestUndScript()
5175 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndRegion() local
5180 Assert.assertEquals(id, locale_tag.getName()); in TestUndRegion()
5185 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndRegion()
5189 Assert.assertEquals(locale_new, locale_tag); in TestUndRegion()
[all …]
/external/cronet/third_party/icu/source/test/intltest/
Dloctest.cpp6150 Locale locale_tag = Locale::forLanguageTag(tag, status); in TestUndScript() local
6156 assertEquals("getName()", id, locale_tag.getName()); in TestUndScript()
6161 assertEquals("toLanguageTag()", tag, locale_tag.toLanguageTag<std::string>(status).c_str()); in TestUndScript()
6171 assertEquals("getDisplayName()", displayName, locale_tag.getDisplayName(displayLocale, tmp)); in TestUndScript()
6184 Locale locale_tag = Locale::forLanguageTag(tag, status); in TestUndRegion() local
6190 assertEquals("getName()", id, locale_tag.getName()); in TestUndRegion()
6195 assertEquals("toLanguageTag()", tag, locale_tag.toLanguageTag<std::string>(status).c_str()); in TestUndRegion()
6205 assertEquals("getDisplayName()", displayName, locale_tag.getDisplayName(displayLocale, tmp)); in TestUndRegion()
/external/icu/icu4c/source/test/intltest/
Dloctest.cpp6151 Locale locale_tag = Locale::forLanguageTag(tag, status); in TestUndScript() local
6157 assertEquals("getName()", id, locale_tag.getName()); in TestUndScript()
6162 assertEquals("toLanguageTag()", tag, locale_tag.toLanguageTag<std::string>(status).c_str()); in TestUndScript()
6172 assertEquals("getDisplayName()", displayName, locale_tag.getDisplayName(displayLocale, tmp)); in TestUndScript()
6185 Locale locale_tag = Locale::forLanguageTag(tag, status); in TestUndRegion() local
6191 assertEquals("getName()", id, locale_tag.getName()); in TestUndRegion()
6196 assertEquals("toLanguageTag()", tag, locale_tag.toLanguageTag<std::string>(status).c_str()); in TestUndRegion()
6206 assertEquals("getDisplayName()", displayName, locale_tag.getDisplayName(displayLocale, tmp)); in TestUndRegion()