Home
last modified time | relevance | path

Searched refs:formatWidth (Results 1 – 17 of 17) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java124 private final transient FormatWidth formatWidth; field in MeasureFormat
212 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth) { in getInstance() argument
213 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); in getInstance()
223 public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth) { in getInstance() argument
224 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance()
235 …public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth, NumberFormat form… in getInstance() argument
243 if (formatWidth == FormatWidth.NUMERIC) { in getInstance()
257 formatWidth, in getInstance()
261 … new ImmutableNumberFormat(NumberFormat.getInstance(locale, formatWidth.getCurrencyStyle())), in getInstance()
273 …public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth, NumberFormat forma… in getInstance() argument
[all …]
DDecimalFormat.java1883 if (formatWidth > 0) {
1884 int len = formatWidth - result.length();
1972 if (formatWidth > 0 &&
1979 if (formatWidth > 0 && (padPosition == PAD_BEFORE_SUFFIX ||
2407 if (formatWidth > 0 && padPosition == PAD_BEFORE_PREFIX) { in subparse()
2431 if (formatWidth > 0 && padPosition == PAD_AFTER_PREFIX) { in subparse()
2744 if (formatWidth > 0 && padPosition == PAD_BEFORE_SUFFIX) { in subparse()
2772 if (formatWidth > 0 && padPosition == PAD_AFTER_SUFFIX) { in subparse()
3526 return formatWidth;
3547 formatWidth = width;
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java124 private final transient FormatWidth formatWidth; field in MeasureFormat
223 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth) { in getInstance() argument
224 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); in getInstance()
235 public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth) { in getInstance() argument
236 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance()
248 …public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth, NumberFormat form… in getInstance() argument
256 if (formatWidth == FormatWidth.NUMERIC) { in getInstance()
270 formatWidth, in getInstance()
274 … new ImmutableNumberFormat(NumberFormat.getInstance(locale, formatWidth.getCurrencyStyle())), in getInstance()
287 …public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth, NumberFormat forma… in getInstance() argument
[all …]
DDecimalFormat.java1895 if (formatWidth > 0) {
1896 int len = formatWidth - result.length();
1986 if (formatWidth > 0 &&
1993 if (formatWidth > 0 && (padPosition == PAD_BEFORE_SUFFIX ||
2421 if (formatWidth > 0 && padPosition == PAD_BEFORE_PREFIX) { in subparse()
2445 if (formatWidth > 0 && padPosition == PAD_AFTER_PREFIX) { in subparse()
2758 if (formatWidth > 0 && padPosition == PAD_BEFORE_SUFFIX) { in subparse()
2786 if (formatWidth > 0 && padPosition == PAD_AFTER_SUFFIX) { in subparse()
3559 return formatWidth;
3581 formatWidth = width;
[all …]
/external/icu/icu4c/source/i18n/
Ddecimfmt.cpp148 int32_t formatWidth; member
952 int32_t formatWidth = fImpl->getOldFormatWidth(); in parse() local
955 if (formatWidth > 0 && ( in parse()
972 …if (formatWidth > 0 && (fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadBeforeSuffix |… in parse()
1367 int32_t formatWidth = fImpl->getOldFormatWidth(); in subparse() local
1369 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadBeforePrefix) { in subparse()
1398 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadAfterPrefix) { in subparse()
1707 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadBeforeSuffix) { in subparse()
1738 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadAfterSuffix) { in subparse()
2536 int32_t formatWidth = (width > 0) ? width : 0; in setFormatWidth() local
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatTestData.java97 public Integer formatWidth = null; field in NumberFormatTestData
322 formatWidth = Integer.valueOf(value); in setFormatWidth()
DMeasureUnitTest.java1477 FormatWidth formatWidth = (FormatWidth) row[0]; in testSimplePer() local
1485 ULocale.ENGLISH, formatWidth); in testSimplePer()
1600 FormatWidth formatWidth = (FormatWidth) test[2]; in testDisplayNames() local
1603 MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); in testDisplayNames()
1605 … assertEquals(String.format("Unit Display Name for %s, %s, %s", unit, locale, formatWidth), in testDisplayNames()
DNumberFormatTest.java212 if (tuple.formatWidth != null) {
213 fmt.setFormatWidth(tuple.formatWidth);
392 if (tuple.formatWidth != null) {
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatTestData.java96 public Integer formatWidth = null; field in NumberFormatTestData
321 formatWidth = Integer.valueOf(value); in setFormatWidth()
DMeasureUnitTest.java1476 FormatWidth formatWidth = (FormatWidth) row[0]; in testSimplePer() local
1484 ULocale.ENGLISH, formatWidth); in testSimplePer()
1599 FormatWidth formatWidth = (FormatWidth) test[2]; in testDisplayNames() local
1602 MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); in testDisplayNames()
1604 … assertEquals(String.format("Unit Display Name for %s, %s, %s", unit, locale, formatWidth), in testDisplayNames()
DNumberFormatTest.java211 if (tuple.formatWidth != null) {
212 fmt.setFormatWidth(tuple.formatWidth);
391 if (tuple.formatWidth != null) {
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h105 int32_t formatWidth; variable
Dnumberformattesttuple.cpp313 FIELD_INIT(formatWidth, &gIntOps),
Dnumfmtst.cpp159 fmt.setFormatWidth(tuple.formatWidth); in adjustDecimalFormat()
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt396 padCharacter formatWidth output breaks
524 set formatWidth 7
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt396 padCharacter formatWidth output breaks
524 set formatWidth 7
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt396 padCharacter formatWidth output breaks
524 set formatWidth 7