Home
last modified time | relevance | path

Searched refs:withLocale (Results 1 – 25 of 73) sorted by relevance

123

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DBasicDurationFormatter.java78 public DurationFormatter withLocale(String locName) {
80 PeriodFormatter newFormatter = formatter.withLocale(locName);
81 PeriodBuilder newBuilder = builder.withLocale(locName);
84 : fallback.withLocale(locName);
DBasicDurationFormatterFactory.java124 builder = builder.withLocale(localeName); in setLocale()
127 formatter = formatter.withLocale(localeName); in setLocale()
162 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter()
DPeriodFormatter.java42 PeriodFormatter withLocale(String localeName); in withLocale() method
DPeriodBuilder.java48 PeriodBuilder withLocale(String localeName); in withLocale() method
DDateFormatter.java43 DateFormatter withLocale(String localeName); in withLocale() method
DDurationFormatter.java68 DurationFormatter withLocale(String localeName); in withLocale() method
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/duration/
DBasicDurationFormatter.java79 public DurationFormatter withLocale(String locName) {
81 PeriodFormatter newFormatter = formatter.withLocale(locName);
82 PeriodBuilder newBuilder = builder.withLocale(locName);
85 : fallback.withLocale(locName);
DBasicDurationFormatterFactory.java125 builder = builder.withLocale(localeName); in setLocale()
128 formatter = formatter.withLocale(localeName); in setLocale()
163 fallback = fallback.withLocale(localeName).withTimeZone(timeZone); in getFormatter()
DPeriodFormatter.java44 PeriodFormatter withLocale(String localeName); in withLocale() method
DPeriodBuilder.java50 PeriodBuilder withLocale(String localeName); in withLocale() method
DDateFormatter.java45 DateFormatter withLocale(String localeName); in withLocale() method
DDurationFormatter.java70 DurationFormatter withLocale(String localeName); in withLocale() method
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
DNumberRangeFormatter.java166 public static LocalizedNumberRangeFormatter withLocale(Locale locale) { in withLocale() method in NumberRangeFormatter
178 public static LocalizedNumberRangeFormatter withLocale(ULocale locale) { in withLocale() method in NumberRangeFormatter
DNumberFormatter.java418 public static LocalizedNumberFormatter withLocale(Locale locale) { in withLocale() method in NumberFormatter
430 public static LocalizedNumberFormatter withLocale(ULocale locale) { in withLocale() method in NumberFormatter
DNumberRangeFormatterImpl.java137 : NumberFormatter.withLocale(macros.loc).resolve()); in NumberRangeFormatterImpl()
139 : NumberFormatter.withLocale(macros.loc).resolve()); in NumberRangeFormatterImpl()
/third_party/icu/icu4c/source/test/intltest/
Dnumbertest_range.cpp60 LocalizedNumberRangeFormatter lnrf1 = NumberRangeFormatter::withLocale("en-us"); in testSanity()
765 NumberRangeFormatter::withLocale("en-us"), in testFieldPositions()
797 l1 = NumberRangeFormatter::withLocale("fr-FR") in testCopyMove()
810 l1 = NumberRangeFormatter::withLocale("en-us"); in testCopyMove()
811 l2 = NumberRangeFormatter::withLocale("en-us"); in testCopyMove()
835 LocalizedNumberRangeFormatter lnf = NumberRangeFormatter::withLocale("en"); in toObject()
845 NumberRangeFormatter::withLocale("en").clone()); in toObject()
854 NumberRangeFormatter::withLocale("en").clone(); in toObject()
869 LocalizedNumberRangeFormatter lnf = NumberRangeFormatter::withLocale("en") in testGetDecimalNumbers()
Dnumbertest_api.cpp3923 … NumberFormatter::withLocale(Locale("ar@numbers=arab")).adoptSymbols(new NumberingSystem(LATN)) in symbols()
4532 UnicodeString actual = NumberFormatter::withLocale(Locale::getFrench()).formatInt(1234, status) in locale()
4586 LocalizedNumberFormatter formatter = NumberFormatter::withLocale(Locale::getEnglish()); in formatTypes()
4660 fmtd = NumberFormatter::withLocale("en").formatInt(5, status); in fieldPositionLogic()
4980 LocalizedNumberFormatter lnf = NumberFormatter::withLocale("fr") in toFormat()
5011 LocalizedNumberFormatter lnf = NumberFormatter::withLocale(Locale::getEnglish()).precision( in errors()
5033 fn = NumberFormatter::withLocale("en").formatDecimal("1x2", status); in errors()
5173 l1 = NumberFormatter::withLocale("en").unit(NoUnit::percent()).threshold(3); in copyMove()
5201 l1 = NumberFormatter::withLocale("en"); in copyMove()
5205 l2 = NumberFormatter::withLocale("en"); in copyMove()
[all …]
Dnumbertest_decimalquantity.cpp656 LocalizedNumberFormatter withLocale = NumberFormatter::withLocale(ulocale); in testSuppressedExponentUnchangedByInitialScaling() local
658 withLocale.notation(Notation::compactLong()); in testSuppressedExponentUnchangedByInitialScaling()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberRangeFormatter.java218 public static LocalizedNumberRangeFormatter withLocale(Locale locale) { in withLocale() method in NumberRangeFormatter
231 public static LocalizedNumberRangeFormatter withLocale(ULocale locale) { in withLocale() method in NumberRangeFormatter
DNumberFormatter.java543 public static LocalizedNumberFormatter withLocale(Locale locale) { in withLocale() method in NumberFormatter
556 public static LocalizedNumberFormatter withLocale(ULocale locale) { in withLocale() method in NumberFormatter
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/
DNumberRangeFormatterTest.java54 LocalizedNumberRangeFormatter lnrf1 = NumberRangeFormatter.withLocale(ULocale.US); in testSanity()
56 LocalizedNumberRangeFormatter lnrf3 = NumberRangeFormatter.withLocale(Locale.US); in testSanity()
754 NumberRangeFormatter.withLocale(ULocale.US), in testFieldPositions()
DDecimalQuantityTest.java749 NumberFormatter.withLocale(locale) in testCompactNotationFractionPluralOperands()
813 LocalizedNumberFormatter withLocale = NumberFormatter.withLocale(locale); in testSuppressedExponentUnchangedByInitialScaling() local
815 withLocale.notation(Notation.compactLong()); in testSuppressedExponentUnchangedByInitialScaling()
DNumberFormatterApiTest.java2042 NumberFormatter.withLocale(new ULocale("ar@numbers=arab")) in symbols()
2577 …assertEquals(NumberFormatter.with().locale(ULocale.ENGLISH), NumberFormatter.withLocale(ULocale.EN… in locale()
2578 …assertEquals(NumberFormatter.with().locale(ULocale.ENGLISH), NumberFormatter.withLocale(Locale.ENG… in locale()
2584 LocalizedNumberFormatter formatter = NumberFormatter.withLocale(ULocale.ENGLISH); in formatTypes()
2657 fmtd = NumberFormatter.withLocale(ULocale.ENGLISH).format(5); in fieldPositionLogic()
2943 NumberFormatter.withLocale(ULocale.FRENCH).toFormat(), in getTestObjects()
2962 LocalizedNumberFormatter lnf = NumberFormatter.withLocale(ULocale.FRENCH) in toFormat()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberRangeFormatterTest.java50 LocalizedNumberRangeFormatter lnrf1 = NumberRangeFormatter.withLocale(ULocale.US); in testSanity()
52 LocalizedNumberRangeFormatter lnrf3 = NumberRangeFormatter.withLocale(Locale.US); in testSanity()
772 NumberRangeFormatter.withLocale(ULocale.US), in testFieldPositions()
DDecimalQuantityTest.java772 NumberFormatter.withLocale(locale) in testCompactNotationFractionPluralOperands()
842 LocalizedNumberFormatter withLocale = NumberFormatter.withLocale(locale); in testSuppressedExponentUnchangedByInitialScaling() local
844 withLocale.notation(Notation.compactLong()); in testSuppressedExponentUnchangedByInitialScaling()

123