Home
last modified time | relevance | path

Searched refs:localeId (Results 1 – 25 of 37) sorted by relevance

12

/external/cldr/tools/java/org/unicode/cldr/tool/
DLanguageCodeConverter.java195 public static String toGoogleLocaleId(String localeId) { in toGoogleLocaleId() argument
197 localeId = localeId.replace("-", "_"); in toGoogleLocaleId()
198 String result = CLDR_GOOGLE.get(localeId); in toGoogleLocaleId()
199 result = result == null ? localeId : result; in toGoogleLocaleId()
203 public static String fromGoogleLocaleId(String localeId) { in fromGoogleLocaleId() argument
204 localeId = localeId.replace("_", "-"); in fromGoogleLocaleId()
206 String result = GOOGLE_CLDR.get(localeId); in fromGoogleLocaleId()
207 result = result == null ? localeId : result; in fromGoogleLocaleId()
211 public static String toUnderbarLocale(String localeId) { in toUnderbarLocale() argument
212 return localeId.replace("-", "_"); in toUnderbarLocale()
[all …]
DCopySubdivisionsIntoMain.java84 for (String localeId : mainFactory.getAvailable()) { in doAfter()
86 boolean isRoot = "root".equals(localeId); in doAfter()
87 CLDRFile mainFile = mainFactory.make(localeId, false); in doAfter()
111 subdivisionFile = subdivisionFactory.make(localeId, false); // lazy open in doAfter()
113 … System.out.println("No existing /subdivisions/ file, so creating one: " + localeId); in doAfter()
114 subdivisionFile = new CLDRFile(new SimpleXMLSource(localeId)); in doAfter()
123 …System.out.println(localeId + " — ERROR: Value == ID! for " + value + ". See https://unicode.org/c… in doAfter()
133 writeFile(MAIN_TARGET_DIR, localeId, mainFileOut); in doAfter()
135 System.out.println("Removing /main/ subdivisions: " + localeId); in doAfter()
139 writeFile(SUBDIVISION_TARGET_DIR, localeId, subdivisionFile); in doAfter()
[all …]
DFindHardInheritance.java54 for (String localeId : factory.getAvailable()) { in main()
55 Info info = getCounts(dir, factory, localeId); in main()
57 + "\t" + localeId in main()
67 private static Info getCounts(String dir, Factory factory, String localeId) { in getCounts() argument
73 CLDRFile cldrFile = factory.make(localeId, true); in getCounts()
74 CLDRFile unresolvedCldrFile = factory.make(localeId, false); in getCounts()
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DCheckYear.java73 public void recordStockTime(String localeId, String stock, in recordStockTime() argument
77 stock2skeleton2locales.get("time-" + stock).put(skeleton, localeId); in recordStockTime()
81 public void recordStock(String localeId, String stock, in recordStock() argument
86 skeleton.replace("yyyy", "y"), localeId); in recordStock()
325 String localeId = entry.getValue();
326 CLDRFile file = factory.make(localeId, true);
327 LocaleInfo localeInfo = data.get(localeId);
335 localeInfo.recordStock(localeId, stock, dateTimePattern);
342 localeInfo.recordStockTime(localeId, stock, dateTimePattern);
371 String localeId = entry.getValue();
[all …]
DTestCoverage.java68 String localeId = (String) test[0]; in TestSelected() local
72 CoverageLevel2 coverageLevel = CoverageLevel2.getInstance(sdi, localeId); in TestSelected()
75 assertEquals(localeId + " : " + path + " : ", expectedLevel, level); in TestSelected()
76 CLDRLocale loc = CLDRLocale.getInstance(localeId); in TestSelected()
78 assertEquals(localeId + " : " + path + " : ", expectedVotes, actualVotes); in TestSelected()
DTestKeyboard.java161 String localeId = keyboard.getLocaleId(); in testVerifyKeyboardLoad() local
162 if (!localeId.equals(keyboardId.replace(".xml", ""))) { in testVerifyKeyboardLoad()
163 …add(new IllegalArgumentException("filename and id don't match:\t" + keyboardId + "\t" + localeId)); in testVerifyKeyboardLoad()
DTestCLDRLocaleCoverage.java70 for (String localeId : diff2) { in checkCldrLocalesSuperset()
71 … diffString += "\n\t" + localeId + "\t" + CLDRConfig.getInstance().getEnglish().getName(localeId); in checkCldrLocalesSuperset()
DTestCoverageLevel.java620 private void checkBreakingLogicalGrouping(String localeId) {
622 CLDRFile cldrFile = testInfo.getCldrFactory().make(localeId, true);
638 Level level = sdi.getCoverageLevel(groupingPath, localeId);
646 …errln(localeId + " (" + count + ") Broken Logical Grouping: " + entry.getKey() + " => " + entry.ge…
DTestExampleGenerator.java648 … private void checkDayPeriod(String localeId, String type, String dayPeriodCode, String expected) { in checkDayPeriod() argument
649 CLDRFile cldrFile = info.getCLDRFile(localeId, true); in checkDayPeriod()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DPluralRulesLoader.java65 String localeId = ULocale.canonicalize(locale.getBaseName()); in getFunctionalEquivalent() local
67 isAvailable[0] = idMap.containsKey(localeId); in getFunctionalEquivalent()
168 String localeId = ULocale.canonicalize(locale.getBaseName()); in getRulesIdForLocale() local
170 while (null == (rulesId = idMap.get(localeId))) { in getRulesIdForLocale()
171 int ix = localeId.lastIndexOf("_"); in getRulesIdForLocale()
175 localeId = localeId.substring(0, ix); in getRulesIdForLocale()
268 String localeId = ULocale.canonicalize(locale.getBaseName()); in getPluralRanges() local
270 while (null == (result = localeIdToPluralRanges.get(localeId))) { in getPluralRanges()
271 int ix = localeId.lastIndexOf("_"); in getPluralRanges()
276 localeId = localeId.substring(0, ix); in getPluralRanges()
DLocaleDisplayNamesImpl.java297 public String localeDisplayName(String localeId) { in localeDisplayName() argument
298 return localeDisplayNameInternal(new ULocale(localeId)); in localeDisplayName()
433 private String localeIdName(String localeId) { in localeIdName() argument
435 String locIdName = langData.get("Languages%short", localeId); in localeIdName()
436 if (locIdName != null && !locIdName.equals(localeId)) { in localeIdName()
440 return langData.get("Languages", localeId); in localeIdName()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPluralRulesLoader.java63 String localeId = ULocale.canonicalize(locale.getBaseName()); in getFunctionalEquivalent() local
65 isAvailable[0] = idMap.containsKey(localeId); in getFunctionalEquivalent()
166 String localeId = ULocale.canonicalize(locale.getBaseName()); in getRulesIdForLocale() local
168 while (null == (rulesId = idMap.get(localeId))) { in getRulesIdForLocale()
169 int ix = localeId.lastIndexOf("_"); in getRulesIdForLocale()
173 localeId = localeId.substring(0, ix); in getRulesIdForLocale()
266 String localeId = ULocale.canonicalize(locale.getBaseName()); in getPluralRanges() local
268 while (null == (result = localeIdToPluralRanges.get(localeId))) { in getPluralRanges()
269 int ix = localeId.lastIndexOf("_"); in getPluralRanges()
274 localeId = localeId.substring(0, ix); in getPluralRanges()
DLocaleDisplayNamesImpl.java293 public String localeDisplayName(String localeId) { in localeDisplayName() argument
294 return localeDisplayNameInternal(new ULocale(localeId)); in localeDisplayName()
429 private String localeIdName(String localeId) { in localeIdName() argument
431 String locIdName = langData.get("Languages%short", localeId); in localeIdName()
432 if (locIdName != null && !locIdName.equals(localeId)) { in localeIdName()
436 return langData.get("Languages", localeId); in localeIdName()
/external/icu/icu4c/source/common/
Dlocresdata.cpp157 _uloc_getOrientationHelper(const char* localeId, in _uloc_getOrientationHelper() argument
167 uloc_canonicalize(localeId, localeBuffer, sizeof(localeBuffer), status); in _uloc_getOrientationHelper()
207 uloc_getCharacterOrientation(const char* localeId, in uloc_getCharacterOrientation() argument
210 return _uloc_getOrientationHelper(localeId, "characters", status); in uloc_getCharacterOrientation()
221 uloc_getLineOrientation(const char* localeId, in uloc_getLineOrientation() argument
224 return _uloc_getOrientationHelper(localeId, "lines", status); in uloc_getLineOrientation()
Dlocdspnm.cpp176 virtual UnicodeString& localeDisplayName(const char* localeId,
219 DefaultLocaleDisplayNames::localeDisplayName(const char* localeId,
221 return result = UnicodeString(localeId, -1, US_INV);
322 virtual UnicodeString& localeDisplayName(const char* localeId,
340 UnicodeString& localeIdName(const char* localeId,
686 LocaleDisplayNamesImpl::localeDisplayName(const char* localeId, in localeDisplayName() argument
688 return localeDisplayName(Locale(localeId), result); in localeDisplayName()
693 LocaleDisplayNamesImpl::localeIdName(const char* localeId, in localeIdName() argument
696 langData.getNoFallback("Languages%short", localeId, result); in localeIdName()
701 return langData.getNoFallback("Languages", localeId, result); in localeIdName()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DLocaleDisplayNames.java185 public abstract String localeDisplayName(String localeId); in localeDisplayName() argument
477 public String localeDisplayName(String localeId) { in localeDisplayName() argument
478 return new ULocale(localeId).getName(); in localeDisplayName()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DLocaleDisplayNames.java199 public abstract String localeDisplayName(String localeId); in localeDisplayName() argument
511 public String localeDisplayName(String localeId) { in localeDisplayName() argument
512 return new ULocale(localeId).getName(); in localeDisplayName()
/external/icu/icu4c/source/i18n/
Dreldatefmt.cpp606 const char* localeId, in loadWeekdayNames() argument
611 Locale locale(localeId); in loadWeekdayNames()
633 const char* localeId, in loadUnitData() argument
644 loadWeekdayNames(cacheData.absoluteUnits, localeId, status); in loadUnitData()
682 const char *localeId = fLoc.getName(); in createObject() local
683 LocalUResourceBundlePointer topLevel(ures_open(nullptr, localeId, &status)); in createObject()
696 localeId, in createObject()
Dmeasfmt.cpp502 const char *localeId = fLoc.getName(); in createObject() local
503 LocalUResourceBundlePointer unitsBundle(ures_open(U_ICUDATA_UNIT, localeId, &status)); in createObject()
527 localeId, currencyStyles[i], localStatus)); in createObject()
536 localeId, UNUM_DECIMAL, status); in createObject()
713 const char *localeId = getLocaleID(status); in operator ==() local
719 if (uprv_strcmp(localeId, rhsLocaleId) != 0) { in operator ==()
/external/icu/icu4c/source/common/unicode/
Duloc.h949 uloc_getCharacterOrientation(const char* localeId,
961 uloc_getLineOrientation(const char* localeId,
Dlocdspnm.h123 virtual UnicodeString& localeDisplayName(const char* localeId,
/external/icu/libandroidicu/include/unicode/
Duloc.h949 uloc_getCharacterOrientation(const char* localeId,
961 uloc_getLineOrientation(const char* localeId,
/external/cldr/tools/java/org/unicode/cldr/util/
DPluralSnapshot.java314 for (String localeId : locales) { in writeTables()
315 String name = english.getName(localeId); in writeTables()
316 fullLocales.put(name, localeId); in writeTables()
DTimezoneFormatter.java343 String localeId = desiredLocaleFile.getLocaleID(); in getFormattedZoneInternal()
345 String defaultRegion = languageTagParser.set(localeId).getRegion(); in getFormattedZoneInternal()
349 String localeMax = LikelySubtags.maximize(localeId, sdi.getLikelySubtags()); in getFormattedZoneInternal()
/external/icu/icu4c/source/test/cintltst/
Dcloctst.c2534 const char* localeId = "zh_Hans"; in TestTrailingNull() local
2540 len = uloc_getDisplayName(localeId, localeId, buffer, 128, &status); in TestTrailingNull()
3122 const char* localeId; member
3169 const char* const localeId = toTest[i].localeId; in TestOrientation() local
3170 const ULayoutType co = uloc_getCharacterOrientation(localeId, &statusCO); in TestOrientation()
3172 const ULayoutType lo = uloc_getLineOrientation(localeId, &statusLO); in TestOrientation()
3177 localeId, in TestOrientation()
3183 localeId, in TestOrientation()
3190 localeId, in TestOrientation()
3196 localeId, in TestOrientation()

12