/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | LocaleNameTest.java | 44 ULocale inULocale = ULocale.forLocale(inLocale); in TestLanguageNames() 46 for (Locale forLocale : locales) { in TestLanguageNames() 47 if (forLocale.getLanguage().length() == 0) { in TestLanguageNames() 51 icuid.append(forLocale.getLanguage()); in TestLanguageNames() 52 String country = forLocale.getCountry(); in TestLanguageNames() 53 String variant = forLocale.getVariant(); in TestLanguageNames() 71 String name = forLocale.getDisplayLanguage(inLocale); in TestLanguageNames() 77 + " for locale " + forLocale + " in locale " + inLocale); in TestLanguageNames() 82 " by ICU, for locale " + forLocale + " in locale " + inLocale); in TestLanguageNames() 85 name = forLocale.getDisplayLanguage(inLocaleICU); in TestLanguageNames() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NumberFormat.java | 580 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getInstance() 611 return getInstance(ULocale.forLocale(inLocale), style); in getInstance() 629 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getNumberInstance() 671 return getInstance(ULocale.forLocale(inLocale), INTEGERSTYLE); in getIntegerInstance() 706 return getInstance(ULocale.forLocale(inLocale), CURRENCYSTYLE); in getCurrencyInstance() 734 return getInstance(ULocale.forLocale(inLocale), PERCENTSTYLE); in getPercentInstance() 762 return getInstance(ULocale.forLocale(inLocale), SCIENTIFICSTYLE); in getScientificInstance() 869 return createFormat(ULocale.forLocale(loc), formatType); in createFormat() 901 localeNames = Collections.singleton(ULocale.forLocale(locale).getBaseName()); in SimpleNumberFormatFactory() 1442 protected static String getPattern(Locale forLocale, int choice) { in getPattern() argument [all …]
|
D | BreakIterator.java | 586 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 626 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 667 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 705 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE); in getSentenceInstance() 746 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE); in getTitleInstance() 780 return registerInstance(iter, ULocale.forLocale(locale), kind); in registerInstance()
|
D | DateFormat.java | 1357 return get(-1, style, ULocale.forLocale(aLocale), null); in getTimeInstance() 1422 return get(style, -1, ULocale.forLocale(aLocale), null); in getDateInstance() 1495 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1885 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance() 1922 return getDateTimeInstance(cal, -1, timeStyle, ULocale.forLocale(locale)); in getTimeInstance() 1965 return getDateTimeInstance(dateStyle, timeStyle, ULocale.forLocale(locale)); in getDateTimeInstance() 2004 return getDateTimeInstance(cal, SHORT, SHORT, ULocale.forLocale(locale)); in getInstance() 2109 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2146 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
|
D | MeasureFormat.java | 236 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance() 249 PluralRules rules = PluralRules.forLocale(locale); in getInstance() 288 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance() 674 return getCurrencyFormat(ULocale.forLocale(locale)); in getCurrencyFormat() 1483 public static String getRangeFormat(ULocale forLocale, FormatWidth width) { in getRangeFormat() argument 1485 if (forLocale.getLanguage().equals("fr")) { in getRangeFormat() 1488 String result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() 1491 getBundleInstance(ICUData.ICU_BASE_NAME, forLocale); in getRangeFormat() 1493 … if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry for it. in getRangeFormat() 1494 result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() [all …]
|
D | PluralRules.java | 228 public abstract PluralRules forLocale(ULocale locale, PluralType type); in forLocale() method in PluralRules.Factory 238 public final PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules.Factory 239 return forLocale(locale, PluralType.CARDINAL); in forLocale() 1839 public static PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules 1840 return Factory.getDefaultFactory().forLocale(locale, PluralType.CARDINAL); in forLocale() 1861 public static PluralRules forLocale(Locale locale) { in forLocale() method in PluralRules 1862 return forLocale(ULocale.forLocale(locale)); in forLocale() 1883 public static PluralRules forLocale(ULocale locale, PluralType type) { in forLocale() method in PluralRules 1884 return Factory.getDefaultFactory().forLocale(locale, type); in forLocale() 1905 public static PluralRules forLocale(Locale locale, PluralType type) { in forLocale() method in PluralRules [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NumberFormat.java | 543 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getInstance() 571 return getInstance(ULocale.forLocale(inLocale), style); in getInstance() 587 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getNumberInstance() 626 return getInstance(ULocale.forLocale(inLocale), INTEGERSTYLE); in getIntegerInstance() 658 return getInstance(ULocale.forLocale(inLocale), CURRENCYSTYLE); in getCurrencyInstance() 683 return getInstance(ULocale.forLocale(inLocale), PERCENTSTYLE); in getPercentInstance() 708 return getInstance(ULocale.forLocale(inLocale), SCIENTIFICSTYLE); in getScientificInstance() 805 return createFormat(ULocale.forLocale(loc), formatType); in createFormat() 834 localeNames = Collections.singleton(ULocale.forLocale(locale).getBaseName()); in SimpleNumberFormatFactory() 1353 protected static String getPattern(Locale forLocale, int choice) { in getPattern() argument [all …]
|
D | BreakIterator.java | 550 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 587 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 625 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 660 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE); in getSentenceInstance() 698 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE); in getTitleInstance() 730 return registerInstance(iter, ULocale.forLocale(locale), kind); in registerInstance()
|
D | Collator.java | 513 return createCollator(ULocale.forLocale(loc)); in createCollator() 524 … return getDisplayName(ULocale.forLocale(objectLocale), ULocale.forLocale(displayLocale)); in getDisplayName() 826 return getInstance(ULocale.forLocale(locale)); in getInstance() 1061 return getShim().getDisplayName(ULocale.forLocale(objectLocale), in getDisplayName() 1062 ULocale.forLocale(displayLocale)); in getDisplayName() 1084 …return getShim().getDisplayName(ULocale.forLocale(objectLocale), ULocale.getDefault(Category.DISPL… in getDisplayName()
|
D | DateFormat.java | 1258 return get(-1, style, ULocale.forLocale(aLocale), null); in getTimeInstance() 1319 return get(style, -1, ULocale.forLocale(aLocale), null); in getDateInstance() 1388 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1755 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance() 1790 return getDateTimeInstance(cal, -1, timeStyle, ULocale.forLocale(locale)); in getTimeInstance() 1831 return getDateTimeInstance(dateStyle, timeStyle, ULocale.forLocale(locale)); in getDateTimeInstance() 1868 return getDateTimeInstance(cal, SHORT, SHORT, ULocale.forLocale(locale)); in getInstance() 1964 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 1997 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
|
D | MeasureFormat.java | 224 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance() 236 PluralRules rules = PluralRules.forLocale(locale); in getInstance() 274 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance() 647 return getCurrencyFormat(ULocale.forLocale(locale)); in getCurrencyFormat() 1456 public static String getRangeFormat(ULocale forLocale, FormatWidth width) { in getRangeFormat() argument 1458 if (forLocale.getLanguage().equals("fr")) { in getRangeFormat() 1461 String result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() 1464 getBundleInstance(ICUData.ICU_BASE_NAME, forLocale); in getRangeFormat() 1466 … if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry for it. in getRangeFormat() 1467 result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() [all …]
|
D | PluralRules.java | 232 public abstract PluralRules forLocale(ULocale locale, PluralType type); in forLocale() method in PluralRules.Factory 243 public final PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules.Factory 244 return forLocale(locale, PluralType.CARDINAL); in forLocale() 1884 public static PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules 1885 return Factory.getDefaultFactory().forLocale(locale, PluralType.CARDINAL); in forLocale() 1905 public static PluralRules forLocale(Locale locale) { in forLocale() method in PluralRules 1906 return forLocale(ULocale.forLocale(locale)); in forLocale() 1926 public static PluralRules forLocale(ULocale locale, PluralType type) { in forLocale() method in PluralRules 1927 return Factory.getDefaultFactory().forLocale(locale, type); in forLocale() 1947 public static PluralRules forLocale(Locale locale, PluralType type) { in forLocale() method in PluralRules [all …]
|
D | PluralFormat.java | 208 this(ULocale.forLocale(locale)); in PluralFormat() 243 this(ULocale.forLocale(locale), rules); in PluralFormat() 265 this(ULocale.forLocale(locale), type); in PluralFormat() 375 pluralRules = (rules == null) ? PluralRules.forLocale(ulocale, type) in init()
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
D | NumberFormat.java | 532 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getInstance() 562 return getInstance(ULocale.forLocale(inLocale), style); in getInstance() 579 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getNumberInstance() 620 return getInstance(ULocale.forLocale(inLocale), INTEGERSTYLE); in getIntegerInstance() 654 return getInstance(ULocale.forLocale(inLocale), CURRENCYSTYLE); in getCurrencyInstance() 681 return getInstance(ULocale.forLocale(inLocale), PERCENTSTYLE); in getPercentInstance() 708 return getInstance(ULocale.forLocale(inLocale), SCIENTIFICSTYLE); in getScientificInstance() 814 return createFormat(ULocale.forLocale(loc), formatType); in createFormat() 846 ulocales[i] = ULocale.forLocale(locales[i]); in getAvailableULocales()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 85 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 322 PluralRules rules = factory.forLocale(locale); 468 PluralRules rules = factory.forLocale(ULocale.US); 473 rules = factory.forLocale(ULocale.JAPAN); 478 rules = factory.forLocale(ULocale.createCanonical("ru")); 610 PluralRules rules = factory.forLocale(locale); 742 PluralRules pr = factory.forLocale(ULocale.ENGLISH, PluralType.ORDINAL); 789 PluralRules rules = PluralRules.forLocale(locale, type); 832 PluralRules pluralRules = factory.forLocale(locale); 921 PluralRules rules = factory.forLocale(locale); [all …]
|
D | PluralRulesFactory.java | 31 public PluralRules forLocale(ULocale locale, PluralType ordinal) { in forLocale() method in PluralRulesFactory.PluralRulesFactoryVanilla 32 return PluralRules.forLocale(locale, ordinal); in forLocale()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 86 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 323 PluralRules rules = factory.forLocale(locale); 469 PluralRules rules = factory.forLocale(ULocale.US); 474 rules = factory.forLocale(ULocale.JAPAN); 479 rules = factory.forLocale(ULocale.createCanonical("ru")); 611 PluralRules rules = factory.forLocale(locale); 743 PluralRules pr = factory.forLocale(ULocale.ENGLISH, PluralType.ORDINAL); 790 PluralRules rules = PluralRules.forLocale(locale, type); 833 PluralRules pluralRules = factory.forLocale(locale); 922 PluralRules rules = factory.forLocale(locale); [all …]
|
D | PluralRulesFactory.java | 32 public PluralRules forLocale(ULocale locale, PluralType ordinal) { in forLocale() method in PluralRulesFactory.PluralRulesFactoryVanilla 33 return PluralRules.forLocale(locale, ordinal); in forLocale()
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | Collator.java | 539 return createCollator(ULocale.forLocale(loc)); in createCollator() 551 … return getDisplayName(ULocale.forLocale(objectLocale), ULocale.forLocale(displayLocale)); in getDisplayName() 858 return getInstance(ULocale.forLocale(locale)); in getInstance() 1103 return getShim().getDisplayName(ULocale.forLocale(objectLocale), in getDisplayName() 1104 ULocale.forLocale(displayLocale)); in getDisplayName() 1128 …return getShim().getDisplayName(ULocale.forLocale(objectLocale), ULocale.getDefault(Category.DISPL… in getDisplayName()
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | Holiday.java | 43 return getHolidays(ULocale.forLocale(locale)); in getHolidays() 163 return getDisplayName(ULocale.forLocale(locale)); in getDisplayName()
|
D | Currency.java | 150 return getInstance(ULocale.forLocale(locale)); in getInstance() 201 return getAvailableCurrencyCodes(ULocale.forLocale(loc), d); in getAvailableCurrencyCodes() 481 return getSymbol(ULocale.forLocale(loc)); in getSymbol() 503 return getName(ULocale.forLocale(locale), nameStyle, isChoiceFormat); in getName() 549 return getName(ULocale.forLocale(locale), nameStyle, pluralCount, isChoiceFormat); in getName()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | Holiday.java | 44 return getHolidays(ULocale.forLocale(locale)); in getHolidays() 172 return getDisplayName(ULocale.forLocale(locale)); in getDisplayName()
|
D | Currency.java | 157 return getInstance(ULocale.forLocale(locale)); in getInstance() 211 return getAvailableCurrencyCodes(ULocale.forLocale(loc), d); in getAvailableCurrencyCodes() 501 return getSymbol(ULocale.forLocale(loc)); in getSymbol() 525 return getName(ULocale.forLocale(locale), nameStyle, isChoiceFormat); in getName() 573 return getName(ULocale.forLocale(locale), nameStyle, pluralCount, isChoiceFormat); in getName()
|
/external/icu/icu4c/source/i18n/unicode/ |
D | plurrule.h | 269 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status); 287 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status…
|
/external/icu/icu4c/source/test/intltest/ |
D | plurults.cpp | 135 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI() 251 LocalPointer<PluralRules> en_UK(test->forLocale(Locale::getUK(), status)); in testAPI() 252 LocalPointer<PluralRules> en(test->forLocale(Locale::getEnglish(), status)); in testAPI() 259 LocalPointer<PluralRules> zh_Hant(test->forLocale(Locale::getTaiwan(), status)); in testAPI() 260 LocalPointer<PluralRules> zh(test->forLocale(Locale::getChinese(), status)); in testAPI() 394 PluralRules *rules = PluralRules::forLocale(locales[i], status); in testGetSamples() 595 LocalPointer<PluralRules> pr(PluralRules::forLocale("en", UPLURAL_TYPE_ORDINAL, errorCode)); in testOrdinal() 898 PluralRules *pr = PluralRules::forLocale(locale, status); in testAvailbleLocales()
|