Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DMeasureFormat.java118 private final transient FormatWidth formatWidth; field in MeasureFormat
228 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth) { in getInstance() argument
229 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); in getInstance()
242 public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth) { in getInstance() argument
243 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance()
260 FormatWidth formatWidth, in getInstance() argument
262 return new MeasureFormat(locale, formatWidth, format, null, null); in getInstance()
279 FormatWidth formatWidth, in getInstance() argument
281 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance()
441 if (formatWidth == FormatWidth.NUMERIC) { in formatMeasuresInternal()
[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/android_icu4j/src/main/java/android/icu/text/
DMeasureFormat.java112 private final transient FormatWidth formatWidth; field in MeasureFormat
211 public static MeasureFormat getInstance(ULocale locale, FormatWidth formatWidth) { in getInstance() argument
212 return getInstance(locale, formatWidth, NumberFormat.getInstance(locale)); in getInstance()
224 public static MeasureFormat getInstance(Locale locale, FormatWidth formatWidth) { in getInstance() argument
225 return getInstance(ULocale.forLocale(locale), formatWidth); in getInstance()
241 FormatWidth formatWidth, in getInstance() argument
243 return new MeasureFormat(locale, formatWidth, format, null, null); in getInstance()
259 FormatWidth formatWidth, in getInstance() argument
261 return getInstance(ULocale.forLocale(locale), formatWidth, format); in getInstance()
415 if (formatWidth == FormatWidth.NUMERIC) { in formatMeasuresInternal()
[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/android_icu4j/src/main/java/android/icu/impl/number/
DDecimalFormatProperties.java93 private transient int formatWidth; field in DecimalFormatProperties
165 formatWidth = -1; in _clear()
211 formatWidth = other.formatWidth; in _copyFrom()
258 eq = eq && _equalsHelper(formatWidth, other.formatWidth); in _equals()
321 hashCode ^= _hashCodeHelper(formatWidth); in _hashCode()
445 return formatWidth; in getFormatWidth()
789 this.formatWidth = paddingWidth; in setFormatWidth()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DDecimalFormatProperties.java88 private transient int formatWidth; field in DecimalFormatProperties
160 formatWidth = -1; in _clear()
206 formatWidth = other.formatWidth; in _copyFrom()
253 eq = eq && _equalsHelper(formatWidth, other.formatWidth); in _equals()
316 hashCode ^= _hashCodeHelper(formatWidth); in _hashCode()
440 return formatWidth; in getFormatWidth()
784 this.formatWidth = paddingWidth; in setFormatWidth()
/external/icu/icu4c/source/i18n/
Dnumber_decimfmtprops.cpp43 formatWidth = -1; in clear()
91 eq = eq && formatWidth == other.formatWidth; in _equals()
Dnumber_decimfmtprops.h104 int32_t formatWidth; member
Dnumber_padding.cpp59 …return {padCp, properties.formatWidth, properties.padPosition.getOrDefault(UNUM_PAD_BEFORE_PREFIX)… in forProperties()
Dnumber_patternstring.cpp597 properties.formatWidth = paddingWidth; in patternInfoToProperties()
612 properties.formatWidth = -1; in patternInfoToProperties()
655 int paddingWidth = uprv_min(properties.formatWidth, dosMax); in propertiesToPatternString()
Ddecimfmt.cpp761 return fields->properties->formatWidth; in getFormatWidth()
765 if (width == fields->properties->formatWidth) { return; } in setFormatWidth()
766 fields->properties->formatWidth = width; in setFormatWidth()
Dnumber_mapper.cpp179 if (properties.formatWidth != -1) { in oldToNew()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DNumberFormatDataDrivenTest.java227 if (tuple.formatWidth != null) {
228 fmt.setFormatWidth(tuple.formatWidth);
588 if (tuple.formatWidth != null) {
695 if (tuple.formatWidth != null) { in propertiesFromTuple()
696 properties.setFormatWidth(tuple.formatWidth); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java99 public Integer formatWidth = null; field in DataDrivenNumberFormatTestData
327 formatWidth = Integer.valueOf(value); in setFormatWidth()
DMeasureUnitTest.java1759 FormatWidth formatWidth = (FormatWidth) row[0]; in testSimplePer() local
1767 ULocale.ENGLISH, formatWidth); in testSimplePer()
1884 FormatWidth formatWidth = (FormatWidth) test[2]; in testDisplayNames() local
1887 MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); in testDisplayNames()
1889 … 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.java224 if (tuple.formatWidth != null) {
225 fmt.setFormatWidth(tuple.formatWidth);
585 if (tuple.formatWidth != null) {
692 if (tuple.formatWidth != null) { in propertiesFromTuple()
693 properties.setFormatWidth(tuple.formatWidth); in propertiesFromTuple()
DDataDrivenNumberFormatTestData.java96 public Integer formatWidth = null; field in DataDrivenNumberFormatTestData
324 formatWidth = Integer.valueOf(value); in setFormatWidth()
DMeasureUnitTest.java1756 FormatWidth formatWidth = (FormatWidth) row[0]; in testSimplePer() local
1764 ULocale.ENGLISH, formatWidth); in testSimplePer()
1881 FormatWidth formatWidth = (FormatWidth) test[2]; in testDisplayNames() local
1884 MeasureFormat mf = MeasureFormat.getInstance(locale, formatWidth); in testDisplayNames()
1886 … 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.cpp310 FIELD_INIT(formatWidth, &gIntOps),
Dnumfmtdatadriventest.cpp114 fmt.setFormatWidth(tuple.formatWidth); in adjustDecimalFormat()
/external/icu/icu4c/source/test/testdata/
Dnumberformattestspecification.txt531 padCharacter formatWidth output breaks
682 set formatWidth 8
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dnumberformattestspecification.txt531 padCharacter formatWidth output breaks
682 set formatWidth 8
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/data/
Dnumberformattestspecification.txt531 padCharacter formatWidth output breaks
682 set formatWidth 8