Home
last modified time | relevance | path

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

/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DULocale.java3126 for (String bcpKey : ukeys) { in getInstance()
3127 String bcpType = uext.getUnicodeLocaleType(bcpKey); in getInstance()
3129 String lkey = bcp47ToLDMLKey(bcpKey); in getInstance()
3208 String bcpKey = ldmlKeyToBCP47(key); in extensions() local
3210 if (bcpKey != null && bcpType != null) { in extensions()
3212 intbld.setUnicodeLocaleKeyword(bcpKey, bcpType); in extensions()
3239 String bcpKey = null; in ldmlKeyToBCP47() local
3243 bcpKey = KEYMAP[i + 1]; in ldmlKeyToBCP47()
3248 if (bcpKey == null) { in ldmlKeyToBCP47()
3255 return bcpKey; in ldmlKeyToBCP47()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java3465 String bcpKey = KeyTypeData.toBcpKey(keyword); in toUnicodeLocaleKey() local
3466 if (bcpKey == null && UnicodeLocaleExtension.isKey(keyword)) { in toUnicodeLocaleKey()
3468 bcpKey = AsciiUtil.toLowerString(keyword); in toUnicodeLocaleKey()
3470 return bcpKey; in toUnicodeLocaleKey()
3953 for (String bcpKey : ukeys) { in getInstance()
3954 String bcpType = uext.getUnicodeLocaleType(bcpKey); in getInstance()
3956 String lkey = toLegacyKey(bcpKey); in getInstance()
3957 …String ltype = toLegacyType(bcpKey, ((bcpType.length() == 0) ? "yes" : bcpType)); // use "yes" as … in getInstance()
4040 String bcpKey = toUnicodeLocaleKey(key); in extensions() local
4042 if (bcpKey != null && bcpType != null) { in extensions()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java3312 String bcpKey = KeyTypeData.toBcpKey(keyword); in toUnicodeLocaleKey() local
3313 if (bcpKey == null && UnicodeLocaleExtension.isKey(keyword)) { in toUnicodeLocaleKey()
3315 bcpKey = AsciiUtil.toLowerString(keyword); in toUnicodeLocaleKey()
3317 return bcpKey; in toUnicodeLocaleKey()
3767 for (String bcpKey : ukeys) { in getInstance()
3768 String bcpType = uext.getUnicodeLocaleType(bcpKey); in getInstance()
3770 String lkey = toLegacyKey(bcpKey); in getInstance()
3771 …String ltype = toLegacyType(bcpKey, ((bcpType.length() == 0) ? "yes" : bcpType)); // use "yes" as … in getInstance()
3854 String bcpKey = toUnicodeLocaleKey(key); in extensions() local
3856 if (bcpKey != null && bcpType != null) { in extensions()
[all …]
/external/icu/icu4c/source/common/
Duloc_tag.c926 const char *bcpKey, *bcpValue; in _appendKeywordsToLanguageTag() local
996 bcpKey = LOCALE_ATTRIBUTE_KEY; in _appendKeywordsToLanguageTag()
1000 bcpKey = uloc_toUnicodeLocaleKey(key); in _appendKeywordsToLanguageTag()
1001 if (bcpKey == NULL) { in _appendKeywordsToLanguageTag()
1060 bcpKey = key; in _appendKeywordsToLanguageTag()
1083 ext->key = bcpKey; in _appendKeywordsToLanguageTag()
Duloc.cpp2513 const char* bcpKey = ulocimp_toBcpKey(keyword); in uloc_toUnicodeLocaleKey() local
2514 if (bcpKey == NULL && ultag_isUnicodeLocaleKey(keyword, -1)) { in uloc_toUnicodeLocaleKey()
2518 return bcpKey; in uloc_toUnicodeLocaleKey()
/external/icu/icu4c/source/test/cintltst/
Dcloctst.c6022 const char* bcpKey = NULL; in TestToUnicodeLocaleKey() local
6024 bcpKey = uloc_toUnicodeLocaleKey(keyword); in TestToUnicodeLocaleKey()
6026 if (bcpKey != NULL) { in TestToUnicodeLocaleKey()
6027 log_err("toUnicodeLocaleKey: keyword=%s => %s, expected=NULL\n", keyword, bcpKey); in TestToUnicodeLocaleKey()
6029 } else if (bcpKey == NULL) { in TestToUnicodeLocaleKey()
6032 if (bcpKey != keyword) { in TestToUnicodeLocaleKey()
6033 …rr("toUnicodeLocaleKey: keyword=%s => %s, expected=%s(input pointer)\n", keyword, bcpKey, keyword); in TestToUnicodeLocaleKey()
6035 } else if (uprv_strcmp(bcpKey, expected) != 0) { in TestToUnicodeLocaleKey()
6036 … log_err("toUnicodeLocaleKey: keyword=%s => %s, expected=%s\n", keyword, bcpKey, expected); in TestToUnicodeLocaleKey()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java4665 String bcpKey = ULocale.toUnicodeLocaleKey(keyword); in TestToUnicodeLocaleKey() local
4666 assertEquals("keyword=" + keyword, expected, bcpKey); in TestToUnicodeLocaleKey()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java4666 String bcpKey = ULocale.toUnicodeLocaleKey(keyword); in TestToUnicodeLocaleKey() local
4667 assertEquals("keyword=" + keyword, expected, bcpKey); in TestToUnicodeLocaleKey()