Home
last modified time | relevance | path

Searched refs:NumberFormatter (Results 1 – 25 of 95) sorted by relevance

1234

/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java40 import com.ibm.icu.number.NumberFormatter;
41 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
42 import com.ibm.icu.number.NumberFormatter.GroupingStrategy;
43 import com.ibm.icu.number.NumberFormatter.SignDisplay;
44 import com.ibm.icu.number.NumberFormatter.UnitWidth;
75 NumberFormatter.with(), in notationSimple()
90 NumberFormatter.with().notation(Notation.simple()), in notationSimple()
105 NumberFormatter.with(), in notationSimple()
116 NumberFormatter.with().notation(Notation.scientific()), in notationScientific()
131 NumberFormatter.with().notation(Notation.engineering()), in notationScientific()
[all …]
DNumberRangeFormatterTest.java24 import com.ibm.icu.number.NumberFormatter;
25 import com.ibm.icu.number.NumberFormatter.UnitWidth;
83 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testBasic()
99 .numberFormatterFirst(NumberFormatter.with().unit(MeasureUnit.METER)) in testBasic()
100 .numberFormatterSecond(NumberFormatter.with().unit(MeasureUnit.KILOMETER)), in testBasic()
116 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic()
132 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic()
164 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.KELVIN)), in testBasic()
196 .numberFormatterBoth(NumberFormatter.with().unit(PTE)), in testBasic()
215 .numberFormatterBoth(NumberFormatter.with().unit(USD)), in testCollapse()
[all …]
DNumberSkeletonTest.java13 import com.ibm.icu.number.NumberFormatter;
99 NumberFormatter.forSkeleton(cas); in validTokens()
144 NumberFormatter.forSkeleton(cas); in invalidTokens()
165 NumberFormatter.forSkeleton(cas); in unknownTokens()
184 NumberFormatter.forSkeleton(cas); in unexpectedTokens()
205 NumberFormatter.forSkeleton(cas); in duplicateValues()
229 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
250 String normalized = NumberFormatter.forSkeleton(skeleton).toSkeleton(); in defaultTokens()
266 … String actual = NumberFormatter.forSkeleton(skeleton).locale(ULocale.ENGLISH).format(5142.3) in flexibleSeparators()
279 String skeleton = NumberFormatter.with().roundingMode(mode).toSkeleton(); in roundingModeNames()
DExhaustiveNumberTest.java17 import com.ibm.icu.number.NumberFormatter;
95 UnlocalizedNumberFormatter uNoUnitPercent = NumberFormatter.with().unit(NoUnit.PERCENT); in test20417_PercentParity()
96 UnlocalizedNumberFormatter uNoUnitPermille = NumberFormatter.with().unit(NoUnit.PERMILLE); in test20417_PercentParity()
97 … UnlocalizedNumberFormatter uMeasurePercent = NumberFormatter.with().unit(MeasureUnit.PERCENT); in test20417_PercentParity()
98 … UnlocalizedNumberFormatter uMeasurePermille = NumberFormatter.with().unit(MeasureUnit.PERMILLE); in test20417_PercentParity()
116 String actual = NumberFormatter.withLocale(ULocale.ENGLISH).precision(Precision.unlimited()) in unlimitedRoundingBigDecimal()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java41 import android.icu.number.NumberFormatter;
42 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
43 import android.icu.number.NumberFormatter.GroupingStrategy;
44 import android.icu.number.NumberFormatter.SignDisplay;
45 import android.icu.number.NumberFormatter.UnitWidth;
78 NumberFormatter.with(), in notationSimple()
93 NumberFormatter.with().notation(Notation.simple()), in notationSimple()
108 NumberFormatter.with(), in notationSimple()
119 NumberFormatter.with().notation(Notation.scientific()), in notationScientific()
134 NumberFormatter.with().notation(Notation.engineering()), in notationScientific()
[all …]
DNumberRangeFormatterTest.java25 import android.icu.number.NumberFormatter;
26 import android.icu.number.NumberFormatter.UnitWidth;
86 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER)), in testBasic()
102 .numberFormatterFirst(NumberFormatter.with().unit(MeasureUnit.METER)) in testBasic()
103 .numberFormatterSecond(NumberFormatter.with().unit(MeasureUnit.KILOMETER)), in testBasic()
119 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic()
135 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic()
167 .numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.KELVIN)), in testBasic()
199 .numberFormatterBoth(NumberFormatter.with().unit(PTE)), in testBasic()
218 .numberFormatterBoth(NumberFormatter.with().unit(USD)), in testCollapse()
[all …]
DNumberSkeletonTest.java14 import android.icu.number.NumberFormatter;
102 NumberFormatter.forSkeleton(cas); in validTokens()
147 NumberFormatter.forSkeleton(cas); in invalidTokens()
168 NumberFormatter.forSkeleton(cas); in unknownTokens()
187 NumberFormatter.forSkeleton(cas); in unexpectedTokens()
208 NumberFormatter.forSkeleton(cas); in duplicateValues()
232 NumberFormatter.forSkeleton(skeletonString); in stemsRequiringOption()
253 String normalized = NumberFormatter.forSkeleton(skeleton).toSkeleton(); in defaultTokens()
269 … String actual = NumberFormatter.forSkeleton(skeleton).locale(ULocale.ENGLISH).format(5142.3) in flexibleSeparators()
282 String skeleton = NumberFormatter.with().roundingMode(mode).toSkeleton(); in roundingModeNames()
DExhaustiveNumberTest.java18 import android.icu.number.NumberFormatter;
98 UnlocalizedNumberFormatter uNoUnitPercent = NumberFormatter.with().unit(NoUnit.PERCENT); in test20417_PercentParity()
99 UnlocalizedNumberFormatter uNoUnitPermille = NumberFormatter.with().unit(NoUnit.PERMILLE); in test20417_PercentParity()
100 … UnlocalizedNumberFormatter uMeasurePercent = NumberFormatter.with().unit(MeasureUnit.PERCENT); in test20417_PercentParity()
101 … UnlocalizedNumberFormatter uMeasurePermille = NumberFormatter.with().unit(MeasureUnit.PERMILLE); in test20417_PercentParity()
119 String actual = NumberFormatter.withLocale(ULocale.ENGLISH).precision(Precision.unlimited()) in unlimitedRoundingBigDecimal()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp115 NumberFormatter::with(), in notationSimple()
130 NumberFormatter::with().notation(Notation::simple()), in notationSimple()
145 NumberFormatter::with(), in notationSimple()
156 NumberFormatter::with().notation(Notation::scientific()), in notationScientific()
171 NumberFormatter::with().notation(Notation::engineering()), in notationScientific()
186 NumberFormatter::with().notation( in notationScientific()
202 NumberFormatter::with().notation(Notation::scientific().withMinExponentDigits(2)), in notationScientific()
217 NumberFormatter::with().notation(Notation::scientific()), in notationScientific()
225 NumberFormatter::with().notation(Notation::scientific()), in notationScientific()
233 NumberFormatter::with().notation(Notation::scientific()), in notationScientific()
[all …]
Dnumbertest_range.cpp85 .numberFormatterBoth(NumberFormatter::with().unit(METER)), in testBasic()
101 .numberFormatterFirst(NumberFormatter::with().unit(METER)) in testBasic()
102 .numberFormatterSecond(NumberFormatter::with().unit(KILOMETER)), in testBasic()
118 … .numberFormatterBoth(NumberFormatter::with().unit(METER).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)), in testBasic()
134 ….numberFormatterBoth(NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)… in testBasic()
166 .numberFormatterBoth(NumberFormatter::with().unit(KELVIN)), in testBasic()
198 .numberFormatterBoth(NumberFormatter::with().unit(PTE)), in testBasic()
216 .numberFormatterBoth(NumberFormatter::with().unit(USD)), in testCollapse()
232 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
249 .numberFormatterBoth(NumberFormatter::with().unit(USD).precision(Precision::integer())), in testCollapse()
[all …]
Dnumbertest_skeletons.cpp114 NumberFormatter::forSkeleton(skeletonString, perror, status); in validTokens()
212 NumberFormatter::forSkeleton(skeletonString, perror, status); in stemsRequiringOption()
247 UnicodeString normalized = NumberFormatter::forSkeleton( in defaultTokens()
270 UnicodeString actual = NumberFormatter::forSkeleton(skeletonString, status).locale("en") in flexibleSeparators()
285 NumberFormatter::forSkeleton(skeletonString, status); in expectedErrorSkeleton()
/external/icu/tools/srcgen/javadoc_patches/patches/src/main/java/android/icu/text/
DNumberFormat.java.patch7 - * {@link NumberFormatter} fits their use case. Although not deprecated, this
8 + * {@code NumberFormatter} fits their use case. Although not deprecated, this
17 - * {@link NumberFormatter} instead of NumberFormat.
27 - * {@link NumberFormatter} instead of NumberFormat.
37 - * {@link NumberFormatter} instead of NumberFormat.
47 - * {@link NumberFormatter} instead of NumberFormat.
57 - * {@link NumberFormatter} instead of NumberFormat.
67 - * {@link NumberFormatter} instead of NumberFormat.
77 - * {@link NumberFormatter} instead of NumberFormat.
87 - * {@link NumberFormatter} instead of NumberFormat.
[all …]
DCompactDecimalFormat.java.patch9 - * {@link NumberFormatter} fits their use case. Although not deprecated, this
21 - * {@link NumberFormatter} instead of NumberFormat.
31 - * {@link NumberFormatter} instead of NumberFormat.
/external/icu/android_icu4j/testing/src/android/icu/extratest/number/
DFormattedNumberTest.java8 import android.icu.number.NumberFormatter;
24 NumberFormatter.withLocale(ULocale.US).format(123.45); in test_enUS()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMicroProps.java7 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
8 import android.icu.number.NumberFormatter.SignDisplay;
DMacroProps.java11 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
12 import android.icu.number.NumberFormatter.SignDisplay;
13 import android.icu.number.NumberFormatter.UnitWidth;
DLocalizedNumberFormatterAsFormat.java18 import android.icu.number.NumberFormatter;
145 return NumberFormatter.forSkeleton(skeleton) in readResolve()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMicroProps.java6 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
7 import com.ibm.icu.number.NumberFormatter.SignDisplay;
DMacroProps.java10 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
11 import com.ibm.icu.number.NumberFormatter.SignDisplay;
12 import com.ibm.icu.number.NumberFormatter.UnitWidth;
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatter.java66 public final class NumberFormatter { class
367 private NumberFormatter() { in NumberFormatter() method in NumberFormatter
DNumberFormatterSettings.java10 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
11 import android.icu.number.NumberFormatter.GroupingStrategy;
12 import android.icu.number.NumberFormatter.SignDisplay;
13 import android.icu.number.NumberFormatter.UnitWidth;
DNumberPropertyMapper.java20 import android.icu.number.NumberFormatter.DecimalSeparatorDisplay;
21 import android.icu.number.NumberFormatter.SignDisplay;
44 return NumberFormatter.with().macros(macros); in create()
53 return NumberFormatter.with().macros(macros); in create()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterSettings.java9 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
10 import com.ibm.icu.number.NumberFormatter.GroupingStrategy;
11 import com.ibm.icu.number.NumberFormatter.SignDisplay;
12 import com.ibm.icu.number.NumberFormatter.UnitWidth;
DNumberFormatter.java66 public final class NumberFormatter { class
390 private NumberFormatter() { in NumberFormatter() method in NumberFormatter
DNumberPropertyMapper.java19 import com.ibm.icu.number.NumberFormatter.DecimalSeparatorDisplay;
20 import com.ibm.icu.number.NumberFormatter.SignDisplay;
43 return NumberFormatter.with().macros(macros); in create()
52 return NumberFormatter.with().macros(macros); in create()

1234