Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/
DNumberFormatterApiTest.java211 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact()
226 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact()
260 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact()
276 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact()
373 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
389 .unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
404 NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
429 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
438 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure()
448 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/
DNumberFormatterApiTest.java208 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact()
223 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact()
257 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact()
273 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact()
370 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
386 .unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
401 NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
426 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure()
435 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure()
445 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
DMacroProps.java25 public UnitWidth unitWidth; field in MacroProps
47 if (unitWidth == null) unitWidth = fallback.unitWidth; in fallback()
66 unitWidth, in hashCode()
88 && Utility.equals(unitWidth, other.unitWidth) in equals()
DMutablePatternModifier.java44 UnitWidth unitWidth; field in MutablePatternModifier
107 …public void setSymbols(DecimalFormatSymbols symbols, Currency currency, UnitWidth unitWidth, Plura… in setSymbols() argument
111 this.unitWidth = unitWidth; in setSymbols()
324 if (unitWidth == UnitWidth.ISO_CODE) { in getSymbol()
326 } else if (unitWidth == UnitWidth.HIDDEN) { in getSymbol()
328 } else if (unitWidth == UnitWidth.NARROW) { in getSymbol()
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/
DMacroProps.java29 public UnitWidth unitWidth; field in MacroProps
51 if (unitWidth == null) unitWidth = fallback.unitWidth; in fallback()
70 unitWidth, in hashCode()
92 && Utility.equals(unitWidth, other.unitWidth) in equals()
DMutablePatternModifier.java46 UnitWidth unitWidth; field in MutablePatternModifier
109 …public void setSymbols(DecimalFormatSymbols symbols, Currency currency, UnitWidth unitWidth, Plura… in setSymbols() argument
113 this.unitWidth = unitWidth; in setSymbols()
326 if (unitWidth == UnitWidth.ISO_CODE) { in getSymbol()
328 } else if (unitWidth == UnitWidth.HIDDEN) { in getSymbol()
330 } else if (unitWidth == UnitWidth.NARROW) { in getSymbol()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DNumberFormatterImpl.java114 UnitWidth unitWidth = UnitWidth.SHORT; in macrosToMicroGenerator() local
115 if (macros.unitWidth != null) { in macrosToMicroGenerator()
116 unitWidth = macros.unitWidth; in macrosToMicroGenerator()
134 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator()
234 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator()
236 patternMod.setSymbols(micros.symbols, currency, unitWidth, null); in macrosToMicroGenerator()
250 … chain = LongNameHandler.forMeasureUnit(macros.loc, macros.unit, unitWidth, rules, chain); in macrosToMicroGenerator()
251 } else if (isCurrency && unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator()
270 …CompactType compactType = (macros.unit instanceof Currency && macros.unitWidth != UnitWidth.FULL_N… in macrosToMicroGenerator()
DNumberFormatterSettings.java346 public T unitWidth(UnitWidth style) { in unitWidth() method in NumberFormatterSettings
502 if (macros.unitWidth == null) { in resolve()
503 macros.unitWidth = (UnitWidth) current.value; in resolve()
/external/icu/android_icu4j/src/main/java/android/icu/number/
DNumberFormatterImpl.java115 UnitWidth unitWidth = UnitWidth.SHORT; in macrosToMicroGenerator() local
116 if (macros.unitWidth != null) { in macrosToMicroGenerator()
117 unitWidth = macros.unitWidth; in macrosToMicroGenerator()
135 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator()
235 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator()
237 patternMod.setSymbols(micros.symbols, currency, unitWidth, null); in macrosToMicroGenerator()
251 … chain = LongNameHandler.forMeasureUnit(macros.loc, macros.unit, unitWidth, rules, chain); in macrosToMicroGenerator()
252 } else if (isCurrency && unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator()
271 …CompactType compactType = (macros.unit instanceof Currency && macros.unitWidth != UnitWidth.FULL_N… in macrosToMicroGenerator()
DNumberFormatterSettings.java340 public T unitWidth(UnitWidth style) { in unitWidth() method in NumberFormatterSettings
494 if (macros.unitWidth == null) { in resolve()
495 macros.unitWidth = (UnitWidth) current.value; in resolve()
/external/icu/icu4c/source/i18n/
Dnumber_formatimpl.cpp170 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_SHORT; in macrosToMicroGenerator() local
171 if (macros.unitWidth != UNUM_UNIT_WIDTH_COUNT) { in macrosToMicroGenerator()
172 unitWidth = macros.unitWidth; in macrosToMicroGenerator()
192 } else if (!isCurrency || unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator()
291 unitWidth, in macrosToMicroGenerator()
294 patternModifier->setSymbols(fMicros.symbols, currency, unitWidth, nullptr); in macrosToMicroGenerator()
311 unitWidth, in macrosToMicroGenerator()
316 } else if (isCurrency && unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator()
335 CompactType compactType = (isCurrency && unitWidth != UNUM_UNIT_WIDTH_FULL_NAME) in macrosToMicroGenerator()
Dnumber_patternmodifier.cpp31 const UNumberUnitWidth unitWidth, const PluralRules *rules) { in setSymbols() argument
37 this->unitWidth = unitWidth; in setSymbols()
228 if (unitWidth == UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE) { in getSymbol()
230 } else if (unitWidth == UNumberUnitWidth::UNUM_UNIT_WIDTH_HIDDEN) { in getSymbol()
Dnumber_patternmodifier.h122 …bols(const DecimalFormatSymbols *symbols, const CurrencyUnit &currency, UNumberUnitWidth unitWidth,
209 UNumberUnitWidth unitWidth; variable
Dnumber_fluent.cpp85 Derived NumberFormatterSettings<Derived>::unitWidth(const UNumberUnitWidth &width) const { in unitWidth() function in NumberFormatterSettings
87 copy.fMacros.unitWidth = width; in unitWidth()
/external/icu/icu4c/source/test/intltest/
Dnumbertest_api.cpp220 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE), in notationCompact()
236 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in notationCompact()
270 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE), in notationCompact()
287 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in notationCompact()
374 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure()
390 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure()
429 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure()
438 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure()
448 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure()
458 .unitWidth(UNUM_UNIT_WIDTH_NARROW), in unitMeasure()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dnumberformatter.h1304 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_COUNT; member
1622 Derived unitWidth(const UNumberUnitWidth &width) const;
/external/icu/icu4j/tools/build/
Dicu4j60.api3.gz12;ICU4J 60.1;; 2ST@3.6;PB;NS;NF;NS; ...