Searched refs:locale_tag (Results 1 – 7 of 7) sorted by relevance
/external/libtextclassifier/native/utils/grammar/utils/ |
D | locale-shard-map.cc | 48 for (const std::string& locale_tag : locale_tags) { in CreateLocaleShardMap() local 49 locale_shard_map.AddLocalTags(locale_tag); in CreateLocaleShardMap()
|
D | locale-shard-map.h | 48 void AddLocalTags(const std::string& locale_tag);
|
/external/libtextclassifier/native/utils/i18n/ |
D | locale.cc | 82 Locale Locale::FromBCP47(const std::string& locale_tag) { in FromBCP47() argument 83 std::vector<StringPiece> parts = strings::Split(locale_tag, '-'); in FromBCP47()
|
D | locale.h | 34 static Locale FromBCP47(const std::string& locale_tag);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ULocaleTest.java | 5051 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndScript() local 5056 Assert.assertEquals(id, locale_tag.getName()); in TestUndScript() 5061 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndScript() 5065 Assert.assertEquals(locale_new, locale_tag); in TestUndScript() 5067 Assert.assertEquals(locale_tag, locale_build); in TestUndScript() 5074 Assert.assertEquals(displayName, locale_tag.getDisplayName(displayLocale)); in TestUndScript() 5086 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndRegion() local 5091 Assert.assertEquals(id, locale_tag.getName()); in TestUndRegion() 5096 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndRegion() 5100 Assert.assertEquals(locale_new, locale_tag); in TestUndRegion() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ULocaleTest.java | 5054 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndScript() local 5059 Assert.assertEquals(id, locale_tag.getName()); in TestUndScript() 5064 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndScript() 5068 Assert.assertEquals(locale_new, locale_tag); in TestUndScript() 5070 Assert.assertEquals(locale_tag, locale_build); in TestUndScript() 5077 Assert.assertEquals(displayName, locale_tag.getDisplayName(displayLocale)); in TestUndScript() 5089 ULocale locale_tag = ULocale.forLanguageTag(tag); in TestUndRegion() local 5094 Assert.assertEquals(id, locale_tag.getName()); in TestUndRegion() 5099 Assert.assertEquals(tag, locale_tag.toLanguageTag()); in TestUndRegion() 5103 Assert.assertEquals(locale_new, locale_tag); in TestUndRegion() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | loctest.cpp | 5959 Locale locale_tag = Locale::forLanguageTag(tag, status); in TestUndScript() local 5965 assertEquals("getName()", id, locale_tag.getName()); in TestUndScript() 5970 assertEquals("toLanguageTag()", tag, locale_tag.toLanguageTag<std::string>(status).c_str()); in TestUndScript() 5980 assertEquals("getDisplayName()", displayName, locale_tag.getDisplayName(displayLocale, tmp)); in TestUndScript() 5993 Locale locale_tag = Locale::forLanguageTag(tag, status); in TestUndRegion() local 5999 assertEquals("getName()", id, locale_tag.getName()); in TestUndRegion() 6004 assertEquals("toLanguageTag()", tag, locale_tag.toLanguageTag<std::string>(status).c_str()); in TestUndRegion() 6014 assertEquals("getDisplayName()", displayName, locale_tag.getDisplayName(displayLocale, tmp)); in TestUndRegion()
|