Home
last modified time | relevance | path

Searched refs:langtag (Results 1 – 14 of 14) sorted by relevance

/external/icu/icu4c/source/common/
Duloc_tag.c130 ultag_close(ULanguageTag* langtag);
133 ultag_getLanguage(const ULanguageTag* langtag);
137 ultag_getJDKLanguage(const ULanguageTag* langtag);
141 ultag_getExtlang(const ULanguageTag* langtag, int32_t idx);
144 ultag_getExtlangSize(const ULanguageTag* langtag);
147 ultag_getScript(const ULanguageTag* langtag);
150 ultag_getRegion(const ULanguageTag* langtag);
153 ultag_getVariant(const ULanguageTag* langtag, int32_t idx);
156 ultag_getVariantsSize(const ULanguageTag* langtag);
159 ultag_getExtensionKey(const ULanguageTag* langtag, int32_t idx);
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DLocaleBuilderTest.java185 String langtag = loc.toLanguageTag(); in TestLocaleBuilder() local
186 if (!expected[0].equals(langtag)) { in TestLocaleBuilder()
187 errln("FAIL: Wrong language tag - " + langtag + in TestLocaleBuilder()
190 ULocale loc1 = ULocale.forLanguageTag(langtag); in TestLocaleBuilder()
DULocaleTest.java4069 String langtag = loc.toLanguageTag(); in TestToLanguageTag() local
4070 if (!langtag.equals(locale_to_langtag[i][1])) { in TestToLanguageTag()
4071 errln("FAIL: toLanguageTag returned language tag [" + langtag + "] for locale [" in TestToLanguageTag()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DLocaleBuilderTest.java184 String langtag = loc.toLanguageTag(); in TestLocaleBuilder() local
185 if (!expected[0].equals(langtag)) { in TestLocaleBuilder()
186 errln("FAIL: Wrong language tag - " + langtag + in TestLocaleBuilder()
189 ULocale loc1 = ULocale.forLanguageTag(langtag); in TestLocaleBuilder()
DULocaleTest.java4068 String langtag = loc.toLanguageTag(); in TestToLanguageTag() local
4069 if (!langtag.equals(locale_to_langtag[i][1])) { in TestToLanguageTag()
4070 errln("FAIL: toLanguageTag returned language tag [" + langtag + "] for locale [" in TestToLanguageTag()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DInternalLocaleBuilder.java320 public InternalLocaleBuilder setLanguageTag(LanguageTag langtag) { in setLanguageTag() argument
322 if (langtag.getExtlangs().size() > 0) { in setLanguageTag()
323 _language = langtag.getExtlangs().get(0); in setLanguageTag()
325 String language = langtag.getLanguage(); in setLanguageTag()
330 _script = langtag.getScript(); in setLanguageTag()
331 _region = langtag.getRegion(); in setLanguageTag()
333 List<String> bcpVariants = langtag.getVariants(); in setLanguageTag()
342 setExtensions(langtag.getExtensions(), langtag.getPrivateuse()); in setLanguageTag()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DInternalLocaleBuilder.java316 public InternalLocaleBuilder setLanguageTag(LanguageTag langtag) { in setLanguageTag() argument
318 if (langtag.getExtlangs().size() > 0) { in setLanguageTag()
319 _language = langtag.getExtlangs().get(0); in setLanguageTag()
321 String language = langtag.getLanguage(); in setLanguageTag()
326 _script = langtag.getScript(); in setLanguageTag()
327 _region = langtag.getRegion(); in setLanguageTag()
329 List<String> bcpVariants = langtag.getVariants(); in setLanguageTag()
338 setExtensions(langtag.getExtensions(), langtag.getPrivateuse()); in setLanguageTag()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/impl/locale/
DInternalLocaleBuilder.java316 public InternalLocaleBuilder setLanguageTag(LanguageTag langtag) { in setLanguageTag() argument
318 if (langtag.getExtlangs().size() > 0) { in setLanguageTag()
319 _language = langtag.getExtlangs().get(0); in setLanguageTag()
321 String language = langtag.getLanguage(); in setLanguageTag()
326 _script = langtag.getScript(); in setLanguageTag()
327 _region = langtag.getRegion(); in setLanguageTag()
329 List<String> bcpVariants = langtag.getVariants(); in setLanguageTag()
338 setExtensions(langtag.getExtensions(), langtag.getPrivateuse()); in setLanguageTag()
/external/icu/icu4c/source/common/unicode/
Duloc.h1126 uloc_forLanguageTag(const char* langtag,
1155 char* langtag,
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DlangtagRegex.txt73 $langtag = (?: ( $language )
85 $langtag 90%
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DlangtagRegex.txt73 $langtag = (?: ( $language )
85 $langtag 90%
/external/icu/icu4c/source/test/cintltst/
Dcloctst.c5853 char langtag[256]; in TestToLanguageTag() local
5865 langtag[0] = 0; in TestToLanguageTag()
5868 len = uloc_toLanguageTag(inloc, langtag, sizeof(langtag), FALSE, &status); in TestToLanguageTag()
5878 inloc, langtag); in TestToLanguageTag()
5879 } else if (uprv_strcmp(langtag, expected) != 0) { in TestToLanguageTag()
5881 langtag, inloc, expected); in TestToLanguageTag()
5887 langtag[0] = 0; in TestToLanguageTag()
5890 len = uloc_toLanguageTag(inloc, langtag, sizeof(langtag), TRUE, &status); in TestToLanguageTag()
5899 inloc, langtag); in TestToLanguageTag()
5900 } else if (uprv_strcmp(langtag, expected) != 0) { in TestToLanguageTag()
[all …]
/external/zopfli/src/zopflipng/lodepng/
Dlodepng.cpp2801 unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext() argument
2827 string_set(&info->itext_langtags[info->itext_num - 1], langtag); in lodepng_add_itext()
4447 char *key = 0, *langtag = 0, *transkey = 0; in readChunk_iTXt() local
4480 langtag = (char*)lodepng_malloc(length + 1); in readChunk_iTXt()
4481 if(!langtag) CERROR_BREAK(error, 83); /*alloc fail*/ in readChunk_iTXt()
4483 langtag[length] = 0; in readChunk_iTXt()
4484 for(i = 0; i < length; i++) langtag[i] = data[begin + i]; in readChunk_iTXt()
4520 error = lodepng_add_itext(info, key, langtag, transkey, (char*)decoded.data); in readChunk_iTXt()
4526 lodepng_free(langtag); in readChunk_iTXt()
5052 …nsigned addChunk_iTXt(ucvector* out, unsigned compressed, const char* keyword, const char* langtag, in addChunk_iTXt() argument
[all …]
Dlodepng.h489 unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag,