Home
last modified time | relevance | path

Searched refs:forLocale (Results 1 – 25 of 176) sorted by relevance

12345678

/external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DLocaleNameTest.java47 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/android_icu4j/testing/src/com/android/icu/test/util/
DLocaleNativeTest.java52 -> ULocale.forLocale(targetLocale).getDisplayCountry( in testGetDisplayCountry()
53 ULocale.forLocale(displayLocale)) in testGetDisplayCountry()
61 -> ULocale.forLocale(targetLocale).getDisplayLanguage( in testGetDisplayLanguage()
62 ULocale.forLocale(displayLocale)) in testGetDisplayLanguage()
70 -> ULocale.forLocale(targetLocale).getDisplayScript( in testGetDisplayScript()
71 ULocale.forLocale(displayLocale)) in testGetDisplayScript()
79 -> ULocale.forLocale(targetLocale).getDisplayVariant( in testGetDisplayVariant()
80 ULocale.forLocale(displayLocale)) in testGetDisplayVariant()
DCaseMapperNativeTest.java54 ULocale uLocale = ULocale.forLocale(locale); in testLowerCase()
66 ULocale uLocale = ULocale.forLocale(locale); in testUpperCase()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNumberFormat.java616 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()
1543 protected static String getPattern(Locale forLocale, int choice) { in getPattern() argument
[all …]
DBreakIterator.java615 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance()
655 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance()
696 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance()
734 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE); in getSentenceInstance()
777 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE); in getTitleInstance()
812 return registerInstance(iter, ULocale.forLocale(locale), kind); in registerInstance()
DMeasureFormat.java247 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance()
285 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance()
582 return getCurrencyFormat(ULocale.forLocale(locale)); in getCurrencyFormat()
624 rules = PluralRules.forLocale(locale); in MeasureFormat()
1063 public static String getRangeFormat(ULocale forLocale, FormatWidth width) { in getRangeFormat() argument
1065 if (forLocale.getLanguage().equals("fr")) { in getRangeFormat()
1068 String result = localeIdToRangeFormat.get(forLocale); in getRangeFormat()
1071 .getBundleInstance(ICUData.ICU_BASE_NAME, forLocale); in getRangeFormat()
1073 … if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry in getRangeFormat()
1075 result = localeIdToRangeFormat.get(forLocale); in getRangeFormat()
[all …]
DDateFormat.java1416 return get(-1, style, ULocale.forLocale(aLocale), null); in getTimeInstance()
1481 return get(style, -1, ULocale.forLocale(aLocale), null); in getDateInstance()
1554 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1953 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance()
1990 return getDateTimeInstance(cal, -1, timeStyle, ULocale.forLocale(locale)); in getTimeInstance()
2033 return getDateTimeInstance(cal, dateStyle, timeStyle, ULocale.forLocale(locale)); in getDateTimeInstance()
2072 return getDateTimeInstance(cal, SHORT, SHORT, ULocale.forLocale(locale)); in getInstance()
2177 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
2214 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
DPluralRules.java224 public abstract PluralRules forLocale(ULocale locale, PluralType type); in forLocale() method in PluralRules.Factory
234 public final PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules.Factory
235 return forLocale(locale, PluralType.CARDINAL); in forLocale()
2031 public static PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules
2032 return Factory.getDefaultFactory().forLocale(locale, PluralType.CARDINAL); in forLocale()
2053 public static PluralRules forLocale(Locale locale) { in forLocale() method in PluralRules
2054 return forLocale(ULocale.forLocale(locale)); in forLocale()
2075 public static PluralRules forLocale(ULocale locale, PluralType type) { in forLocale() method in PluralRules
2076 return Factory.getDefaultFactory().forLocale(locale, type); in forLocale()
2097 public static PluralRules forLocale(Locale locale, PluralType type) { in forLocale() method in PluralRules
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNumberFormat.java573 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()
1392 protected static String getPattern(Locale forLocale, int choice) { in getPattern() argument
[all …]
DBreakIterator.java579 return getBreakInstance(ULocale.forLocale(where), KIND_WORD); in getWordInstance()
616 return getBreakInstance(ULocale.forLocale(where), KIND_LINE); in getLineInstance()
654 return getBreakInstance(ULocale.forLocale(where), KIND_CHARACTER); in getCharacterInstance()
689 return getBreakInstance(ULocale.forLocale(where), KIND_SENTENCE); in getSentenceInstance()
731 return getBreakInstance(ULocale.forLocale(where), KIND_TITLE); in getTitleInstance()
766 return registerInstance(iter, ULocale.forLocale(locale), kind); in registerInstance()
DMeasureFormat.java229 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance()
265 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance()
542 return getCurrencyFormat(ULocale.forLocale(locale)); in getCurrencyFormat()
583 rules = PluralRules.forLocale(locale); in MeasureFormat()
1023 public static String getRangeFormat(ULocale forLocale, FormatWidth width) { in getRangeFormat() argument
1025 if (forLocale.getLanguage().equals("fr")) { in getRangeFormat()
1028 String result = localeIdToRangeFormat.get(forLocale); in getRangeFormat()
1031 .getBundleInstance(ICUData.ICU_BASE_NAME, forLocale); in getRangeFormat()
1033 … if (!forLocale.equals(realLocale)) { // if the child would inherit, then add a cache entry in getRangeFormat()
1035 result = localeIdToRangeFormat.get(forLocale); in getRangeFormat()
[all …]
DCollator.java513 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()
DDateFormat.java1313 return get(-1, style, ULocale.forLocale(aLocale), null); in getTimeInstance()
1374 return get(style, -1, ULocale.forLocale(aLocale), null); in getDateInstance()
1443 return get(dateStyle, timeStyle, ULocale.forLocale(aLocale), null); in getDateTimeInstance()
1819 return getDateTimeInstance(cal, dateStyle, -1, ULocale.forLocale(locale)); in getDateInstance()
1854 return getDateTimeInstance(cal, -1, timeStyle, ULocale.forLocale(locale)); in getTimeInstance()
1895 return getDateTimeInstance(cal, dateStyle, timeStyle, ULocale.forLocale(locale)); in getDateTimeInstance()
1932 return getDateTimeInstance(cal, SHORT, SHORT, ULocale.forLocale(locale)); in getInstance()
2028 return getPatternInstance(skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
2061 return getPatternInstance(cal, skeleton, ULocale.forLocale(locale)); in getInstanceForSkeleton()
DPluralRules.java230 public abstract PluralRules forLocale(ULocale locale, PluralType type); in forLocale() method in PluralRules.Factory
241 public final PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules.Factory
242 return forLocale(locale, PluralType.CARDINAL); in forLocale()
2098 public static PluralRules forLocale(ULocale locale) { in forLocale() method in PluralRules
2099 return Factory.getDefaultFactory().forLocale(locale, PluralType.CARDINAL); in forLocale()
2119 public static PluralRules forLocale(Locale locale) { in forLocale() method in PluralRules
2120 return forLocale(ULocale.forLocale(locale)); in forLocale()
2140 public static PluralRules forLocale(ULocale locale, PluralType type) { in forLocale() method in PluralRules
2141 return Factory.getDefaultFactory().forLocale(locale, type); in forLocale()
2161 public static PluralRules forLocale(Locale locale, PluralType type) { in forLocale() method in PluralRules
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java95 PluralRules rules = factory.forLocale(locale); in testOverUnderflow()
361 PluralRules rules = factory.forLocale(locale);
522 PluralRules rules = factory.forLocale(locale);
552 PluralRules rules = factory.forLocale(locale);
565 PluralRules rules1 = PluralRules.forLocale(new ULocale(loc1));
566 PluralRules rules2 = PluralRules.forLocale(new ULocale(loc2));
567 PluralRules rules3 = PluralRules.forLocale(new ULocale(loc3));
581 PluralRules rules = PluralRules.forLocale(new ULocale("pt@calendar=gregorian"));
719 PluralRules rules = factory.forLocale(locale);
851 PluralRules pr = factory.forLocale(ULocale.ENGLISH, PluralType.ORDINAL);
[all …]
DPluralRulesFactory.java31 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/
DPluralRulesTest.java98 PluralRules rules = factory.forLocale(locale); in testOverUnderflow()
364 PluralRules rules = factory.forLocale(locale);
525 PluralRules rules = factory.forLocale(locale);
555 PluralRules rules = factory.forLocale(locale);
568 PluralRules rules1 = PluralRules.forLocale(new ULocale(loc1));
569 PluralRules rules2 = PluralRules.forLocale(new ULocale(loc2));
570 PluralRules rules3 = PluralRules.forLocale(new ULocale(loc3));
584 PluralRules rules = PluralRules.forLocale(new ULocale("pt@calendar=gregorian"));
722 PluralRules rules = factory.forLocale(locale);
854 PluralRules pr = factory.forLocale(ULocale.ENGLISH, PluralType.ORDINAL);
[all …]
DPluralRulesFactory.java32 public PluralRules forLocale(ULocale locale, PluralType ordinal) { in forLocale() method in PluralRulesFactory.PluralRulesFactoryVanilla
33 return PluralRules.forLocale(locale, ordinal); in forLocale()
/external/icu/icu4c/source/test/intltest/
Dplurults.cpp147 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status); in testAPI()
263 LocalPointer<PluralRules> en_UK(test->forLocale(Locale::getUK(), status)); in testAPI()
264 LocalPointer<PluralRules> en(test->forLocale(Locale::getEnglish(), status)); in testAPI()
271 LocalPointer<PluralRules> zh_Hant(test->forLocale(Locale::getTaiwan(), status)); in testAPI()
272 LocalPointer<PluralRules> zh(test->forLocale(Locale::getChinese(), status)); in testAPI()
410 LocalPointer<PluralRules> rules(PluralRules::forLocale(locales[i], status)); in testGetSamples()
471 LocalPointer<PluralRules> rules(PluralRules::forLocale(locales[i], status)); in testGetFixedDecimalSamples()
814 LocalPointer<PluralRules> pr(PluralRules::forLocale("en", UPLURAL_TYPE_ORDINAL, errorCode)); in testOrdinal()
1067 auto rules = LocalPointer<PluralRules>(PluralRules::forLocale(locale, status), status); in testSelectRange()
1096 PluralRules::forLocale("xyz", status)); in testSelectRange()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DCollator.java539 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/testing/src/android/icu/extratest/text/
DAlphabeticIndexTest.java53 ULocale.forLocale(locale), 0, LocaleData.ES_INDEX); in testBucketCount_withNoIndexCharacters()
71 ULocale uLocale = ULocale.forLocale(locale); in verifyIndex()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DHoliday.java44 return getHolidays(ULocale.forLocale(locale)); in getHolidays()
172 return getDisplayName(ULocale.forLocale(locale)); in getDisplayName()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DHoliday.java43 return getHolidays(ULocale.forLocale(locale)); in getHolidays()
163 return getDisplayName(ULocale.forLocale(locale)); in getDisplayName()
/external/icu/libicu/cts_headers/unicode/
Dplurrule.h281 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status);
299 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status…
/external/icu/icu4c/source/i18n/unicode/
Dplurrule.h281 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status);
299 …static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UPluralType type, UErrorCode& status…

12345678