Home
last modified time | relevance | path

Searched refs:desiredLocale (Results 1 – 25 of 27) sorted by relevance

12

/external/cldr/tools/java/org/unicode/cldr/draft/
DXLocaleMatcher.java270 ULocale desiredLocale = desiredLsrAndLocale.getValue();
273 if (exactSupportedLocales.contains(desiredLocale)) {
275 outputBestDesired.value = desiredLocale;
277 return desiredLocale;
284 outputBestDesired.value = desiredLocale;
294 bestDesiredLocale = desiredLocale;
327 public ULocale getBestMatch(ULocale desiredLocale, Output<ULocale> outputBestDesired) {
333 …final LSR desiredLSR = desiredLocale.equals(UND_LOCALE) ? UND : LSR.fromMaximalized(desiredLocale);
335 if (exactSupportedLocales.contains(desiredLocale)) {
337 outputBestDesired.value = desiredLocale;
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXLocaleMatcher.java283 for (ULocale desiredLocale : desiredLsrAndLocales.getValue()) {
286 if (exactSupportedLocales.contains(desiredLocale)) {
288 outputBestDesired.value = desiredLocale;
293 desiredLocale);
295 return desiredLocale;
303 outputBestDesired.value = desiredLocale;
322 bestDesiredLocale = desiredLocale;
367 public ULocale getBestMatch(ULocale desiredLocale, Output<ULocale> outputBestDesired) {
373 …final LSR desiredLSR = desiredLocale.equals(UND_LOCALE) ? UND : LSR.fromMaximalized(desiredLocale);
375 if (exactSupportedLocales.contains(desiredLocale)) {
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXLocaleMatcher.java288 for (ULocale desiredLocale : desiredLsrAndLocales.getValue()) {
291 if (exactSupportedLocales.contains(desiredLocale)) {
293 outputBestDesired.value = desiredLocale;
298 desiredLocale);
300 return desiredLocale;
308 outputBestDesired.value = desiredLocale;
327 bestDesiredLocale = desiredLocale;
372 public ULocale getBestMatch(ULocale desiredLocale, Output<ULocale> outputBestDesired) {
378 …final LSR desiredLSR = desiredLocale.equals(UND_LOCALE) ? UND : LSR.fromMaximalized(desiredLocale);
380 if (exactSupportedLocales.contains(desiredLocale)) {
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberFormatServiceShim.java79 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
87 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance()
99 fmt.setCurrency(Currency.getInstance(desiredLocale)); in createInstance()
DNumberFormat.java1272 public static NumberFormat getInstance(ULocale desiredLocale, int choice) { in getInstance() argument
1283 return getShim().createInstance(desiredLocale, choice); in getInstance()
1288 static NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
1294 String pattern = getPattern(desiredLocale, choice); in createInstance()
1295 DecimalFormatSymbols symbols = new DecimalFormatSymbols(desiredLocale); in createInstance()
1317 NumberingSystem ns = NumberingSystem.getInstance(desiredLocale); in createInstance()
1345 nsLoc = desiredLocale; in createInstance()
1370 f.setCurrencyPluralInfo(CurrencyPluralInfo.getInstance(desiredLocale)); in createInstance()
DDateFormatSymbols.java1498 protected void initializeData(ULocale desiredLocale, String type) in initializeData() argument
1500 String key = desiredLocale.getBaseName() + '+' + type; in initializeData()
1501 String ns = desiredLocale.getKeywordValue("numbers"); in initializeData()
1505 DateFormatSymbols dfs = DFSCACHE.getInstance(key, desiredLocale); in initializeData()
1807 private DateFormatSymbols(ULocale desiredLocale, ICUResourceBundle b, String calendarType) { in DateFormatSymbols() argument
1808 initializeData(desiredLocale, b, calendarType); in DateFormatSymbols()
1821 protected void initializeData(ULocale desiredLocale, ICUResourceBundle b, String calendarType) in initializeData() argument
1827 .getBundleInstance(ICUData.ICU_BASE_NAME, desiredLocale); in initializeData()
1842 + desiredLocale.getBaseName(), getClass().getName(), "gregorian"); in initializeData()
1968 requestedLocale = desiredLocale; in initializeData()
[all …]
DCollatorServiceShim.java182 private static final Collator makeInstance(ULocale desiredLocale) { in makeInstance() argument
185 CollationLoader.loadTailoring(desiredLocale, validLocale); in makeInstance()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormatServiceShim.java78 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
86 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance()
98 fmt.setCurrency(Currency.getInstance(desiredLocale)); in createInstance()
DNumberFormat.java1424 public static NumberFormat getInstance(ULocale desiredLocale, int choice) { in getInstance() argument
1435 return getShim().createInstance(desiredLocale, choice); in getInstance()
1440 static NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument
1446 String pattern = getPattern(desiredLocale, choice); in createInstance()
1447 DecimalFormatSymbols symbols = new DecimalFormatSymbols(desiredLocale); in createInstance()
1469 NumberingSystem ns = NumberingSystem.getInstance(desiredLocale); in createInstance()
1497 nsLoc = desiredLocale; in createInstance()
1522 f.setCurrencyPluralInfo(CurrencyPluralInfo.getInstance(desiredLocale)); in createInstance()
DDateFormatSymbols.java1540 protected void initializeData(ULocale desiredLocale, String type) in initializeData() argument
1542 String key = desiredLocale.getBaseName() + '+' + type; in initializeData()
1543 String ns = desiredLocale.getKeywordValue("numbers"); in initializeData()
1547 DateFormatSymbols dfs = DFSCACHE.getInstance(key, desiredLocale); in initializeData()
1849 private DateFormatSymbols(ULocale desiredLocale, ICUResourceBundle b, String calendarType) { in DateFormatSymbols() argument
1850 initializeData(desiredLocale, b, calendarType); in DateFormatSymbols()
1863 protected void initializeData(ULocale desiredLocale, ICUResourceBundle b, String calendarType) in initializeData() argument
1869 .getBundleInstance(ICUData.ICU_BASE_NAME, desiredLocale); in initializeData()
1884 + desiredLocale.getBaseName(), getClass().getName(), "gregorian"); in initializeData()
2010 requestedLocale = desiredLocale; in initializeData()
[all …]
/external/icu/icu4c/source/i18n/
Dnumfmt.cpp1293 NumberFormat::makeInstance(const Locale& desiredLocale, in makeInstance() argument
1296 return makeInstance(desiredLocale, style, false, status); in makeInstance()
1300 NumberFormat::makeInstance(const Locale& desiredLocale, in makeInstance() argument
1325 int32_t count = desiredLocale.getKeywordValue("compat", buffer, sizeof(buffer), status); in makeInstance()
1344 … LocalPointer<Win32NumberFormat> f(new Win32NumberFormat(desiredLocale, curr, status), status); in makeInstance()
1364 int32_t hashKey = desiredLocale.hashCode(); in makeInstance()
1369 ns = NumberingSystem::createInstance(desiredLocale,status); in makeInstance()
1373 ownedNs.adoptInstead(NumberingSystem::createInstance(desiredLocale,status)); in makeInstance()
1389 LocalUResourceBundlePointer ownedResource(ures_open(NULL, desiredLocale.getName(), &status)); in makeInstance()
1395 …symbolsToAdopt.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(desiredLocale, status), stat… in makeInstance()
[all …]
Dcoll.cpp431 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance() argument
436 if (desiredLocale.isBogus()) { in createInstance()
446 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance()
450 coll = makeInstance(desiredLocale, status); in createInstance()
459 setAttributesFromKeywords(desiredLocale, *coll, status); in createInstance()
468 Collator* Collator::makeInstance(const Locale& desiredLocale, UErrorCode& status) { in makeInstance() argument
469 const CollationCacheEntry *entry = CollationLoader::loadTailoring(desiredLocale, status); in makeInstance()
Dcalendar.cpp3766 Calendar::setWeekData(const Locale& desiredLocale, const char *type, UErrorCode& status) in setWeekData() argument
3789 uloc_minimizeSubtags(desiredLocale.getName(),minLocaleID,ULOC_FULLNAME_CAPACITY,&myStatus); in setWeekData()
3792 if ( uprv_strlen(desiredLocale.getCountry()) == 0 || in setWeekData()
3793 (uprv_strlen(desiredLocale.getScript()) > 0 && uprv_strlen(min.getScript()) == 0) ) { in setWeekData()
3796 uloc_addLikelySubtags(desiredLocale.getName(),maxLocaleID,ULOC_FULLNAME_CAPACITY,&myStatus); in setWeekData()
3800 useLocale = desiredLocale; in setWeekData()
3839 …(void)ulocimp_getRegionForSupplementalData(desiredLocale.getName(), TRUE, region, sizeof(region), … in setWeekData()
/external/icu/icu4c/source/i18n/unicode/
Dnumfmt.h740 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale,
752 const Locale& desiredLocale,
1103 static NumberFormat* makeInstance(const Locale& desiredLocale,
1120 static NumberFormat* makeInstance(const Locale& desiredLocale,
Dcoll.h1193 static Collator* makeInstance(const Locale& desiredLocale,
/external/cldr/tools/java/org/unicode/cldr/util/
DLevel.java77 public static int getDefaultWeight(String organization, String desiredLocale) { in getDefaultWeight() argument
78 Level level = sc.getLocaleCoverageLevel(organization, desiredLocale); in getDefaultWeight()
DStandardCodes.java399 public Level getLocaleCoverageLevel(String organization, String desiredLocale) { in getLocaleCoverageLevel() argument
400 return getLocaleCoverageLevel(Organization.fromString(organization), desiredLocale); in getLocaleCoverageLevel()
403 public Level getLocaleCoverageLevel(Organization organization, String desiredLocale) { in getLocaleCoverageLevel() argument
404 … return getLocaleCoverageLevel(organization, desiredLocale, new Output<LocaleCoverageType>()); in getLocaleCoverageLevel()
415 …public Level getLocaleCoverageLevel(Organization organization, String desiredLocale, Output<Locale… in getLocaleCoverageLevel() argument
430 String originalLocale = desiredLocale; in getLocaleCoverageLevel()
431 while (desiredLocale != null) { in getLocaleCoverageLevel()
432 Level status = locale_status.get(desiredLocale); in getLocaleCoverageLevel()
434 …coverageType.value = originalLocale == desiredLocale ? LocaleCoverageType.explicit : LocaleCoverag… in getLocaleCoverageLevel()
437 desiredLocale = LocaleIDParser.getParent(desiredLocale); in getLocaleCoverageLevel()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DCollatorServiceShim.java181 private static final Collator makeInstance(ULocale desiredLocale) { in makeInstance() argument
184 CollationLoader.loadTailoring(desiredLocale, validLocale); in makeInstance()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DAlphabeticIndexTest.java399 ULocale desiredLocale = new ULocale(localeString); in checkBuckets() local
402 …AlphabeticIndex<Integer> index = new AlphabeticIndex<Integer>(desiredLocale).addLabels(additionalL… in checkBuckets()
414 …logln(desiredLocale + "\t" + desiredLocale.getDisplayName(ULocale.ENGLISH) + " - " + desiredLocale in checkBuckets()
417 UI.append(desiredLocale + "\t"); in checkBuckets()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DAlphabeticIndexTest.java396 ULocale desiredLocale = new ULocale(localeString); in checkBuckets() local
399 …AlphabeticIndex<Integer> index = new AlphabeticIndex<Integer>(desiredLocale).addLabels(additionalL… in checkBuckets()
411 …logln(desiredLocale + "\t" + desiredLocale.getDisplayName(ULocale.ENGLISH) + " - " + desiredLocale in checkBuckets()
414 UI.append(desiredLocale + "\t"); in checkBuckets()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocaleMatcher.java539 private double getRawScore(ULocale desiredLocale, ULocale supportedLocale) { in getRawScore() argument
541 … System.out.println("\t\t\t" + level + " Raw Score:\t" + desiredLocale + ";\t" + supportedLocale); in getRawScore()
544 if (datum.get0().matches(desiredLocale) in getRawScore()
/external/cldr/tools/java/com/ibm/icu/util/
DLocaleMatcher.java520 private double getRawScore(ULocale desiredLocale, ULocale supportedLocale) { in getRawScore() argument
522 … System.out.println("\t\t\t" + level + " Raw Score:\t" + desiredLocale + ";\t" + supportedLocale); in getRawScore()
525 if (datum.get0().matches(desiredLocale) in getRawScore()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java546 private double getRawScore(ULocale desiredLocale, ULocale supportedLocale) { in getRawScore() argument
548 … System.out.println("\t\t\t" + level + " Raw Score:\t" + desiredLocale + ";\t" + supportedLocale); in getRawScore()
551 if (datum.get0().matches(desiredLocale) in getRawScore()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
DNumberFormat.java1117 public static NumberFormat getInstance(ULocale desiredLocale, int choice) { in getInstance() argument
1118 Locale locale = desiredLocale.toLocale(); in getInstance()
/external/cldr/tools/java/org/unicode/cldr/test/
DTestMisc.java230 for (String desiredLocale : cldrFactory.getAvailable()) { in testWeights()
231 int vote = Level.getDefaultWeight("google", desiredLocale); in testWeights()
232 rel.add(new Pair<Integer, String>(vote, desiredLocale)); in testWeights()

12