Home
last modified time | relevance | path

Searched refs:localeRegion (Results 1 – 7 of 7) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/impl/units/
DUnitPreferences.java111 String localeRegion = locale.getKeywordValue("rg"); in getPreferencesFor() local
112 if (localeRegion != null && localeRegion.length() >= 3) { in getPreferencesFor()
113 if (localeRegion.equals("default")) { in getPreferencesFor()
114 region = localeRegion; in getPreferencesFor()
115 } else if (Character.isDigit(localeRegion.charAt(0))) { in getPreferencesFor()
116 region = localeRegion.substring(0, 3); // e.g. 001 in getPreferencesFor()
119 region = localeRegion.substring(0, 2).toUpperCase(Locale.ROOT); in getPreferencesFor()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DUnitPreferences.java107 String localeRegion = locale.getKeywordValue("rg"); in getPreferencesFor() local
108 if (localeRegion != null && localeRegion.length() >= 3) { in getPreferencesFor()
109 if (localeRegion.equals("default")) { in getPreferencesFor()
110 region = localeRegion; in getPreferencesFor()
111 } else if (Character.isDigit(localeRegion.charAt(0))) { in getPreferencesFor()
112 region = localeRegion.substring(0, 3); // e.g. 001 in getPreferencesFor()
115 region = localeRegion.substring(0, 2).toUpperCase(Locale.ROOT); in getPreferencesFor()
/external/cronet/third_party/icu/source/i18n/
Dunits_data.cpp454 CharString localeRegion = getKeyWordValue(locale, "rg", internalRgTagStatus); in getPreferencesFor() local
455 if (U_SUCCESS(internalRgTagStatus) && localeRegion.length() >= 3) { in getPreferencesFor()
456 if (localeRegion == "default") { in getPreferencesFor()
458 region.append(localeRegion, status); in getPreferencesFor()
459 } else if (localeRegion[0] >= '0' && localeRegion[0] <= '9') { in getPreferencesFor()
461 region.append(localeRegion.data(), 3, status); in getPreferencesFor()
465 region.append(uprv_toupper(localeRegion[0]), status); in getPreferencesFor()
466 region.append(uprv_toupper(localeRegion[1]), status); in getPreferencesFor()
/external/icu/icu4c/source/i18n/
Dunits_data.cpp459 CharString localeRegion = getKeyWordValue(locale, "rg", internalRgTagStatus); in getPreferencesFor() local
460 if (U_SUCCESS(internalRgTagStatus) && localeRegion.length() >= 3) { in getPreferencesFor()
461 if (localeRegion == "default") { in getPreferencesFor()
463 region.append(localeRegion, status); in getPreferencesFor()
464 } else if (localeRegion[0] >= '0' && localeRegion[0] <= '9') { in getPreferencesFor()
466 region.append(localeRegion.data(), 3, status); in getPreferencesFor()
470 region.append(uprv_toupper(localeRegion[0]), status); in getPreferencesFor()
471 region.append(uprv_toupper(localeRegion[1]), status); in getPreferencesFor()
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DLocaleValidityChecker.java285 String localeRegion = locale.getCountry(); in isSubdivision() local
286 if (localeRegion.isEmpty()) { in isSubdivision()
288 localeRegion = max.getCountry(); in isSubdivision()
290 if (!region.equalsIgnoreCase(localeRegion)) { in isSubdivision()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DLocaleValidityChecker.java280 String localeRegion = locale.getCountry(); in isSubdivision() local
281 if (localeRegion.isEmpty()) { in isSubdivision()
283 localeRegion = max.getCountry(); in isSubdivision()
285 if (!region.equalsIgnoreCase(localeRegion)) { in isSubdivision()
/external/cldr/tools/cldr-code/src/test/java/org/unicode/cldr/unittest/
DTestCoverageLevel.java694 public boolean addRegion(String localeRegion) {
695 return regions.add(localeRegion);