Home
last modified time | relevance | path

Searched refs:formatWidth (Results 1 – 22 of 22) 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_ICU58_Android.java1898 if (formatWidth > 0) {
1899 int len = formatWidth - result.length();
1987 if (formatWidth > 0 &&
1994 if (formatWidth > 0 && (padPosition == PAD_BEFORE_SUFFIX ||
2422 if (formatWidth > 0 && padPosition == PAD_BEFORE_PREFIX) { in subparse()
2446 if (formatWidth > 0 && padPosition == PAD_AFTER_PREFIX) { in subparse()
2759 if (formatWidth > 0 && padPosition == PAD_BEFORE_SUFFIX) { in subparse()
2787 if (formatWidth > 0 && padPosition == PAD_AFTER_SUFFIX) { in subparse()
3541 return formatWidth;
3562 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_ICU58_Android.java1908 if (formatWidth > 0) {
1909 int len = formatWidth - result.length();
1999 if (formatWidth > 0 &&
2006 if (formatWidth > 0 && (padPosition == PAD_BEFORE_SUFFIX ||
2434 if (formatWidth > 0 && padPosition == PAD_BEFORE_PREFIX) { in subparse()
2458 if (formatWidth > 0 && padPosition == PAD_AFTER_PREFIX) { in subparse()
2771 if (formatWidth > 0 && padPosition == PAD_BEFORE_SUFFIX) { in subparse()
2799 if (formatWidth > 0 && padPosition == PAD_AFTER_SUFFIX) { in subparse()
3572 return formatWidth;
3594 formatWidth = width;
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java56 private transient int formatWidth; field in DecimalFormatProperties
128 formatWidth = -1; in _clear()
174 formatWidth = other.formatWidth; in _copyFrom()
221 eq = eq && _equalsHelper(formatWidth, other.formatWidth); in _equals()
284 hashCode ^= _hashCodeHelper(formatWidth); in _hashCode()
408 return formatWidth; in getFormatWidth()
745 this.formatWidth = paddingWidth; in setFormatWidth()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java60 private transient int formatWidth; field in DecimalFormatProperties
132 formatWidth = -1; in _clear()
178 formatWidth = other.formatWidth; in _copyFrom()
225 eq = eq && _equalsHelper(formatWidth, other.formatWidth); in _equals()
288 hashCode ^= _hashCodeHelper(formatWidth); in _hashCode()
412 return formatWidth; in getFormatWidth()
749 this.formatWidth = paddingWidth; in setFormatWidth()
/external/icu/icu4c/source/i18n/
Dnumber_decimfmtprops.cpp26 formatWidth = -1; in clear()
68 eq = eq && formatWidth == other.formatWidth; in operator ==()
Ddecimfmt.cpp149 int32_t formatWidth; member
953 int32_t formatWidth = fImpl->getOldFormatWidth(); in parse() local
956 if (formatWidth > 0 && ( in parse()
973 …if (formatWidth > 0 && (fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadBeforeSuffix |… in parse()
1368 int32_t formatWidth = fImpl->getOldFormatWidth(); in subparse() local
1370 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadBeforePrefix) { in subparse()
1399 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadAfterPrefix) { in subparse()
1710 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadBeforeSuffix) { in subparse()
1741 … if (formatWidth > 0 && fImpl->fAffixes.fPadPosition == DigitAffixesAndPadding::kPadAfterSuffix) { in subparse()
2539 int32_t formatWidth = (width > 0) ? width : 0; in setFormatWidth() local
[all …]
Dnumber_decimfmtprops.h57 int32_t formatWidth; member
Dnumber_patternstring.cpp572 properties.formatWidth = paddingWidth; in patternInfoToProperties()
587 properties.formatWidth = -1; in patternInfoToProperties()
630 int paddingWidth = uprv_min(properties.formatWidth, dosMax); in propertiesToPatternString()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java376 if (tuple.formatWidth != null) {
479 if (tuple.formatWidth != null) { in propertiesFromTuple()
480 properties.setFormatWidth(tuple.formatWidth); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java99 public Integer formatWidth = null; field in DataDrivenNumberFormatTestData
325 formatWidth = Integer.valueOf(value); in setFormatWidth()
DMeasureUnitTest.java1598 FormatWidth formatWidth = (FormatWidth) row[0]; in testSimplePer() local
1606 ULocale.ENGLISH, formatWidth); in testSimplePer()
1721 FormatWidth formatWidth = (FormatWidth) test[2]; in testDisplayNames() local
1724 MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); in testDisplayNames()
1726 … assertEquals(String.format("Unit Display Name for %s, %s, %s", unit, locale, formatWidth), in testDisplayNames()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DNumberFormatDataDrivenTest.java373 if (tuple.formatWidth != null) {
476 if (tuple.formatWidth != null) { in propertiesFromTuple()
477 properties.setFormatWidth(tuple.formatWidth); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java96 public Integer formatWidth = null; field in DataDrivenNumberFormatTestData
322 formatWidth = Integer.valueOf(value); in setFormatWidth()
DMeasureUnitTest.java1595 FormatWidth formatWidth = (FormatWidth) row[0]; in testSimplePer() local
1603 ULocale.ENGLISH, formatWidth); in testSimplePer()
1718 FormatWidth formatWidth = (FormatWidth) test[2]; in testDisplayNames() local
1721 MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); in testDisplayNames()
1723 … assertEquals(String.format("Unit Display Name for %s, %s, %s", unit, locale, formatWidth), in testDisplayNames()
/external/icu/icu4c/source/test/intltest/
Dnumberformattesttuple.h106 int32_t formatWidth; variable
Dnumberformattesttuple.cpp313 FIELD_INIT(formatWidth, &gIntOps),
Dnumfmtst.cpp183 fmt.setFormatWidth(tuple.formatWidth); in adjustDecimalFormat()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt506 padCharacter formatWidth output breaks
657 set formatWidth 7
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt506 padCharacter formatWidth output breaks
657 set formatWidth 7
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt506 padCharacter formatWidth output breaks
657 set formatWidth 7