Home
last modified time | relevance | path

Searched refs:ulocale (Results 1 – 25 of 53) sorted by relevance

123

/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralFormat.java143 private ULocale ulocale = null; field in PluralFormat
199 public PluralFormat(ULocale ulocale) { in PluralFormat() argument
200 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
233 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() argument
234 init(rules, PluralType.CARDINAL, ulocale, null); in PluralFormat()
256 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() argument
257 init(null, type, ulocale, null); in PluralFormat()
296 public PluralFormat(ULocale ulocale, String pattern) { in PluralFormat() argument
297 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
327 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { in PluralFormat() argument
[all …]
DCurrencyPluralInfo.java136 return ulocale; in getLocale()
172 ulocale = loc; in setLocale()
184 other.ulocale = (ULocale)ulocale.clone(); in clone()
222 ^ ulocale.hashCode(); in hashCode()
260 ulocale = uloc; in initialize()
325 private ULocale ulocale = null; field in CurrencyPluralInfo
DMessageFormat.java351 this.ulocale = ULocale.getDefault(Category.FORMAT); in MessageFormat()
378 this.ulocale = locale; in MessageFormat()
407 this.ulocale = locale; in setLocale()
423 return ulocale.toLocale(); in getLocale()
432 return ulocale; in getULocale()
1435 return Objects.equals(ulocale, other.ulocale) in equals()
1507 private transient ULocale ulocale; field in MessageFormat
1537 DateFormat.SHORT, DateFormat.SHORT, ulocale);//fix in getStockDateFormatter()
1543 stockNumberFormatter = NumberFormat.getInstance(ulocale); in getStockNumberFormatter()
1647 MessageFormat subMsgFormat = new MessageFormat(subMsgString, ulocale); in format()
[all …]
DDecimalFormatSymbols.java827 CurrencyDisplayInfo displayInfo = CurrencyData.provider.getInstance(ulocale, true); in setCurrency()
842 currencySymbol = currency.getSymbol(ulocale); in setCurrencyOrNull()
1117 return ulocale; in getULocale()
1319 this.ulocale = locale; in initialize()
1348 CurrencyDisplayInfo displayInfo = CurrencyData.provider.getInstance(ulocale, true); in initialize()
1351 setCurrencyOrNull(Currency.getInstance(ulocale), displayInfo); in initialize()
1473 ulocale = ULocale.forLocale(requestedLocale); in readObject()
1787 private ULocale ulocale; field in DecimalFormatSymbols
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java143 private ULocale ulocale = null; field in PluralFormat
201 public PluralFormat(ULocale ulocale) { in PluralFormat() argument
202 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
238 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() argument
239 init(rules, PluralType.CARDINAL, ulocale, null); in PluralFormat()
263 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() argument
264 init(null, type, ulocale, null); in PluralFormat()
306 public PluralFormat(ULocale ulocale, String pattern) { in PluralFormat() argument
307 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
339 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { in PluralFormat() argument
[all …]
DCurrencyPluralInfo.java147 return ulocale; in getLocale()
186 ulocale = loc; in setLocale()
200 other.ulocale = (ULocale)ulocale.clone(); in clone()
240 ^ ulocale.hashCode(); in hashCode()
278 ulocale = uloc; in initialize()
343 private ULocale ulocale = null; field in CurrencyPluralInfo
DMessageFormat.java380 this.ulocale = ULocale.getDefault(Category.FORMAT); in MessageFormat()
409 this.ulocale = locale; in MessageFormat()
440 this.ulocale = locale; in setLocale()
457 return ulocale.toLocale(); in getLocale()
467 return ulocale; in getULocale()
1498 return Objects.equals(ulocale, other.ulocale) in equals()
1579 private transient ULocale ulocale; field in MessageFormat
1609 DateFormat.SHORT, DateFormat.SHORT, ulocale);//fix in getStockDateFormatter()
1615 stockNumberFormatter = NumberFormat.getInstance(ulocale); in getStockNumberFormatter()
1719 MessageFormat subMsgFormat = new MessageFormat(subMsgString, ulocale); in format()
[all …]
DDecimalFormatSymbols.java894 CurrencyDisplayInfo displayInfo = CurrencyData.provider.getInstance(ulocale, true); in setCurrency()
909 currencySymbol = currency.getSymbol(ulocale); in setCurrencyOrNull()
1206 return ulocale; in getULocale()
1411 this.ulocale = locale; in initialize()
1440 CurrencyDisplayInfo displayInfo = CurrencyData.provider.getInstance(ulocale, true); in initialize()
1443 setCurrencyOrNull(Currency.getInstance(ulocale), displayInfo); in initialize()
1565 ulocale = ULocale.forLocale(requestedLocale); in readObject()
1886 private ULocale ulocale; field in DecimalFormatSymbols
/external/cldr/tools/java/org/unicode/cldr/test/
DEmojiSubdivisionNames.java130 ULocale ulocale = new ULocale(locale); in main() local
131 LanguageGroup group = LanguageGroup.get(ulocale); in main()
132 int rank = LanguageGroup.rankInGroup(ulocale); in main()
146 ULocale ulocale = new ULocale(locale); in main() local
147 String region = ulocale.getCountry(); in main()
151 LanguageGroup group = LanguageGroup.get(ulocale); in main()
152 int rank = LanguageGroup.rankInGroup(ulocale); in main()
DQuickCheck.java359 ULocale ulocale = new ULocale(locale); in showStatus() local
360 DateFormatSymbols dfs = new DateFormatSymbols(ulocale); // just use ICU for now in showStatus()
370 + "\t'" + new SimpleDateFormat(stockPattern, dfs, ulocale).format(SAMPLE_DATE) in showStatus()
371 …+ "\t'" + (areSame ? "" : new SimpleDateFormat(flexiblePattern, dfs, ulocale).format(SAMPLE_DATE))… in showStatus()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTestLocaleValidity.java255 ULocale ulocale;
257 ulocale = new ULocale.Builder().setLanguageTag(locale).build();
259 addKeys(ulocale, keys);
266 all.isValid(ulocale, where);
281 private void addKeys(ULocale ulocale, Set<String> keys) {
282 for (char cp : ulocale.getExtensionKeys()) {
286 String extensionString = ulocale.getExtension(cp);
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTestLocaleValidity.java252 ULocale ulocale;
254 ulocale = new ULocale.Builder().setLanguageTag(locale).build();
256 addKeys(ulocale, keys);
263 all.isValid(ulocale, where);
278 private void addKeys(ULocale ulocale, Set<String> keys) {
279 for (char cp : ulocale.getExtensionKeys()) {
283 String extensionString = ulocale.getExtension(cp);
/external/cldr/tools/java/org/unicode/cldr/tool/
DPluralMinimalPairs.java29 public static PluralMinimalPairs getInstance(String ulocale) { in getInstance() argument
30 PluralMinimalPairs samplePatterns = cache.get(ulocale); in getInstance()
38 CLDRFile cldrFile = factory.make(ulocale, true); in getInstance()
59 samplePatterns.put(ulocale, type, category, sample); in getInstance()
69 cache.put(ulocale, samplePatterns); in getInstance()
DMakeAnnotationHistogram.java28 ULocale ulocale = new ULocale(locale); in main() local
36 missingCodeToLocales.put(code, ulocale); in main()
39 int clusterCount = getCount(name, ulocale); in main()
49 System.out.print(locale + "\t" + ulocale.getDisplayName()); in main()
/external/cldr/tools/java/com/ibm/icu/util/
DLocaleMatcher.java153 public ULocale canonicalize(ULocale ulocale) { in canonicalize() argument
155 String lang = ulocale.getLanguage(); in canonicalize()
157 String script = ulocale.getScript(); in canonicalize()
159 String region = ulocale.getCountry(); in canonicalize()
167 return ulocale; in canonicalize()
215 public ULocale getBestMatch(ULocale ulocale) { in getBestMatch() argument
216 return getBestMatchInternal(ulocale, null); in getBestMatch()
403 boolean matches(ULocale ulocale) { in matches() argument
404 if (lang != null && !lang.equals(ulocale.getLanguage())) { in matches()
407 if (script != null && !script.equals(ulocale.getScript())) { in matches()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestBcp47Transforms.java203 ULocale ulocale = new ULocale(source); in getStandard() local
205 String language = ulocale.getLanguage(); in getStandard()
207 String script = ulocale.getScript(); in getStandard()
210 String region = ulocale.getCountry(); in getStandard()
214 return ulocale.toLanguageTag(); in getStandard()
/external/cldr/tools/java/org/unicode/cldr/util/
DCLDRLocale.java230 private ULocale ulocale; field in CLDRLocale
261 return ulocale.toLanguageTag(); in toLanguageTag()
286 if (ulocale == null) { in CLDRLocale()
287 ulocale = new ULocale(fullname); in CLDRLocale()
342 return ulocale; in toULocale()
DDayPeriodConverter.java234 ULocale ulocale = new ULocale(locale); in generateFormat() local
240 allData.put(ulocale, 0, DayPeriodInfo.DayPeriod.midnight); in generateFormat()
243 allData.put(ulocale, 12 * DayPeriodInfo.HOUR, DayPeriodInfo.DayPeriod.noon); in generateFormat()
260 allData.put(ulocale, 12 * DayPeriodInfo.HOUR + 1, lastPeriod); in generateFormat()
263 allData.put(ulocale, time, period); in generateFormat()
DICUServiceBuilder.java596 ULocale ulocale = new ULocale(cldrFile.getLocaleID() + "@numbers=" + ns);
597 result = NumberFormat.getInstance(ulocale);
616 ULocale ulocale = new ULocale(localeIDString);
617 …String key = (currencySymbol == null) ? ulocale + "/" + key1 + "/" + kind : ulocale + "/" + key1 +…
699 System.out.println("creating " + ulocale + "\tkey: " + key + "\tpattern "
701 DecimalFormat n2 = (DecimalFormat) NumberFormat.getScientificInstance(ulocale);
/external/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp314 Locale ulocale(localeID); in testLocales() local
315 NumberFormat *wnf = NumberFormat::createInstance(ulocale, status); in testLocales()
316 NumberFormat *wcf = NumberFormat::createCurrencyInstance(ulocale, status); in testLocales()
/external/icu/android_icu4j/src/main/java/android/icu/util/
DGenderInfo.java248 private static GenderInfo load(ULocale ulocale) { in load() argument
256 ListGenderStyle.fromName(genderList.getString(ulocale.toString()))); in load()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DGenderInfo.java244 private static GenderInfo load(ULocale ulocale) { in load() argument
252 ListGenderStyle.fromName(genderList.getString(ulocale.toString()))); in load()
/external/icu/libicu/test/src/
Duloc_jni_test.cpp100 std::unique_ptr<_jobject, decltype(jdeleter)> ulocale( in uloc_setDefault_java() local
105 env->CallObjectMethod(ulocale.get(), ulocale_toLocale), in uloc_setDefault_java()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRangesTest.java71 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() local
74 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRangesTest.java68 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() local
71 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()

123