Home
last modified time | relevance | path

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

12

/external/icu/android_icu4j/src/main/java/android/icu/text/
DPluralFormat.java140 private ULocale ulocale = null; field in PluralFormat
196 public PluralFormat(ULocale ulocale) { in PluralFormat() argument
197 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
230 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() argument
231 init(rules, PluralType.CARDINAL, ulocale, null); in PluralFormat()
253 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() argument
254 init(null, type, ulocale, null); in PluralFormat()
293 public PluralFormat(ULocale ulocale, String pattern) { in PluralFormat() argument
294 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
324 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { in PluralFormat() argument
[all …]
DMessageFormat.java350 this.ulocale = ULocale.getDefault(Category.FORMAT); in MessageFormat()
377 this.ulocale = locale; in MessageFormat()
406 this.ulocale = locale; in setLocale()
422 return ulocale.toLocale(); in getLocale()
431 return ulocale; in getULocale()
1434 return Utility.objectEquals(ulocale, other.ulocale) in equals()
1506 private transient ULocale ulocale; field in MessageFormat
1536 DateFormat.SHORT, DateFormat.SHORT, ulocale);//fix in getStockDateFormatter()
1542 stockNumberFormatter = NumberFormat.getInstance(ulocale); in getStockNumberFormatter()
1646 MessageFormat subMsgFormat = new MessageFormat(subMsgString, ulocale); in format()
[all …]
DCurrencyPluralInfo.java136 return ulocale; in getLocale()
168 ulocale = loc; in setLocale()
179 other.ulocale = (ULocale)ulocale.clone(); in clone()
252 ulocale = uloc; in initialize()
317 private ULocale ulocale = null; field in CurrencyPluralInfo
DCompactDecimalDataCache.java282 private static DataBundle load(ULocale ulocale) throws MissingResourceException { in load() argument
284 String nsName = NumberingSystem.getInstance(ulocale).getName(); in load()
286 ulocale); in load()
287 CompactDecimalDataSink sink = new CompactDecimalDataSink(dataBundle, ulocale); in load()
314 checkForOtherVariants(dataBundle.longData, ulocale, LONG_STYLE); in load()
315 checkForOtherVariants(dataBundle.shortData, ulocale, SHORT_STYLE); in load()
316 checkForOtherVariants(dataBundle.shortCurrencyData, ulocale, SHORT_CURRENCY_STYLE); in load()
DListFormatter.java314 private static ListFormatter load(ULocale ulocale, String style) { in load() argument
316 getBundleInstance(ICUData.ICU_BASE_NAME, ulocale); in load()
323 ulocale); in load()
DDecimalFormatSymbols.java1018 return ulocale; in getULocale()
1202 this.ulocale = locale; in initialize()
1376 ulocale = ULocale.forLocale(requestedLocale); in readObject()
1671 private ULocale ulocale; field in DecimalFormatSymbols
DRelativeDateTimeFormatter.java1153 private final ULocale ulocale; field in RelativeDateTimeFormatter.Loader
1155 public Loader(ULocale ulocale) { in Loader() argument
1156 this.ulocale = ulocale; in Loader()
1188 getBundleInstance(ICUData.ICU_BASE_NAME, ulocale); in load()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java140 private ULocale ulocale = null; field in PluralFormat
198 public PluralFormat(ULocale ulocale) { in PluralFormat() argument
199 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
235 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() argument
236 init(rules, PluralType.CARDINAL, ulocale, null); in PluralFormat()
260 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() argument
261 init(null, type, ulocale, null); in PluralFormat()
303 public PluralFormat(ULocale ulocale, String pattern) { in PluralFormat() argument
304 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
336 public PluralFormat(ULocale ulocale, PluralRules rules, String pattern) { in PluralFormat() argument
[all …]
DMessageFormat.java351 this.ulocale = ULocale.getDefault(Category.FORMAT); in MessageFormat()
380 this.ulocale = locale; in MessageFormat()
411 this.ulocale = locale; in setLocale()
428 return ulocale.toLocale(); in getLocale()
438 return ulocale; in getULocale()
1469 return Utility.objectEquals(ulocale, other.ulocale) in equals()
1550 private transient ULocale ulocale; field in MessageFormat
1580 DateFormat.SHORT, DateFormat.SHORT, ulocale);//fix in getStockDateFormatter()
1586 stockNumberFormatter = NumberFormat.getInstance(ulocale); in getStockNumberFormatter()
1690 MessageFormat subMsgFormat = new MessageFormat(subMsgString, ulocale); in format()
[all …]
DCurrencyPluralInfo.java147 return ulocale; in getLocale()
182 ulocale = loc; in setLocale()
195 other.ulocale = (ULocale)ulocale.clone(); in clone()
269 ulocale = uloc; in initialize()
334 private ULocale ulocale = null; field in CurrencyPluralInfo
DCompactDecimalDataCache.java281 private static DataBundle load(ULocale ulocale) throws MissingResourceException { in load() argument
283 String nsName = NumberingSystem.getInstance(ulocale).getName(); in load()
285 ulocale); in load()
286 CompactDecimalDataSink sink = new CompactDecimalDataSink(dataBundle, ulocale); in load()
313 checkForOtherVariants(dataBundle.longData, ulocale, LONG_STYLE); in load()
314 checkForOtherVariants(dataBundle.shortData, ulocale, SHORT_STYLE); in load()
315 checkForOtherVariants(dataBundle.shortCurrencyData, ulocale, SHORT_CURRENCY_STYLE); in load()
DListFormatter.java320 private static ListFormatter load(ULocale ulocale, String style) { in load() argument
322 getBundleInstance(ICUData.ICU_BASE_NAME, ulocale); in load()
329 ulocale); in load()
DRelativeDateTimeFormatter.java1216 private final ULocale ulocale; field in RelativeDateTimeFormatter.Loader
1218 public Loader(ULocale ulocale) { in Loader() argument
1219 this.ulocale = ulocale; in Loader()
1251 getBundleInstance(ICUData.ICU_BASE_NAME, ulocale); in load()
DDecimalFormatSymbols.java1106 return ulocale; in getULocale()
1293 this.ulocale = locale; in initialize()
1467 ulocale = ULocale.forLocale(requestedLocale); in readObject()
1769 private ULocale ulocale; field in DecimalFormatSymbols
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTestLocaleValidity.java247 ULocale ulocale;
249 ulocale = new ULocale.Builder().setLanguageTag(locale).build();
251 addKeys(ulocale, keys);
258 all.isValid(ulocale, where);
273 private void addKeys(ULocale ulocale, Set<String> keys) {
274 for (char cp : ulocale.getExtensionKeys()) {
278 String extensionString = ulocale.getExtension(cp);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTestLocaleValidity.java248 ULocale ulocale;
250 ulocale = new ULocale.Builder().setLanguageTag(locale).build();
252 addKeys(ulocale, keys);
259 all.isValid(ulocale, where);
274 private void addKeys(ULocale ulocale, Set<String> keys) {
275 for (char cp : ulocale.getExtensionKeys()) {
279 String extensionString = ulocale.getExtension(cp);
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocaleMatcher.java159 public ULocale canonicalize(ULocale ulocale) { in canonicalize() argument
161 String lang = ulocale.getLanguage(); in canonicalize()
163 String script = ulocale.getScript(); in canonicalize()
165 String region = ulocale.getCountry(); in canonicalize()
174 return ulocale; in canonicalize()
219 public ULocale getBestMatch(ULocale ulocale) { in getBestMatch() argument
220 return getBestMatchInternal(ulocale, null); in getBestMatch()
411 boolean matches(ULocale ulocale) { in matches() argument
412 if (lang != null && !lang.equals(ulocale.getLanguage())) { in matches()
415 if (script != null && !script.equals(ulocale.getScript())) { in matches()
[all …]
DGenderInfo.java246 private static GenderInfo load(ULocale ulocale) { in load() argument
254 ListGenderStyle.fromName(genderList.getString(ulocale.toString()))); in load()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DLocaleMatcher.java162 public ULocale canonicalize(ULocale ulocale) { in canonicalize() argument
164 String lang = ulocale.getLanguage(); in canonicalize()
166 String script = ulocale.getScript(); in canonicalize()
168 String region = ulocale.getCountry(); in canonicalize()
177 return ulocale; in canonicalize()
225 public ULocale getBestMatch(ULocale ulocale) { in getBestMatch() argument
226 return getBestMatchInternal(ulocale, null); in getBestMatch()
418 boolean matches(ULocale ulocale) { in matches() argument
419 if (lang != null && !lang.equals(ulocale.getLanguage())) { in matches()
422 if (script != null && !script.equals(ulocale.getScript())) { in matches()
[all …]
DGenderInfo.java244 private static GenderInfo load(ULocale ulocale) { in load() argument
252 ListGenderStyle.fromName(genderList.getString(ulocale.toString()))); in load()
/external/icu/icu4c/source/test/intltest/
Dwinnmtst.cpp295 Locale ulocale(localeID); in testLocales() local
296 NumberFormat *wnf = NumberFormat::createInstance(ulocale, status); in testLocales()
297 NumberFormat *wcf = NumberFormat::createCurrencyInstance(ulocale, status); in testLocales()
Dplurfmts.cpp527 Locale ulocale((const char *)"fr"); in pluralFormatLocaleTest() local
529 PluralFormat plFmt(ulocale, testPattern, status); in pluralFormatLocaleTest()
757 Locale ulocale((const char *)locale); in helperTestResults() local
759 PluralFormat plFmt(ulocale, testPattern, status); in helperTestResults()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRangesTest.java64 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() local
67 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRangesTest.java63 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() local
66 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DAlphabeticIndexTest.java608 ULocale ulocale = new ULocale(localeString); in TestClientSupport() local
609 …AlphabeticIndex<Double> alphabeticIndex = new AlphabeticIndex<Double>(ulocale).addLabels(Locale.EN… in TestClientSupport()
654 … gotError |= !assertEquals(ulocale + "\tBucket Labels (" + index + ")", bucketLabel, myLabel); in TestClientSupport()
666 …gotError |= !assertEquals(ulocale + "\t" + bucketLabel + "\t" + "Record Names (" + index + "." + r… in TestClientSupport()
672 …gotError |= !assertEquals(ulocale + "\t" + bucketLabel + "\t" + "Record Names (" + index + "." + r… in TestClientSupport()

12