Home
last modified time | relevance | path

Searched refs:toLanguageTag (Results 1 – 25 of 50) sorted by relevance

12

/third_party/flutter/engine/flutter/testing/dart/
Dlocale_test.dart12 expect(const Locale('en').toLanguageTag(), 'en');
17 expect(const Locale('en', 'US').toLanguageTag(), 'en-US');
19 expect(const Locale('iw').toLanguageTag(), 'he');
20 expect(const Locale('iw', 'DD').toLanguageTag(), 'he-DE');
30 expect(const Locale.fromSubtags(languageCode: 'en').toLanguageTag(), 'en');
32 expect(const Locale.fromSubtags(scriptCode: 'Latn').toLanguageTag(), 'und-Latn');
35 expect(const Locale.fromSubtags(countryCode: 'US').toLanguageTag(), 'und-US');
39 …expect(const Locale.fromSubtags(languageCode: 'es', countryCode: '419').toLanguageTag(), 'es-419');
45 …romSubtags(languageCode: 'zh', scriptCode: 'Hans', countryCode: 'CN').toLanguageTag(), 'zh-Hans-CN…
/third_party/icu/icu4c/source/test/intltest/
Dlocalebuildertest.cpp73 std::string tag = loc.toLanguageTag<std::string>(status); in Verify()
282 std::string langtag = loc.toLanguageTag<std::string>(status); in TestLocaleBuilder()
956 std::string actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
968 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
979 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
991 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
1002 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
1014 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
1026 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
1038 actual = loc.toLanguageTag<std::string>(status); in TestAddRemoveUnicodeLocaleAttribute()
[all …]
Dloctest.cpp4996 std::string tag = loc.toLanguageTag<std::string>(status); in TestCanonicalize()
5436 std::string result = loc.toLanguageTag<std::string>(status); in TestBug20900()
5485 std::string result = loc.toLanguageTag<std::string>(status); in TestLocaleCanonicalizationFromFile()
5655 loc_c.toLanguageTag(sink, status); in TestToLanguageTag()
5659 std::string result_c = loc_c.toLanguageTag<std::string>(status); in TestToLanguageTag()
5663 std::string result_en = loc_en.toLanguageTag<std::string>(status); in TestToLanguageTag()
5667 std::string result_af = loc_af.toLanguageTag<std::string>(status); in TestToLanguageTag()
5671 std::string result_ext = loc_ext.toLanguageTag<std::string>(status); in TestToLanguageTag()
5675 std::string result_empty = loc_empty.toLanguageTag<std::string>(status); in TestToLanguageTag()
5679 std::string result_ill = loc_ill.toLanguageTag<std::string>(status); in TestToLanguageTag()
[all …]
/third_party/flutter/txt/src/minikin/
DFontLanguageListCache.cpp35 static size_t toLanguageTag(char* output, in toLanguageTag() function
100 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); in parseLanguageList()
113 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); in parseLanguageList()
/third_party/flutter/engine/flutter/third_party/txt/src/minikin/
DFontLanguageListCache.cpp34 static size_t toLanguageTag(char* output, in toLanguageTag() function
98 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); in parseLanguageList()
111 size_t length = toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, locale); in parseLanguageList()
/third_party/flutter/skia/third_party/externals/icu/source/common/unicode/
Dlocid.h425 void toLanguageTag(ByteSink& sink, UErrorCode& status) const;
438 inline StringClass toLanguageTag(UErrorCode& status) const;
1079 Locale::toLanguageTag(UErrorCode& status) const in toLanguageTag() function
1083 toLanguageTag(sink, status); in toLanguageTag()
/third_party/icu/icu4c/source/common/unicode/
Dlocid.h427 void toLanguageTag(ByteSink& sink, UErrorCode& status) const;
440 inline StringClass toLanguageTag(UErrorCode& status) const;
1173 Locale::toLanguageTag(UErrorCode& status) const in toLanguageTag() function
1177 toLanguageTag(sink, status); in toLanguageTag()
/third_party/skia/third_party/externals/icu/source/common/unicode/
Dlocid.h427 void toLanguageTag(ByteSink& sink, UErrorCode& status) const;
440 inline StringClass toLanguageTag(UErrorCode& status) const;
1173 Locale::toLanguageTag(UErrorCode& status) const in toLanguageTag() function
1177 toLanguageTag(sink, status); in toLanguageTag()
/third_party/node/deps/icu-small/source/common/unicode/
Dlocid.h427 void toLanguageTag(ByteSink& sink, UErrorCode& status) const;
440 inline StringClass toLanguageTag(UErrorCode& status) const;
1173 Locale::toLanguageTag(UErrorCode& status) const in toLanguageTag() function
1177 toLanguageTag(sink, status); in toLanguageTag()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/
DULocaleTest.java4072 String langtag = loc.toLanguageTag(); in TestToLanguageTag()
4949 Assert.assertEquals(und, empty_new.toLanguageTag()); in TestUnd()
4950 Assert.assertEquals(und, root_new.toLanguageTag()); in TestUnd()
4951 Assert.assertEquals(und, und_new.toLanguageTag()); in TestUnd()
4953 Assert.assertEquals(und, empty_tag.toLanguageTag()); in TestUnd()
4954 Assert.assertEquals(und, root_tag.toLanguageTag()); in TestUnd()
4955 Assert.assertEquals(und, und_tag.toLanguageTag()); in TestUnd()
4957 Assert.assertEquals(und, root_build.toLanguageTag()); in TestUnd()
4958 Assert.assertEquals(und, und_build.toLanguageTag()); in TestUnd()
5011 Assert.assertEquals(tag, locale_new.toLanguageTag()); in TestUndScript()
[all …]
DLocaleDataTest.java210 if ("ms-ID".equals(locale.toLanguageTag()) || "sat".equals(locale.toLanguageTag())) { in TestExemplarSet()
285 if ("ms-ID".equals(locale.toLanguageTag()) || "sat".equals(locale.toLanguageTag())) { in TestExemplarSet2()
DLocaleDistanceTest.java150 String desiredTag = args.desired.toLanguageTag(); in handle()
151 String supportedTag = args.supported.toLanguageTag(); in handle()
DLocaleBuilderTest.java190 String langtag = loc.toLanguageTag(); in TestLocaleBuilder()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java4135 String langtag = loc.toLanguageTag(); in TestToLanguageTag()
5018 Assert.assertEquals(und, empty_new.toLanguageTag()); in TestUnd()
5019 Assert.assertEquals(und, root_new.toLanguageTag()); in TestUnd()
5020 Assert.assertEquals(und, und_new.toLanguageTag()); in TestUnd()
5022 Assert.assertEquals(und, empty_tag.toLanguageTag()); in TestUnd()
5023 Assert.assertEquals(und, root_tag.toLanguageTag()); in TestUnd()
5024 Assert.assertEquals(und, und_tag.toLanguageTag()); in TestUnd()
5026 Assert.assertEquals(und, root_build.toLanguageTag()); in TestUnd()
5027 Assert.assertEquals(und, und_build.toLanguageTag()); in TestUnd()
5080 Assert.assertEquals(tag, locale_new.toLanguageTag()); in TestUndScript()
[all …]
DLocaleDistanceTest.java147 String desiredTag = args.desired.toLanguageTag(); in handle()
148 String supportedTag = args.supported.toLanguageTag(); in handle()
DLocaleBuilderTest.java187 String langtag = loc.toLanguageTag(); in TestLocaleBuilder()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java119 proxy.languageTag = locale.toLanguageTag(); in writeReplace()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberPermutationTest.java134 resultLines.add(" " + locale.toLanguageTag()); in testPermutations()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberPermutationTest.java131 resultLines.add(" " + locale.toLanguageTag()); in testPermutations()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DLocalizedNumberFormatterAsFormat.java117 proxy.languageTag = locale.toLanguageTag(); in writeReplace()
/third_party/libphonenumber/java/demo/src/com/google/phonenumbers/
DPhoneNumberParserServlet.java213 "&geocodingLocale=" + URLEncoder.encode(geocodingLocale.toLanguageTag(), UTF_8.name())); in getPermaLinkURL()
259 + StringEscapeUtils.escapeHtml(geocodingLocale.toLanguageTag()) in getOutputForSingleNumber()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXLikelySubtags.java191 String tag = locale.toLanguageTag(); in makeMaximizedLsrFrom()
202 String tag = locale.toLanguageTag(); in makeMaximizedLsrFrom()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/locale/
DXLikelySubtags.java198 String tag = locale.toLanguageTag(); in makeMaximizedLsrFrom()
208 String tag = locale.toLanguageTag(); in makeMaximizedLsrFrom()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java1678 ULocale.forLanguageTag(extensions)).toLanguageTag(); in replaceTransformedExtensions()
3485 public String toLanguageTag() { in toLanguageTag() method in ULocale
4449 String tag = uloc.toLanguageTag(); in toLocale()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DMeasureFormat.java951 out.writeUTF(locale.toLanguageTag()); in writeExternal()

12