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.java141 private ULocale ulocale = null; field in PluralFormat
197 public PluralFormat(ULocale ulocale) { in PluralFormat() argument
198 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
231 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() argument
232 init(rules, PluralType.CARDINAL, ulocale, null); in PluralFormat()
254 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() argument
255 init(null, type, ulocale, null); in PluralFormat()
294 public PluralFormat(ULocale ulocale, String pattern) { in PluralFormat() argument
295 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
325 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()
225 ^ ulocale.hashCode(); in hashCode()
260 ulocale = uloc; in initialize()
325 private ULocale ulocale = null; field in CurrencyPluralInfo
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 …]
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()
DRelativeDateTimeFormatter.java1142 private final ULocale ulocale; field in RelativeDateTimeFormatter.Loader
1144 public Loader(ULocale ulocale) { in Loader() argument
1145 this.ulocale = ulocale; in Loader()
1177 getBundleInstance(ICUData.ICU_BASE_NAME, ulocale); in load()
DDecimalFormatSymbols.java1092 return ulocale; in getULocale()
1276 this.ulocale = locale; in initialize()
1456 ulocale = ULocale.forLocale(requestedLocale); in readObject()
1770 private ULocale ulocale; field in DecimalFormatSymbols
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DPluralFormat.java141 private ULocale ulocale = null; field in PluralFormat
199 public PluralFormat(ULocale ulocale) { in PluralFormat() argument
200 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
236 public PluralFormat(ULocale ulocale, PluralRules rules) { in PluralFormat() argument
237 init(rules, PluralType.CARDINAL, ulocale, null); in PluralFormat()
261 public PluralFormat(ULocale ulocale, PluralType type) { in PluralFormat() argument
262 init(null, type, ulocale, null); in PluralFormat()
304 public PluralFormat(ULocale ulocale, String pattern) { in PluralFormat() argument
305 init(null, PluralType.CARDINAL, ulocale, null); in PluralFormat()
337 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()
242 ^ ulocale.hashCode(); in hashCode()
277 ulocale = uloc; in initialize()
342 private ULocale ulocale = null; field in CurrencyPluralInfo
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 …]
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.java1205 private final ULocale ulocale; field in RelativeDateTimeFormatter.Loader
1207 public Loader(ULocale ulocale) { in Loader() argument
1208 this.ulocale = ulocale; in Loader()
1240 getBundleInstance(ICUData.ICU_BASE_NAME, ulocale); in load()
DDecimalFormatSymbols.java1182 return ulocale; in getULocale()
1369 this.ulocale = locale; in initialize()
1549 ulocale = ULocale.forLocale(requestedLocale); in readObject()
1870 private ULocale ulocale; field in DecimalFormatSymbols
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DTestLocaleValidity.java251 ULocale ulocale;
253 ulocale = new ULocale.Builder().setLanguageTag(locale).build();
255 addKeys(ulocale, keys);
262 all.isValid(ulocale, where);
277 private void addKeys(ULocale ulocale, Set<String> keys) {
278 for (char cp : ulocale.getExtensionKeys()) {
282 String extensionString = ulocale.getExtension(cp);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DTestLocaleValidity.java254 ULocale ulocale;
256 ulocale = new ULocale.Builder().setLanguageTag(locale).build();
258 addKeys(ulocale, keys);
265 all.isValid(ulocale, where);
280 private void addKeys(ULocale ulocale, Set<String> keys) {
281 for (char cp : ulocale.getExtensionKeys()) {
285 String extensionString = ulocale.getExtension(cp);
/external/icu/android_icu4j/src/main/java/android/icu/util/
DLocaleMatcher.java163 public ULocale canonicalize(ULocale ulocale) { in canonicalize() argument
165 String lang = ulocale.getLanguage(); in canonicalize()
167 String script = ulocale.getScript(); in canonicalize()
169 String region = ulocale.getCountry(); in canonicalize()
178 return ulocale; in canonicalize()
223 public ULocale getBestMatch(ULocale ulocale) { in getBestMatch() argument
224 return getBestMatchInternal(ulocale, null); in getBestMatch()
415 boolean matches(ULocale ulocale) { in matches() argument
416 if (lang != null && !lang.equals(ulocale.getLanguage())) { in matches()
419 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.java166 public ULocale canonicalize(ULocale ulocale) { in canonicalize() argument
168 String lang = ulocale.getLanguage(); in canonicalize()
170 String script = ulocale.getScript(); in canonicalize()
172 String region = ulocale.getCountry(); in canonicalize()
181 return ulocale; in canonicalize()
229 public ULocale getBestMatch(ULocale ulocale) { in getBestMatch() argument
230 return getBestMatchInternal(ulocale, null); in getBestMatch()
422 boolean matches(ULocale ulocale) { in matches() argument
423 if (lang != null && !lang.equals(ulocale.getLanguage())) { in matches()
426 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.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()
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.java69 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() local
72 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRangesTest.java66 ULocale ulocale = new ULocale(test[0]); in TestRangePattern() local
69 String formatter = MeasureFormat.getRangeFormat(ulocale, width); in TestRangePattern()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/locale/
DXLocaleMatcher.java208 public ULocale getBestMatch(ULocale ulocale) {
209 return getBestMatch(ulocale, null);
462 public ULocale canonicalize(ULocale ulocale) {
/external/icu/android_icu4j/src/main/java/android/icu/impl/locale/
DXLocaleMatcher.java210 public ULocale getBestMatch(ULocale ulocale) {
211 return getBestMatch(ulocale, null);
463 public ULocale canonicalize(ULocale ulocale) {
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DAlphabeticIndexTest.java611 ULocale ulocale = new ULocale(localeString); in TestClientSupport() local
612 …AlphabeticIndex<Double> alphabeticIndex = new AlphabeticIndex<Double>(ulocale).addLabels(Locale.EN… in TestClientSupport()
657 … gotError |= !assertEquals(ulocale + "\tBucket Labels (" + index + ")", bucketLabel, myLabel); in TestClientSupport()
669 …gotError |= !assertEquals(ulocale + "\t" + bucketLabel + "\t" + "Record Names (" + index + "." + r… in TestClientSupport()
675 …gotError |= !assertEquals(ulocale + "\t" + bucketLabel + "\t" + "Record Names (" + index + "." + r… in TestClientSupport()

12