/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/ |
D | LocaleNameTest.java | 47 ULocale inULocale = ULocale.forLocale(inLocale); in TestLanguageNames() 49 for (Locale forLocale : locales) { in TestLanguageNames() 50 if (forLocale.getLanguage().length() == 0) { in TestLanguageNames() 54 icuid.append(forLocale.getLanguage()); in TestLanguageNames() 55 String country = forLocale.getCountry(); in TestLanguageNames() 56 String variant = forLocale.getVariant(); in TestLanguageNames() 74 String name = forLocale.getDisplayLanguage(inLocale); in TestLanguageNames() 80 + " for locale " + forLocale + " in locale " + inLocale); in TestLanguageNames() 85 " by ICU, for locale " + forLocale + " in locale " + inLocale); in TestLanguageNames() 88 name = forLocale.getDisplayLanguage(inLocaleICU); in TestLanguageNames() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NumberFormat.java | 616 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getInstance() 656 return getInstance(ULocale.forLocale(inLocale), style); in getInstance() 680 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getNumberInstance() 731 return getInstance(ULocale.forLocale(inLocale), INTEGERSTYLE); in getIntegerInstance() 775 return getInstance(ULocale.forLocale(inLocale), CURRENCYSTYLE); in getCurrencyInstance() 812 return getInstance(ULocale.forLocale(inLocale), PERCENTSTYLE); in getPercentInstance() 849 return getInstance(ULocale.forLocale(inLocale), SCIENTIFICSTYLE); in getScientificInstance() 959 return createFormat(ULocale.forLocale(loc), formatType); in createFormat() 991 localeNames = Collections.singleton(ULocale.forLocale(locale).getBaseName()); in SimpleNumberFormatFactory() 1544 protected static String getPattern(Locale forLocale, int choice) { in getPattern() argument [all …]
|
D | BreakIterator.java | 612 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 652 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 693 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 731 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE); in getSentenceInstance() 772 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE); in getTitleInstance() 806 return registerInstance(iter, ULocale.forLocale(locale), kind); in registerInstance()
|
D | MeasureFormat.java | 243 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance() 281 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance() 575 return getCurrencyFormat(ULocale.forLocale(locale)); in getCurrencyFormat() 617 rules = PluralRules.forLocale(locale); in MeasureFormat() 1090 public static String getRangeFormat(ULocale forLocale, FormatWidth width) { in getRangeFormat() argument 1092 if (forLocale.getLanguage().equals("fr")) { in getRangeFormat() 1095 String result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() 1098 .getBundleInstance(ICUData.ICU_BASE_NAME, forLocale); in getRangeFormat() 1100 … if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry in getRangeFormat() 1102 result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() [all …]
|
D | DateFormat.java | 1355 return get(-1, style, ULocale.forLocale(aLocale), null); in getTimeInstance() 1420 return get(style, -1, ULocale.forLocale(aLocale), null); in getDateInstance() 1493 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1892 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance() 1929 return getDateTimeInstance(cal, -1, timeStyle, ULocale.forLocale(locale)); in getTimeInstance() 1972 return getDateTimeInstance(cal, dateStyle, timeStyle, ULocale.forLocale(locale)); in getDateTimeInstance() 2011 return getDateTimeInstance(cal, SHORT, SHORT, ULocale.forLocale(locale)); in getInstance() 2116 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2153 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
|
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() 1933 public static PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules 1934 return Factory.getDefaultFactory().forLocale(locale, PluralType.CARDINAL); in forLocale() 1955 public static PluralRules forLocale(Locale locale) { in forLocale() method in PluralRules 1956 return forLocale(ULocale.forLocale(locale)); in forLocale() 1977 public static PluralRules forLocale(ULocale locale, PluralType type) { in forLocale() method in PluralRules 1978 return Factory.getDefaultFactory().forLocale(locale, type); in forLocale() 1999 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 | 573 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getInstance() 601 return getInstance(ULocale.forLocale(inLocale), style); in getInstance() 617 return getInstance(ULocale.forLocale(inLocale), NUMBERSTYLE); in getNumberInstance() 656 return getInstance(ULocale.forLocale(inLocale), INTEGERSTYLE); in getIntegerInstance() 688 return getInstance(ULocale.forLocale(inLocale), CURRENCYSTYLE); in getCurrencyInstance() 713 return getInstance(ULocale.forLocale(inLocale), PERCENTSTYLE); in getPercentInstance() 738 return getInstance(ULocale.forLocale(inLocale), SCIENTIFICSTYLE); in getScientificInstance() 836 return createFormat(ULocale.forLocale(loc), formatType); in createFormat() 866 localeNames = Collections.singleton(ULocale.forLocale(locale).getBaseName()); in SimpleNumberFormatFactory() 1393 protected static String getPattern(Locale forLocale, int choice) { in getPattern() argument [all …]
|
D | BreakIterator.java | 577 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance() 614 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance() 652 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance() 687 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE); in getSentenceInstance() 729 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE); in getTitleInstance() 763 return registerInstance(iter, ULocale.forLocale(locale), kind); in registerInstance()
|
D | MeasureFormat.java | 225 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance() 261 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance() 535 return getCurrencyFormat(ULocale.forLocale(locale)); in getCurrencyFormat() 576 rules = PluralRules.forLocale(locale); in MeasureFormat() 1050 public static String getRangeFormat(ULocale forLocale, FormatWidth width) { in getRangeFormat() argument 1052 if (forLocale.getLanguage().equals("fr")) { in getRangeFormat() 1055 String result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() 1058 .getBundleInstance(ICUData.ICU_BASE_NAME, forLocale); in getRangeFormat() 1060 … if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry in getRangeFormat() 1062 result = localeIdToRangeFormat.get(forLocale); in getRangeFormat() [all …]
|
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 | 1256 return get(-1, style, ULocale.forLocale(aLocale), null); in getTimeInstance() 1317 return get(style, -1, ULocale.forLocale(aLocale), null); in getDateInstance() 1386 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance() 1762 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance() 1797 return getDateTimeInstance(cal, -1, timeStyle, ULocale.forLocale(locale)); in getTimeInstance() 1838 return getDateTimeInstance(cal, dateStyle, timeStyle, ULocale.forLocale(locale)); in getDateTimeInstance() 1875 return getDateTimeInstance(cal, SHORT, SHORT, ULocale.forLocale(locale)); in getInstance() 1971 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton() 2004 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
|
D | PluralRules.java | 233 public abstract PluralRules forLocale(ULocale locale, PluralType type); in forLocale() method in PluralRules.Factory 244 public final PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules.Factory 245 return forLocale(locale, PluralType.CARDINAL); in forLocale() 1999 public static PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules 2000 return Factory.getDefaultFactory().forLocale(locale, PluralType.CARDINAL); in forLocale() 2020 public static PluralRules forLocale(Locale locale) { in forLocale() method in PluralRules 2021 return forLocale(ULocale.forLocale(locale)); in forLocale() 2041 public static PluralRules forLocale(ULocale locale, PluralType type) { in forLocale() method in PluralRules 2042 return Factory.getDefaultFactory().forLocale(locale, type); in forLocale() 2062 public static PluralRules forLocale(Locale locale, PluralType type) { in forLocale() method in PluralRules [all …]
|
D | LocaleDisplayNames.java | 66 return getInstance(ULocale.forLocale(locale)); in getInstance() 129 return getInstance(ULocale.forLocale(locale), contexts); in getInstance() 473 return ULocale.forLocale(locale).getName(); in localeDisplayName()
|
/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/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | PluralRulesTest.java | 91 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 328 PluralRules rules = factory.forLocale(locale); 474 PluralRules rules = factory.forLocale(ULocale.US); 479 rules = factory.forLocale(ULocale.JAPAN); 484 rules = factory.forLocale(ULocale.createCanonical("ru")); 616 PluralRules rules = factory.forLocale(locale); 748 PluralRules pr = factory.forLocale(ULocale.ENGLISH, PluralType.ORDINAL); 795 PluralRules rules = PluralRules.forLocale(locale, type); 838 PluralRules pluralRules = factory.forLocale(locale); 928 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/tests/core/src/com/ibm/icu/dev/test/format/ |
D | PluralRulesTest.java | 88 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() 325 PluralRules rules = factory.forLocale(locale); 471 PluralRules rules = factory.forLocale(ULocale.US); 476 rules = factory.forLocale(ULocale.JAPAN); 481 rules = factory.forLocale(ULocale.createCanonical("ru")); 613 PluralRules rules = factory.forLocale(locale); 745 PluralRules pr = factory.forLocale(ULocale.ENGLISH, PluralType.ORDINAL); 792 PluralRules rules = PluralRules.forLocale(locale, type); 835 PluralRules pluralRules = factory.forLocale(locale); 925 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/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 | 154 return getInstance(ULocale.forLocale(locale)); in getInstance() 205 return getAvailableCurrencyCodes(ULocale.forLocale(loc), d); in getAvailableCurrencyCodes() 504 return getSymbol(ULocale.forLocale(loc)); in getSymbol() 526 return getName(ULocale.forLocale(locale), nameStyle, isChoiceFormat); in getName() 577 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 | 162 return getInstance(ULocale.forLocale(locale)); in getInstance() 216 return getAvailableCurrencyCodes(ULocale.forLocale(loc), d); in getAvailableCurrencyCodes() 527 return getSymbol(ULocale.forLocale(loc)); in getSymbol() 551 return getName(ULocale.forLocale(locale), nameStyle, isChoiceFormat); in getName() 604 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 | 137 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI() 253 LocalPointer<PluralRules> en_UK(test->forLocale(Locale::getUK(), status)); in testAPI() 254 LocalPointer<PluralRules> en(test->forLocale(Locale::getEnglish(), status)); in testAPI() 261 LocalPointer<PluralRules> zh_Hant(test->forLocale(Locale::getTaiwan(), status)); in testAPI() 262 LocalPointer<PluralRules> zh(test->forLocale(Locale::getChinese(), status)); in testAPI() 396 PluralRules *rules = PluralRules::forLocale(locales[i], status); in testGetSamples() 597 LocalPointer<PluralRules> pr(PluralRules::forLocale("en", UPLURAL_TYPE_ORDINAL, errorCode)); in testOrdinal() 900 PluralRules *pr = PluralRules::forLocale(locale, status); in testAvailbleLocales()
|