Searched refs:bcpKey (Results 1 – 5 of 5) sorted by relevance
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | ULocale.java | 3415 String bcpKey = KeyTypeData.toBcpKey(keyword); in toUnicodeLocaleKey() local 3416 if (bcpKey == null && UnicodeLocaleExtension.isKey(keyword)) { in toUnicodeLocaleKey() 3418 bcpKey = AsciiUtil.toLowerString(keyword); in toUnicodeLocaleKey() 3420 return bcpKey; in toUnicodeLocaleKey() 3906 for (String bcpKey : ukeys) { in getInstance() 3907 String bcpType = uext.getUnicodeLocaleType(bcpKey); in getInstance() 3909 String lkey = toLegacyKey(bcpKey); in getInstance() 3910 …String ltype = toLegacyType(bcpKey, ((bcpType.length() == 0) ? "yes" : bcpType)); // use "yes" as … in getInstance() 3993 String bcpKey = toUnicodeLocaleKey(key); in extensions() local 3995 if (bcpKey != null && bcpType != null) { in extensions() [all …]
|
/external/icu/icu4c/source/test/cintltst/ |
D | cloctst.c | 5883 const char* bcpKey = NULL; in TestToUnicodeLocaleKey() local 5885 bcpKey = uloc_toUnicodeLocaleKey(keyword); in TestToUnicodeLocaleKey() 5887 if (bcpKey != NULL) { in TestToUnicodeLocaleKey() 5888 log_err("toUnicodeLocaleKey: keyword=%s => %s, expected=NULL\n", keyword, bcpKey); in TestToUnicodeLocaleKey() 5890 } else if (bcpKey == NULL) { in TestToUnicodeLocaleKey() 5893 if (bcpKey != keyword) { in TestToUnicodeLocaleKey() 5894 …rr("toUnicodeLocaleKey: keyword=%s => %s, expected=%s(input pointer)\n", keyword, bcpKey, keyword); in TestToUnicodeLocaleKey() 5896 } else if (uprv_strcmp(bcpKey, expected) != 0) { in TestToUnicodeLocaleKey() 5897 … log_err("toUnicodeLocaleKey: keyword=%s => %s, expected=%s\n", keyword, bcpKey, expected); in TestToUnicodeLocaleKey()
|
/external/icu/icu4c/source/common/ |
D | uloc_tag.c | 916 const char *bcpKey, *bcpValue; in _appendKeywordsToLanguageTag() local 989 bcpKey = uloc_toUnicodeLocaleKey(key); in _appendKeywordsToLanguageTag() 990 if (bcpKey == NULL) { in _appendKeywordsToLanguageTag() 1049 bcpKey = key; in _appendKeywordsToLanguageTag() 1073 ext->key = bcpKey; in _appendKeywordsToLanguageTag()
|
D | uloc.cpp | 2530 const char* bcpKey = ulocimp_toBcpKey(keyword); in uloc_toUnicodeLocaleKey() local 2531 if (bcpKey == NULL && ultag_isUnicodeLocaleKey(keyword, -1)) { in uloc_toUnicodeLocaleKey() 2535 return bcpKey; in uloc_toUnicodeLocaleKey()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | ULocaleTest.java | 4518 String bcpKey = ULocale.toUnicodeLocaleKey(keyword); in TestToUnicodeLocaleKey() local 4519 assertEquals("keyword=" + keyword, expected, bcpKey); in TestToUnicodeLocaleKey()
|