/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | LocaleMatcher.java | 165 private final Locale desiredLocale; field in LocaleMatcher.Result 175 desiredLocale = desired; in Result() 189 return desiredULocale == null && desiredLocale != null ? in getDesiredULocale() 190 ULocale.forLocale(desiredLocale) : desiredULocale; in getDesiredULocale() 200 return desiredLocale == null && desiredULocale != null ? in getDesiredLocale() 201 desiredULocale.toLocale() : desiredLocale; in getDesiredLocale() 741 public ULocale getBestMatch(ULocale desiredLocale) { in getBestMatch() argument 742 LSR desiredLSR = getMaximalLsrOrUnd(desiredLocale); in getBestMatch() 784 public Locale getBestLocale(Locale desiredLocale) { in getBestLocale() argument 785 LSR desiredLSR = getMaximalLsrOrUnd(desiredLocale); in getBestLocale() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | LocaleMatcher.java | 168 private final Locale desiredLocale; field in LocaleMatcher.Result 178 desiredLocale = desired; in Result() 193 return desiredULocale == null && desiredLocale != null ? in getDesiredULocale() 194 ULocale.forLocale(desiredLocale) : desiredULocale; in getDesiredULocale() 205 return desiredLocale == null && desiredULocale != null ? in getDesiredLocale() 206 desiredULocale.toLocale() : desiredLocale; in getDesiredLocale() 767 public ULocale getBestMatch(ULocale desiredLocale) { in getBestMatch() argument 768 LSR desiredLSR = getMaximalLsrOrUnd(desiredLocale); in getBestMatch() 813 public Locale getBestLocale(Locale desiredLocale) { in getBestLocale() argument 814 LSR desiredLSR = getMaximalLsrOrUnd(desiredLocale); in getBestLocale() [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | XLocaleMatcher.java | 270 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/icu4c/source/common/unicode/ |
D | localematcher.h | 192 inline const Locale *getDesiredLocale() const { return desiredLocale; } in getDesiredLocale() 243 desiredLocale(desired), supportedLocale(supported), in Result() 250 const Locale *desiredLocale; variable 492 const Locale *getBestMatch(const Locale &desiredLocale, UErrorCode &errorCode) const; 534 Result getBestMatchResult(const Locale &desiredLocale, UErrorCode &errorCode) const;
|
/external/icu/icu4c/source/common/ |
D | localematcher.cpp | 56 desiredLocale(src.desiredLocale), in Result() 62 src.desiredLocale = nullptr; in Result() 70 delete desiredLocale; in ~Result() 77 desiredLocale = src.desiredLocale; in operator =() 84 src.desiredLocale = nullptr; in operator =() 604 const Locale *LocaleMatcher::getBestMatch(const Locale &desiredLocale, UErrorCode &errorCode) const… in getBestMatch() argument 607 getMaximalLsrOrUnd(likelySubtags, desiredLocale, errorCode), in getBestMatch() 631 const Locale &desiredLocale, UErrorCode &errorCode) const { in getBestMatchResult() argument 636 getMaximalLsrOrUnd(likelySubtags, desiredLocale, errorCode), in getBestMatchResult() 641 return Result(&desiredLocale, supportedLocales[suppIndex], 0, suppIndex, FALSE); in getBestMatchResult()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NumberFormatServiceShim.java | 79 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument 87 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance() 102 fmt.setCurrency(Currency.getInstance(desiredLocale)); in createInstance()
|
D | NumberFormat.java | 1272 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() 1316 NumberingSystem ns = NumberingSystem.getInstance(desiredLocale); in createInstance() 1344 nsLoc = desiredLocale; in createInstance() 1369 f.setCurrencyPluralInfo(CurrencyPluralInfo.getInstance(desiredLocale)); in createInstance()
|
D | DateFormatSymbols.java | 1505 protected void initializeData(ULocale desiredLocale, String type) in initializeData() argument 1507 String key = desiredLocale.getBaseName() + '+' + type; in initializeData() 1508 String ns = desiredLocale.getKeywordValue("numbers"); in initializeData() 1512 DateFormatSymbols dfs = DFSCACHE.getInstance(key, desiredLocale); in initializeData() 1814 private DateFormatSymbols(ULocale desiredLocale, ICUResourceBundle b, String calendarType) { in DateFormatSymbols() argument 1815 initializeData(desiredLocale, b, calendarType); in DateFormatSymbols() 1828 protected void initializeData(ULocale desiredLocale, ICUResourceBundle b, String calendarType) in initializeData() argument 1834 .getBundleInstance(ICUData.ICU_BASE_NAME, desiredLocale); in initializeData() 1849 + desiredLocale.getBaseName(), getClass().getName(), "gregorian"); in initializeData() 1975 requestedLocale = desiredLocale; in initializeData() [all …]
|
D | CollatorServiceShim.java | 182 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/ |
D | NumberFormatServiceShim.java | 78 NumberFormat createInstance(ULocale desiredLocale, int choice) { in createInstance() argument 86 NumberFormat fmt = (NumberFormat)service.get(desiredLocale, choice, in createInstance() 101 fmt.setCurrency(Currency.getInstance(desiredLocale)); in createInstance()
|
D | NumberFormat.java | 1424 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() 1468 NumberingSystem ns = NumberingSystem.getInstance(desiredLocale); in createInstance() 1496 nsLoc = desiredLocale; in createInstance() 1521 f.setCurrencyPluralInfo(CurrencyPluralInfo.getInstance(desiredLocale)); in createInstance()
|
D | DateFormatSymbols.java | 1548 protected void initializeData(ULocale desiredLocale, String type) in initializeData() argument 1550 String key = desiredLocale.getBaseName() + '+' + type; in initializeData() 1551 String ns = desiredLocale.getKeywordValue("numbers"); in initializeData() 1555 DateFormatSymbols dfs = DFSCACHE.getInstance(key, desiredLocale); in initializeData() 1857 private DateFormatSymbols(ULocale desiredLocale, ICUResourceBundle b, String calendarType) { in DateFormatSymbols() argument 1858 initializeData(desiredLocale, b, calendarType); in DateFormatSymbols() 1871 protected void initializeData(ULocale desiredLocale, ICUResourceBundle b, String calendarType) in initializeData() argument 1877 .getBundleInstance(ICUData.ICU_BASE_NAME, desiredLocale); in initializeData() 1892 + desiredLocale.getBaseName(), getClass().getName(), "gregorian"); in initializeData() 2018 requestedLocale = desiredLocale; in initializeData() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | numfmt.cpp | 1296 NumberFormat::makeInstance(const Locale& desiredLocale, in makeInstance() argument 1299 return makeInstance(desiredLocale, style, false, status); in makeInstance() 1303 NumberFormat::makeInstance(const Locale& desiredLocale, in makeInstance() argument 1328 int32_t count = desiredLocale.getKeywordValue("compat", buffer, sizeof(buffer), status); in makeInstance() 1347 … LocalPointer<Win32NumberFormat> f(new Win32NumberFormat(desiredLocale, curr, status), status); in makeInstance() 1367 int32_t hashKey = desiredLocale.hashCode(); in makeInstance() 1373 ns = NumberingSystem::createInstance(desiredLocale,status); in makeInstance() 1377 ownedNs.adoptInstead(NumberingSystem::createInstance(desiredLocale,status)); in makeInstance() 1393 LocalUResourceBundlePointer ownedResource(ures_open(NULL, desiredLocale.getName(), &status)); in makeInstance() 1399 …symbolsToAdopt.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(desiredLocale, status), stat… in makeInstance() [all …]
|
D | coll.cpp | 429 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale, in createInstance() argument 434 if (desiredLocale.isBogus()) { in createInstance() 444 coll = (Collator*)gService->get(desiredLocale, &actualLoc, status); in createInstance() 448 coll = makeInstance(desiredLocale, status); in createInstance() 457 setAttributesFromKeywords(desiredLocale, *coll, status); in createInstance() 466 Collator* Collator::makeInstance(const Locale& desiredLocale, UErrorCode& status) { in makeInstance() argument 467 const CollationCacheEntry *entry = CollationLoader::loadTailoring(desiredLocale, status); in makeInstance()
|
D | calendar.cpp | 3782 Calendar::setWeekData(const Locale& desiredLocale, const char *type, UErrorCode& status) in setWeekData() argument 3804 Locale min(desiredLocale); in setWeekData() 3807 if ( uprv_strlen(desiredLocale.getCountry()) == 0 || in setWeekData() 3808 (uprv_strlen(desiredLocale.getScript()) > 0 && uprv_strlen(min.getScript()) == 0) ) { in setWeekData() 3810 Locale max(desiredLocale); in setWeekData() 3814 useLocale = desiredLocale; in setWeekData() 3853 …(void)ulocimp_getRegionForSupplementalData(desiredLocale.getName(), TRUE, region, sizeof(region), … in setWeekData()
|
/external/cldr/tools/java/org/unicode/cldr/util/ |
D | Level.java | 83 public static int getDefaultWeight(String organization, String desiredLocale) { in getDefaultWeight() argument 84 Level level = sc.getLocaleCoverageLevel(organization, desiredLocale); in getDefaultWeight()
|
D | StandardCodes.java | 399 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/icu4c/source/i18n/unicode/ |
D | numfmt.h | 758 static NumberFormat* U_EXPORT2 createInstance(const Locale& desiredLocale, 770 const Locale& desiredLocale, 1121 static NumberFormat* makeInstance(const Locale& desiredLocale, 1138 static NumberFormat* makeInstance(const Locale& desiredLocale,
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | CollatorServiceShim.java | 181 private static final Collator makeInstance(ULocale desiredLocale) { in makeInstance() argument 184 CollationLoader.loadTailoring(desiredLocale, validLocale); in makeInstance()
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | AlphabeticIndexTest.java | 396 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/tests/android/icu/dev/test/collator/ |
D | AlphabeticIndexTest.java | 399 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/cldr/tools/java/com/ibm/icu/util/ |
D | LocaleMatcher.java | 520 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/icu4c/source/test/intltest/ |
D | localematchertest.cpp | 513 const Locale &desiredLocale = desiredIter.next(); in dataDriven() local 514 bestSupported = matcher.getBestMatch(desiredLocale, errorCode); in dataDriven() 518 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredLocale, errorCode); in dataDriven()
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | NumberFormat.java | 1117 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/ |
D | TestMisc.java | 230 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()
|