Home
last modified time | relevance | path

Searched refs:localeID (Results 1 – 25 of 69) sorted by relevance

123

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DResourceBundleWrapper.java31 private String localeID = null; field in ResourceBundleWrapper
95 return localeID; in getLocaleID()
105 return new ULocale(localeID); in getULocale()
117 public static ResourceBundleWrapper getBundleInstance(String baseName, String localeID, in getBundleInstance() argument
124 b = instantiateBundle(baseName, localeID, null, root, disableFallback); in getBundleInstance()
126 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), in getBundleInstance()
134 …row new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"",""); in getBundleInstance()
139 private static boolean localeIDStartsWithLangSubtag(String localeID, String lang) { in localeIDStartsWithLangSubtag() argument
140 return localeID.startsWith(lang) && in localeIDStartsWithLangSubtag()
141 (localeID.length() == lang.length() || localeID.charAt(lang.length()) == '_'); in localeIDStartsWithLangSubtag()
[all …]
DICUResourceBundle.java56 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument
59 this.localeID = localeID; in WholeBundle()
60 this.ulocale = new ULocale(localeID); in WholeBundle()
66 String localeID; field in ICUResourceBundle.WholeBundle
1090 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1092 return getBundleInstance(baseName, localeID, root,
1105 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1110 localeID = ULocale.getBaseName(localeID);
1113 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(),
1116 b = instantiateBundle(baseName, localeID, null, root, openType);
[all …]
DICUResourceBundleReader.java151 final String localeID; field in ICUResourceBundleReader.ReaderCacheKey
153 ReaderCacheKey(String baseName, String localeID) { in ReaderCacheKey() argument
155 this.localeID = (localeID == null) ? "" : localeID; in ReaderCacheKey()
168 && this.localeID.equals(info.localeID); in equals()
173 return baseName.hashCode() ^ localeID.hashCode(); in hashCode()
183 String fullName = ICUResourceBundleReader.getFullName(key.baseName, key.localeID); in createInstance()
200 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loader); in createInstance()
214 String baseName, String localeID, in ICUResourceBundleReader() argument
230 static ICUResourceBundleReader getReader(String baseName, String localeID, ClassLoader root) { in getReader() argument
231 ReaderCacheKey info = new ReaderCacheKey(baseName, localeID); in getReader()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DResourceBundleWrapper.java33 private String localeID = null; field in ResourceBundleWrapper
97 return localeID; in getLocaleID()
107 return new ULocale(localeID); in getULocale()
119 public static ResourceBundleWrapper getBundleInstance(String baseName, String localeID, in getBundleInstance() argument
126 b = instantiateBundle(baseName, localeID, null, root, disableFallback); in getBundleInstance()
128 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(), in getBundleInstance()
136 …row new MissingResourceException("Could not find the bundle "+ baseName+separator+ localeID,"",""); in getBundleInstance()
141 private static boolean localeIDStartsWithLangSubtag(String localeID, String lang) { in localeIDStartsWithLangSubtag() argument
142 return localeID.startsWith(lang) && in localeIDStartsWithLangSubtag()
143 (localeID.length() == lang.length() || localeID.charAt(lang.length()) == '_'); in localeIDStartsWithLangSubtag()
[all …]
DICUResourceBundle.java60 WholeBundle(String baseName, String localeID, ClassLoader loader, in WholeBundle() argument
63 this.localeID = localeID; in WholeBundle()
64 this.ulocale = new ULocale(localeID); in WholeBundle()
70 String localeID; field in ICUResourceBundle.WholeBundle
1094 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1096 return getBundleInstance(baseName, localeID, root,
1109 public static ICUResourceBundle getBundleInstance(String baseName, String localeID,
1114 localeID = ULocale.getBaseName(localeID);
1117 b = instantiateBundle(baseName, localeID, ULocale.getDefault().getBaseName(),
1120 b = instantiateBundle(baseName, localeID, null, root, openType);
[all …]
DICUResourceBundleReader.java153 final String localeID; field in ICUResourceBundleReader.ReaderCacheKey
155 ReaderCacheKey(String baseName, String localeID) { in ReaderCacheKey() argument
157 this.localeID = (localeID == null) ? "" : localeID; in ReaderCacheKey()
170 && this.localeID.equals(info.localeID); in equals()
175 return baseName.hashCode() ^ localeID.hashCode(); in hashCode()
185 String fullName = ICUResourceBundleReader.getFullName(key.baseName, key.localeID); in createInstance()
202 return new ICUResourceBundleReader(inBytes, key.baseName, key.localeID, loader); in createInstance()
216 String baseName, String localeID, in ICUResourceBundleReader() argument
232 static ICUResourceBundleReader getReader(String baseName, String localeID, ClassLoader root) { in getReader() argument
233 ReaderCacheKey info = new ReaderCacheKey(baseName, localeID); in getReader()
/external/icu/icu4c/source/common/
Duloc.cpp58 locale_getKeywords(const char *localeID,
528 …asBCP47Extension(id) (id && uprv_strstr(id, "@") == NULL && getShortestSubtagLength(localeID) == 1)
537 static int32_t getShortestSubtagLength(const char *localeID) { in getShortestSubtagLength() argument
538 int32_t localeIDLength = uprv_strlen(localeID); in getShortestSubtagLength()
545 if (localeID[i] != '_' && localeID[i] != '-') { in getShortestSubtagLength()
568 locale_getKeywordsStart(const char *localeID) { in locale_getKeywordsStart() argument
570 if((result = uprv_strchr(localeID, '@')) != NULL) { in locale_getKeywordsStart()
581 if((result = uprv_strchr(localeID, *charToFind)) != NULL) { in locale_getKeywordsStart()
638 _getKeywords(const char *localeID, in _getKeywords() argument
651 const char* pos = localeID; in _getKeywords()
[all …]
Dloclikely.cpp42 findLikelySubtags(const char* localeID, in findLikelySubtags() argument
54 s = ures_getStringByKey(subtags, localeID, &resLen, &tmpErr); in findLikelySubtags()
466 const char* localeID, in parseTagString() argument
475 const char* position = localeID; in parseTagString()
479 localeID == NULL || in parseTagString()
565 return (int32_t)(position - localeID); in parseTagString()
853 _uloc_addLikelySubtags(const char* localeID, in _uloc_addLikelySubtags() argument
872 else if (localeID == NULL || in _uloc_addLikelySubtags()
879 localeID, in _uloc_addLikelySubtags()
897 while (_isIDSeparator(localeID[trailingIndex])) { in _uloc_addLikelySubtags()
[all …]
Dulocimp.h50 ulocimp_getLanguage(const char *localeID,
55 ulocimp_getScript(const char *localeID,
60 ulocimp_getCountry(const char *localeID,
90 ulocimp_getRegionForSupplementalData(const char *localeID, UBool inferRegion,
94 locale_getKeywordsStart(const char *localeID);
Duloc_tag.c639 _appendLanguageToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendLanguageToLanguageTag() argument
649 len = uloc_getLanguage(localeID, buf, sizeof(buf), &tmpStatus); in _appendLanguageToLanguageTag()
694 _appendScriptToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UE… in _appendScriptToLanguageTag() argument
704 len = uloc_getScript(localeID, buf, sizeof(buf), &tmpStatus); in _appendScriptToLanguageTag()
736 _appendRegionToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, UE… in _appendRegionToLanguageTag() argument
746 len = uloc_getCountry(localeID, buf, sizeof(buf), &tmpStatus); in _appendRegionToLanguageTag()
778 _appendVariantsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendVariantsToLanguageTag() argument
788 len = uloc_getVariant(localeID, buf, sizeof(buf), &tmpStatus); in _appendVariantsToLanguageTag()
902 _appendKeywordsToLanguageTag(const char* localeID, char* appendAt, int32_t capacity, UBool strict, … in _appendKeywordsToLanguageTag() argument
909 keywordEnum = uloc_openKeywords(localeID, status); in _appendKeywordsToLanguageTag()
[all …]
Dlocid.cpp98 U_CFUNC int32_t locale_getKeywords(const char *localeID,
486 Locale& Locale::init(const char* localeID, UBool canonicalize) in init() argument
511 if(localeID == NULL) { in init()
522 uloc_canonicalize(localeID, fullName, sizeof(fullNameBuffer), &err) : in init()
523 uloc_getName(localeID, fullName, sizeof(fullNameBuffer), &err); in init()
534 uloc_canonicalize(localeID, fullName, length+1, &err) : in init()
535 uloc_getName(localeID, fullName, length+1, &err); in init()
702 const char *localeID = newLocale.getName(); in setDefault() local
703 locale_set_default_internal(localeID, status); in setDefault()
Dures_cnv.c31 const char *localeID, in ures_openU() argument
77 return ures_open(path, localeID, status); in ures_openU()
/external/icu/icu4c/source/common/unicode/
Duloc.h395 uloc_setDefault(const char* localeID,
412 uloc_getLanguage(const char* localeID,
430 uloc_getScript(const char* localeID,
448 uloc_getCountry(const char* localeID,
466 uloc_getVariant(const char* localeID,
489 uloc_getName(const char* localeID,
512 uloc_canonicalize(const char* localeID,
525 uloc_getISO3Language(const char* localeID);
536 uloc_getISO3Country(const char* localeID);
547 uloc_getLCID(const char* localeID);
[all …]
/external/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp230 static void testLocale(const char *localeID, int32_t lcid, NumberFormat *wnf, UBool currency, TestL… in testLocale() argument
247 UnicodeString locale(localeID); in testLocale()
255 UnicodeString locale(localeID); in testLocale()
263 UnicodeString locale(localeID); in testLocale()
278 char localeID[128]; in testLocales() local
281 if (lcidRecords[i].localeID == NULL) { in testLocales()
285 strcpy(localeID, lcidRecords[i].localeID); in testLocales()
287 if (strchr(localeID, '@') > 0) { in testLocales()
288 strcat(localeID, ";"); in testLocales()
290 strcat(localeID, "@"); in testLocales()
[all …]
Dwinutil.cpp41 char localeID[ULOC_FULLNAME_CAPACITY]; in EnumLocalesProc() local
59 …localeIDLen = uprv_convertToPosix(lcidRecords[lcidCount].lcid, localeID, UPRV_LENGTHOF(localeID), … in EnumLocalesProc()
61 lcidRecords[lcidCount].localeID = new char[localeIDLen + 1]; in EnumLocalesProc()
62 memcpy(lcidRecords[lcidCount].localeID, localeID, localeIDLen); in EnumLocalesProc()
63 lcidRecords[lcidCount].localeID[localeIDLen] = 0; in EnumLocalesProc()
65 lcidRecords[lcidCount].localeID = NULL; in EnumLocalesProc()
91 delete lcidRecords[i].localeID; in freeLocales()
Dwindttst.cpp117 if (lcidRecords[i].localeID == NULL) { in testLocales()
125 char localeID[64]; in testLocales() local
127 uprv_strcpy(localeID, lcidRecords[i].localeID); in testLocales()
128 uprv_strcat(localeID, getCalendarType(calType)); in testLocales()
131 Locale ulocale(localeID); in testLocales()
137 if (uprv_strchr(localeID, '@') > 0) { in testLocales()
138 uprv_strcat(localeID, ";"); in testLocales()
140 uprv_strcat(localeID, "@"); in testLocales()
143 uprv_strcat(localeID, "compat=host"); in testLocales()
145 Locale wlocale(localeID); in testLocales()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/util/
DULocale.java283 private String localeID; field in ULocale
386 private ULocale(String localeID, Locale locale) { in ULocale() argument
387 this.localeID = localeID; in ULocale()
396 this.localeID = getName(forLocale(loc).toString()); in ULocale()
438 public ULocale(String localeID) { in ULocale() argument
439 this.localeID = getName(localeID); in ULocale()
473 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
696 return localeID.hashCode(); in hashCode()
713 return localeID.equals((String)obj); in equals()
716 return localeID.equals(((ULocale)obj).localeID); in equals()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DULocale.java330 private String localeID; field in ULocale
433 private ULocale(String localeID, Locale locale) { in ULocale() argument
434 this.localeID = localeID; in ULocale()
443 this.localeID = getName(forLocale(loc).toString()); in ULocale()
480 public ULocale(String localeID) { in ULocale() argument
481 this.localeID = getName(localeID); in ULocale()
515 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
794 return localeID.hashCode(); in hashCode()
812 return localeID.equals(((ULocale)obj).localeID); in equals()
945 public static String getLanguage(String localeID) { in getLanguage() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DULocale.java292 private String localeID; field in ULocale
395 private ULocale(String localeID, Locale locale) { in ULocale() argument
396 this.localeID = localeID; in ULocale()
405 this.localeID = getName(forLocale(loc).toString()); in ULocale()
440 public ULocale(String localeID) { in ULocale() argument
441 this.localeID = getName(localeID); in ULocale()
473 localeID = getName(lscvToID(a, b, c, EMPTY_STRING)); in ULocale()
731 return localeID.hashCode(); in hashCode()
748 return localeID.equals(((ULocale)obj).localeID); in equals()
874 public static String getLanguage(String localeID) { in getLanguage() argument
[all …]
/external/icu/icu4c/source/i18n/
Dulocdata.c53 ulocdata_open(const char *localeID, UErrorCode *status) in ulocdata_open() argument
70 uld->bundle = ures_open(NULL, localeID, status); in ulocdata_open()
71 uld->langBundle = ures_open(U_ICUDATA_LANG, localeID, status); in ulocdata_open()
194 static UResourceBundle * measurementTypeBundleForLocale(const char *localeID, const char *measureme… in measurementTypeBundleForLocale() argument
199 ulocimp_getRegionForSupplementalData(localeID, TRUE, region, ULOC_COUNTRY_CAPACITY, status); in measurementTypeBundleForLocale()
223 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status){ in ulocdata_getMeasurementSystem() argument
232 measurement = measurementTypeBundleForLocale(localeID, MEASUREMENT_SYSTEM, status); in ulocdata_getMeasurementSystem()
242 ulocdata_getPaperSize(const char* localeID, int32_t *height, int32_t *width, UErrorCode *status){ in ulocdata_getPaperSize() argument
251 paperSizeBundle = measurementTypeBundleForLocale(localeID, PAPER_SIZE, status); in ulocdata_getPaperSize()
/external/icu/icu4c/source/test/cintltst/
Dcloctst.c1681 const char *localeID; in TestKeywordVariants() member
1739 keywords = uloc_openKeywords(testCases[i].localeID, &status); in TestKeywordVariants()
1743 testCases[i].localeID, in TestKeywordVariants()
1772 resultLen = uloc_getName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1776 testCases[i].localeID, buffer); in TestKeywordVariants()
1779 testCases[i].localeID, testCases[i].expectedLocaleID, buffer); in TestKeywordVariants()
1784 … testCases[i].localeID, testCases[i].expectedLocaleID, buffer, u_errorName(status)); in TestKeywordVariants()
1789 resultLen = uloc_getBaseName(testCases[i].localeID, buffer, 256, &status); in TestKeywordVariants()
1793 testCases[i].localeID, buffer); in TestKeywordVariants()
1796 testCases[i].localeID, testCases[i].expectedLocaleIDNoKeywords, buffer); in TestKeywordVariants()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dulocdata.h91 ulocdata_open(const char *localeID, UErrorCode *status);
224 ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status);
243 ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DULocaleTest.java1254 String localeID="zh_CN"; in TestCoverage() local
1262 name = ULocale.getDisplayName(localeID, testLocale); in TestCoverage()
1263 language = ULocale.getDisplayLanguage(localeID, testLocale); in TestCoverage()
1264 script = ULocale.getDisplayScriptInContext(localeID, testLocale); in TestCoverage()
1265 country = ULocale.getDisplayCountry(localeID, testLocale); in TestCoverage()
1266 variant = ULocale.getDisplayVariant(localeID, testLocale); in TestCoverage()
1278 name = ULocale.getDisplayName(localeID, loc); in TestCoverage()
1279 language = ULocale.getDisplayLanguage(localeID, loc); in TestCoverage()
1280 script = ULocale.getDisplayScriptInContext(localeID, loc); in TestCoverage()
1281 country = ULocale.getDisplayCountry(localeID, loc); in TestCoverage()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DULocaleTest.java1253 String localeID="zh_CN"; in TestCoverage() local
1261 name = ULocale.getDisplayName(localeID, testLocale); in TestCoverage()
1262 language = ULocale.getDisplayLanguage(localeID, testLocale); in TestCoverage()
1263 script = ULocale.getDisplayScriptInContext(localeID, testLocale); in TestCoverage()
1264 country = ULocale.getDisplayCountry(localeID, testLocale); in TestCoverage()
1265 variant = ULocale.getDisplayVariant(localeID, testLocale); in TestCoverage()
1277 name = ULocale.getDisplayName(localeID, loc); in TestCoverage()
1278 language = ULocale.getDisplayLanguage(localeID, loc); in TestCoverage()
1279 script = ULocale.getDisplayScriptInContext(localeID, loc); in TestCoverage()
1280 country = ULocale.getDisplayCountry(localeID, loc); in TestCoverage()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationAPITest.java1633 String localeID = "it-u-ks-xyz";
1635 Collator.getInstance(new ULocale(localeID));
1636 errln("Collator.getInstance(" + localeID + ") did not fail as expected");
1639 errln("Collator.getInstance(" + localeID + ") did not fail as expected - " + other);
1643 localeID = "it@colHiraganaQuaternary=true";
1645 Collator.getInstance(new ULocale(localeID));
1646 errln("Collator.getInstance(" + localeID + ") did not fail as expected");
1649 errln("Collator.getInstance(" + localeID + ") did not fail as expected - " + other);
1652 localeID = "it-u-vt-u24";
1654 Collator.getInstance(new ULocale(localeID));
[all …]

123