/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
D | MacroProps.java | 29 public UnitWidth unitWidth; field in MacroProps 63 if (unitWidth == null) in fallback() 64 unitWidth = fallback.unitWidth; in fallback() 90 unitWidth, in hashCode() 117 && Objects.equals(unitWidth, other.unitWidth) in equals()
|
D | MutablePatternModifier.java | 46 UnitWidth unitWidth; field in MutablePatternModifier 108 UnitWidth unitWidth, in setSymbols() argument 113 this.unitWidth = unitWidth; in setSymbols() 392 if (unitWidth == UnitWidth.ISO_CODE) { in getSymbol() 394 } else if (unitWidth == UnitWidth.HIDDEN) { in getSymbol() 397 int selector = unitWidth == UnitWidth.NARROW ? Currency.NARROW_SYMBOL_NAME in getSymbol()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
D | MacroProps.java | 33 public UnitWidth unitWidth; field in MacroProps 67 if (unitWidth == null) in fallback() 68 unitWidth = fallback.unitWidth; in fallback() 94 unitWidth, in hashCode() 121 && Objects.equals(unitWidth, other.unitWidth) in equals()
|
D | MutablePatternModifier.java | 48 UnitWidth unitWidth; field in MutablePatternModifier 110 UnitWidth unitWidth, in setSymbols() argument 115 this.unitWidth = unitWidth; in setSymbols() 397 if (unitWidth == UnitWidth.ISO_CODE) { in getSymbol() 399 } else if (unitWidth == UnitWidth.HIDDEN) { in getSymbol() 402 int selector = unitWidth == UnitWidth.NARROW ? Currency.NARROW_SYMBOL_NAME in getSymbol()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 234 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 249 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 283 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 299 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 425 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 441 .unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 456 NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 481 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 490 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure() 500 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure() [all …]
|
D | NumberRangeFormatterTest.java | 106 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic() 122 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic() 290 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 310 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 330 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 350 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 622 NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_NAME)), in testIdentity() 669 .unitWidth(UnitWidth.FULL_NAME) in testPlurals()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | NumberFormatterApiTest.java | 231 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 246 … NumberFormatter.with().notation(Notation.compactShort()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 280 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.ISO_CODE), in notationCompact() 296 … NumberFormatter.with().notation(Notation.compactLong()).unit(USD).unitWidth(UnitWidth.FULL_NAME), in notationCompact() 422 NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 438 .unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 453 NumberFormatter.with().unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 478 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.FULL_NAME), in unitMeasure() 487 NumberFormatter.with().unit(MeasureUnit.DAY).unitWidth(UnitWidth.NARROW), in unitMeasure() 497 NumberFormatter.with().unit(MeasureUnit.SQUARE_METER).unitWidth(UnitWidth.NARROW), in unitMeasure() [all …]
|
D | NumberRangeFormatterTest.java | 103 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.METER).unitWidth(UnitWidth.FULL_NAME)… in testBasic() 119 ….numberFormatterBoth(NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_… in testBasic() 287 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 307 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 327 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 347 .unitWidth(UnitWidth.ISO_CODE) in testCollapse() 619 NumberFormatter.with().unit(MeasureUnit.FAHRENHEIT).unitWidth(UnitWidth.FULL_NAME)), in testIdentity() 666 .unitWidth(UnitWidth.FULL_NAME) in testPlurals()
|
/external/icu/android_icu4j/src/main/java/android/icu/number/ |
D | NumberFormatterImpl.java | 190 UnitWidth unitWidth = UnitWidth.SHORT; in macrosToMicroGenerator() local 191 if (macros.unitWidth != null) { in macrosToMicroGenerator() 192 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 231 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 331 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator() 333 patternMod.setSymbols(micros.symbols, currency, unitWidth, null); in macrosToMicroGenerator() 348 … .forMeasureUnit(macros.loc, macros.unit, macros.perUnit, unitWidth, rules, chain); in macrosToMicroGenerator() 349 } else if (isCurrency && unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 369 && macros.unitWidth != UnitWidth.FULL_NAME) ? CompactType.CURRENCY in macrosToMicroGenerator()
|
D | NumberSkeletonImpl.java | 279 private static UnitWidth unitWidth(StemEnum stem) { in unitWidth() method in NumberSkeletonImpl.StemToObject 388 private static void unitWidth(UnitWidth value, StringBuilder sb) { in unitWidth() method in NumberSkeletonImpl.EnumToStemString 689 checkNull(macros.unitWidth, segment); in parseStem() 690 macros.unitWidth = StemToObject.unitWidth(stem); in parseStem() 844 if (macros.unitWidth != null && GeneratorHelpers.unitWidth(macros, sb)) { in generateSkeleton() 1407 private static boolean unitWidth(MacroProps macros, StringBuilder sb) { in unitWidth() method in NumberSkeletonImpl.GeneratorHelpers 1408 if (macros.unitWidth == UnitWidth.SHORT) { in unitWidth() 1411 EnumToStemString.unitWidth(macros.unitWidth, sb); in unitWidth()
|
D | NumberFormatterSettings.java | 409 public T unitWidth(UnitWidth style) { in unitWidth() method in NumberFormatterSettings 617 if (macros.unitWidth == null) { in resolve() 618 macros.unitWidth = (UnitWidth) current.value; in resolve()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/ |
D | NumberFormatterImpl.java | 189 UnitWidth unitWidth = UnitWidth.SHORT; in macrosToMicroGenerator() local 190 if (macros.unitWidth != null) { in macrosToMicroGenerator() 191 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 230 } else if (!isCurrency || unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 330 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator() 332 patternMod.setSymbols(micros.symbols, currency, unitWidth, null); in macrosToMicroGenerator() 347 … .forMeasureUnit(macros.loc, macros.unit, macros.perUnit, unitWidth, rules, chain); in macrosToMicroGenerator() 348 } else if (isCurrency && unitWidth == UnitWidth.FULL_NAME) { in macrosToMicroGenerator() 368 && macros.unitWidth != UnitWidth.FULL_NAME) ? CompactType.CURRENCY in macrosToMicroGenerator()
|
D | NumberFormatterSettings.java | 418 public T unitWidth(UnitWidth style) { in unitWidth() method in NumberFormatterSettings 630 if (macros.unitWidth == null) { in resolve() 631 macros.unitWidth = (UnitWidth) current.value; in resolve()
|
D | NumberSkeletonImpl.java | 278 private static UnitWidth unitWidth(StemEnum stem) { in unitWidth() method in NumberSkeletonImpl.StemToObject 387 private static void unitWidth(UnitWidth value, StringBuilder sb) { in unitWidth() method in NumberSkeletonImpl.EnumToStemString 688 checkNull(macros.unitWidth, segment); in parseStem() 689 macros.unitWidth = StemToObject.unitWidth(stem); in parseStem() 843 if (macros.unitWidth != null && GeneratorHelpers.unitWidth(macros, sb)) { in generateSkeleton() 1406 private static boolean unitWidth(MacroProps macros, StringBuilder sb) { in unitWidth() method in NumberSkeletonImpl.GeneratorHelpers 1407 if (macros.unitWidth == UnitWidth.SHORT) { in unitWidth() 1410 EnumToStemString.unitWidth(macros.unitWidth, sb); in unitWidth()
|
/external/icu/icu4c/source/i18n/ |
D | number_formatimpl.cpp | 193 UNumberUnitWidth unitWidth = UNUM_UNIT_WIDTH_SHORT; in macrosToMicroGenerator() local 194 if (macros.unitWidth != UNUM_UNIT_WIDTH_COUNT) { in macrosToMicroGenerator() 195 unitWidth = macros.unitWidth; in macrosToMicroGenerator() 246 } else if (!isCurrency || unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 353 unitWidth, in macrosToMicroGenerator() 356 patternModifier->setSymbols(fMicros.symbols, currencySymbols, unitWidth, nullptr); in macrosToMicroGenerator() 373 unitWidth, in macrosToMicroGenerator() 378 } else if (isCurrency && unitWidth == UNUM_UNIT_WIDTH_FULL_NAME) { in macrosToMicroGenerator() 396 CompactType compactType = (isCurrency && unitWidth != UNUM_UNIT_WIDTH_FULL_NAME) in macrosToMicroGenerator()
|
D | number_skeletons.h | 179 UNumberUnitWidth unitWidth(skeleton::StemEnum stem); 197 void unitWidth(UNumberUnitWidth value, UnicodeString& sb); 292 static bool unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode& status); 316 bool unitWidth = false; member
|
D | number_skeletons.cpp | 241 UNumberUnitWidth stem_to_object::unitWidth(skeleton::StemEnum stem) { in unitWidth() function in stem_to_object 344 void enum_to_stem_string::unitWidth(UNumberUnitWidth value, UnicodeString& sb) { in unitWidth() function in enum_to_stem_string 616 CHECK_NULL(seen, unitWidth, status); in parseStem() 617 macros.unitWidth = stem_to_object::unitWidth(stem); in parseStem() 782 if (GeneratorHelpers::unitWidth(macros, sb, status)) { in generateSkeleton() 1472 bool GeneratorHelpers::unitWidth(const MacroProps& macros, UnicodeString& sb, UErrorCode&) { in unitWidth() function in GeneratorHelpers 1473 if (macros.unitWidth == UNUM_UNIT_WIDTH_SHORT || macros.unitWidth == UNUM_UNIT_WIDTH_COUNT) { in unitWidth() 1476 enum_to_stem_string::unitWidth(macros.unitWidth, sb); in unitWidth()
|
D | number_patternmodifier.cpp | 37 … const UNumberUnitWidth unitWidth, const PluralRules* rules) { in setSymbols() argument 41 fUnitWidth = unitWidth; in setSymbols()
|
D | number_fluent.cpp | 212 Derived NumberFormatterSettings<Derived>::unitWidth(UNumberUnitWidth width) const& { in unitWidth() function in NumberFormatterSettings 214 copy.fMacros.unitWidth = width; in unitWidth() 219 Derived NumberFormatterSettings<Derived>::unitWidth(UNumberUnitWidth width)&& { in unitWidth() function in NumberFormatterSettings 221 move.fMacros.unitWidth = width; in unitWidth()
|
D | number_patternmodifier.h | 127 UNumberUnitWidth unitWidth, const PluralRules* rules);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | MeasureFormat.java | 199 final UnitWidth unitWidth; field in MeasureFormat.FormatWidth 207 … private FormatWidth(ListFormatter.Style style, UnitWidth unitWidth, UnitWidth currencyWidth) { in FormatWidth() argument 209 this.unitWidth = unitWidth; in FormatWidth() 482 return LongNameHandler.getUnitDisplayName(getLocale(), unit, formatWidth.unitWidth); in getUnitDisplayName() 641 .unitWidth(formatWidth.unitWidth); in MeasureFormat() 737 .unitWidth(formatWidth.unitWidth); in getUnitFormatterFromCache() 740 .unitWidth(formatWidth.currencyWidth); in getUnitFormatterFromCache() 743 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | MeasureFormat.java | 183 final UnitWidth unitWidth; field in MeasureFormat.FormatWidth 191 … private FormatWidth(ListFormatter.Style style, UnitWidth unitWidth, UnitWidth currencyWidth) { in FormatWidth() argument 193 this.unitWidth = unitWidth; in FormatWidth() 454 return LongNameHandler.getUnitDisplayName(getLocale(), unit, formatWidth.unitWidth); in getUnitDisplayName() 600 .unitWidth(formatWidth.unitWidth); in MeasureFormat() 696 .unitWidth(formatWidth.unitWidth); in getUnitFormatterFromCache() 699 .unitWidth(formatWidth.currencyWidth); in getUnitFormatterFromCache() 702 … formatter = getNumberFormatter().unit(unit).perUnit(perUnit).unitWidth(formatWidth.unitWidth) in getUnitFormatterFromCache()
|
/external/icu/icu4c/source/test/intltest/ |
D | numbertest_api.cpp | 259 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE), in notationCompact() 276 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in notationCompact() 312 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_ISO_CODE), in notationCompact() 330 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in notationCompact() 446 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure() 463 .unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure() 503 … NumberFormatter::with().unit(DAY).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_FULL_NAME), in unitMeasure() 512 NumberFormatter::with().unit(DAY).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure() 522 … NumberFormatter::with().unit(SQUARE_METER).unitWidth(UNumberUnitWidth::UNUM_UNIT_WIDTH_NARROW), in unitMeasure() 532 NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_NARROW), in unitMeasure() [all …]
|
D | numbertest_range.cpp | 116 … .numberFormatterBoth(NumberFormatter::with().unit(METER).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)), in testBasic() 132 ….numberFormatterBoth(NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)… in testBasic() 299 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 319 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 339 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 359 .unitWidth(UNUM_UNIT_WIDTH_ISO_CODE) in testCollapse() 630 NumberFormatter::with().unit(FAHRENHEIT).unitWidth(UNUM_UNIT_WIDTH_FULL_NAME)), in testIdentity() 677 .unitWidth(UNUM_UNIT_WIDTH_FULL_NAME) in testPlurals()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | ExampleGenerator.java | 733 … private String handleDurationListPatterns(XPathParts parts, String value, UnitLength unitWidth) { in handleDurationListPatterns() argument 735 String duration1 = getFormattedUnit("duration-day", unitWidth, 4); in handleDurationListPatterns() 736 String duration2 = getFormattedUnit("duration-hour", unitWidth, 2); in handleDurationListPatterns() 740 String duration3 = getFormattedUnit("duration-minute", unitWidth, 37); in handleDurationListPatterns() 741 String duration4 = getFormattedUnit("duration-second", unitWidth, 23); in handleDurationListPatterns() 743 …unitWidth.listTypeLength.getPath(), patternType, value, duration1, duration2, duration3, duration4… in handleDurationListPatterns() 769 … private String getFormattedUnit(String unitType, UnitLength unitWidth, FixedDecimal unitAmount) { in getFormattedUnit() argument 771 return getFormattedUnit(unitType, unitWidth, unitAmount, numberFormat.format(unitAmount)); in getFormattedUnit() 774 private String getFormattedUnit(String unitType, UnitLength unitWidth, double unitAmount) { in getFormattedUnit() argument 775 return getFormattedUnit(unitType, unitWidth, new FixedDecimal(unitAmount)); in getFormattedUnit() [all …]
|