Lines Matching refs:DecimalFormat
31 using ERoundingMode = icu::DecimalFormat::ERoundingMode;
32 using EPadPosition = icu::DecimalFormat::EPadPosition;
43 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() argument
46 DecimalFormat::DecimalFormat(UErrorCode& status) in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
47 : DecimalFormat(nullptr, status) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
60 DecimalFormat::DecimalFormat(const UnicodeString& pattern, UErrorCode& status) in DecimalFormat() function in DecimalFormat
61 : DecimalFormat(nullptr, status) { in DecimalFormat()
66 DecimalFormat::DecimalFormat(const UnicodeString& pattern, DecimalFormatSymbols* symbolsToAdopt, in DecimalFormat() function in DecimalFormat
68 : DecimalFormat(symbolsToAdopt, status) { in DecimalFormat()
73 DecimalFormat::DecimalFormat(const UnicodeString& pattern, DecimalFormatSymbols* symbolsToAdopt, in DecimalFormat() function in DecimalFormat
75 : DecimalFormat(symbolsToAdopt, status) { in DecimalFormat()
98 DecimalFormat::DecimalFormat(const DecimalFormatSymbols* symbolsToAdopt, UErrorCode& status) { in DecimalFormat() function in DecimalFormat
119 void DecimalFormat::setParseAllInput(UNumberFormatAttributeValue value) { in setParseAllInput()
126 DecimalFormat&
127 DecimalFormat::setAttribute(UNumberFormatAttribute attr, int32_t newValue, UErrorCode& status) { in setAttribute()
198 setRoundingMode((DecimalFormat::ERoundingMode) newValue); in setAttribute()
207 setPadPosition((DecimalFormat::EPadPosition) newValue); in setAttribute()
255 int32_t DecimalFormat::getAttribute(UNumberFormatAttribute attr, UErrorCode& status) const { in getAttribute()
349 void DecimalFormat::setGroupingUsed(UBool enabled) { in setGroupingUsed()
356 void DecimalFormat::setParseIntegerOnly(UBool value) { in setParseIntegerOnly()
363 void DecimalFormat::setLenient(UBool enable) { in setLenient()
371 DecimalFormat::DecimalFormat(const UnicodeString& pattern, DecimalFormatSymbols* symbolsToAdopt, in DecimalFormat() function in DecimalFormat
373 : DecimalFormat(symbolsToAdopt, status) { in DecimalFormat()
379 DecimalFormat::DecimalFormat(const UnicodeString& pattern, const DecimalFormatSymbols& symbols, in DecimalFormat() function in DecimalFormat
381 : DecimalFormat(new DecimalFormatSymbols(symbols), status) { in DecimalFormat()
386 DecimalFormat::DecimalFormat(const DecimalFormat& source) : NumberFormat(source) { in DecimalFormat() function in DecimalFormat
403 DecimalFormat& DecimalFormat::operator=(const DecimalFormat& rhs) { in operator =()
411 DecimalFormat::~DecimalFormat() { in ~DecimalFormat()
417 Format* DecimalFormat::clone() const { in clone()
418 return new DecimalFormat(*this); in clone()
421 UBool DecimalFormat::operator==(const Format& other) const { in operator ==()
422 auto* otherDF = dynamic_cast<const DecimalFormat*>(&other); in operator ==()
429 UnicodeString& DecimalFormat::format(double number, UnicodeString& appendTo, FieldPosition& pos) co… in format()
441 UnicodeString& DecimalFormat::format(double number, UnicodeString& appendTo, FieldPosition& pos, in format()
454 DecimalFormat::format(double number, UnicodeString& appendTo, FieldPositionIterator* posIter, in format()
466 UnicodeString& DecimalFormat::format(int32_t number, UnicodeString& appendTo, FieldPosition& pos) c… in format()
470 UnicodeString& DecimalFormat::format(int32_t number, UnicodeString& appendTo, FieldPosition& pos, in format()
476 DecimalFormat::format(int32_t number, UnicodeString& appendTo, FieldPositionIterator* posIter, in format()
481 UnicodeString& DecimalFormat::format(int64_t number, UnicodeString& appendTo, FieldPosition& pos) c… in format()
493 UnicodeString& DecimalFormat::format(int64_t number, UnicodeString& appendTo, FieldPosition& pos, in format()
506 DecimalFormat::format(int64_t number, UnicodeString& appendTo, FieldPositionIterator* posIter, in format()
519 DecimalFormat::format(StringPiece number, UnicodeString& appendTo, FieldPositionIterator* posIter, in format()
528 UnicodeString& DecimalFormat::format(const DecimalQuantity& number, UnicodeString& appendTo, in format()
538 DecimalFormat::format(const DecimalQuantity& number, UnicodeString& appendTo, FieldPosition& pos, in format()
547 void DecimalFormat::parse(const UnicodeString& text, Formattable& output, in parse()
570 CurrencyAmount* DecimalFormat::parseCurrency(const UnicodeString& text, ParsePosition& parsePositio… in parseCurrency()
595 const DecimalFormatSymbols* DecimalFormat::getDecimalFormatSymbols(void) const { in getDecimalFormatSymbols()
599 void DecimalFormat::adoptDecimalFormatSymbols(DecimalFormatSymbols* symbolsToAdopt) { in adoptDecimalFormatSymbols()
607 void DecimalFormat::setDecimalFormatSymbols(const DecimalFormatSymbols& symbols) { in setDecimalFormatSymbols()
612 const CurrencyPluralInfo* DecimalFormat::getCurrencyPluralInfo(void) const { in getCurrencyPluralInfo()
616 void DecimalFormat::adoptCurrencyPluralInfo(CurrencyPluralInfo* toAdopt) { in adoptCurrencyPluralInfo()
621 void DecimalFormat::setCurrencyPluralInfo(const CurrencyPluralInfo& info) { in setCurrencyPluralInfo()
630 UnicodeString& DecimalFormat::getPositivePrefix(UnicodeString& result) const { in getPositivePrefix()
636 void DecimalFormat::setPositivePrefix(const UnicodeString& newValue) { in setPositivePrefix()
642 UnicodeString& DecimalFormat::getNegativePrefix(UnicodeString& result) const { in getNegativePrefix()
648 void DecimalFormat::setNegativePrefix(const UnicodeString& newValue) { in setNegativePrefix()
654 UnicodeString& DecimalFormat::getPositiveSuffix(UnicodeString& result) const { in getPositiveSuffix()
660 void DecimalFormat::setPositiveSuffix(const UnicodeString& newValue) { in setPositiveSuffix()
666 UnicodeString& DecimalFormat::getNegativeSuffix(UnicodeString& result) const { in getNegativeSuffix()
672 void DecimalFormat::setNegativeSuffix(const UnicodeString& newValue) { in setNegativeSuffix()
678 UBool DecimalFormat::isSignAlwaysShown() const { in isSignAlwaysShown()
682 void DecimalFormat::setSignAlwaysShown(UBool value) { in setSignAlwaysShown()
688 int32_t DecimalFormat::getMultiplier(void) const { in getMultiplier()
698 void DecimalFormat::setMultiplier(int32_t multiplier) { in setMultiplier()
725 int32_t DecimalFormat::getMultiplierScale() const { in getMultiplierScale()
729 void DecimalFormat::setMultiplierScale(int32_t newValue) { in setMultiplierScale()
735 double DecimalFormat::getRoundingIncrement(void) const { in getRoundingIncrement()
739 void DecimalFormat::setRoundingIncrement(double newValue) { in setRoundingIncrement()
745 ERoundingMode DecimalFormat::getRoundingMode(void) const { in getRoundingMode()
750 void DecimalFormat::setRoundingMode(ERoundingMode roundingMode) { in setRoundingMode()
760 int32_t DecimalFormat::getFormatWidth(void) const { in getFormatWidth()
764 void DecimalFormat::setFormatWidth(int32_t width) { in setFormatWidth()
770 UnicodeString DecimalFormat::getPadCharacterString() const { in getPadCharacterString()
779 void DecimalFormat::setPadCharacter(const UnicodeString& padChar) { in setPadCharacter()
789 EPadPosition DecimalFormat::getPadPosition(void) const { in getPadPosition()
798 void DecimalFormat::setPadPosition(EPadPosition padPos) { in setPadPosition()
807 UBool DecimalFormat::isScientificNotation(void) const { in isScientificNotation()
811 void DecimalFormat::setScientificNotation(UBool useScientific) { in setScientificNotation()
822 int8_t DecimalFormat::getMinimumExponentDigits(void) const { in getMinimumExponentDigits()
826 void DecimalFormat::setMinimumExponentDigits(int8_t minExpDig) { in setMinimumExponentDigits()
832 UBool DecimalFormat::isExponentSignAlwaysShown(void) const { in isExponentSignAlwaysShown()
836 void DecimalFormat::setExponentSignAlwaysShown(UBool expSignAlways) { in setExponentSignAlwaysShown()
842 int32_t DecimalFormat::getGroupingSize(void) const { in getGroupingSize()
849 void DecimalFormat::setGroupingSize(int32_t newValue) { in setGroupingSize()
855 int32_t DecimalFormat::getSecondaryGroupingSize(void) const { in getSecondaryGroupingSize()
863 void DecimalFormat::setSecondaryGroupingSize(int32_t newValue) { in setSecondaryGroupingSize()
869 int32_t DecimalFormat::getMinimumGroupingDigits() const { in getMinimumGroupingDigits()
873 void DecimalFormat::setMinimumGroupingDigits(int32_t newValue) { in setMinimumGroupingDigits()
879 UBool DecimalFormat::isDecimalSeparatorAlwaysShown(void) const { in isDecimalSeparatorAlwaysShown()
883 void DecimalFormat::setDecimalSeparatorAlwaysShown(UBool newValue) { in setDecimalSeparatorAlwaysShown()
889 UBool DecimalFormat::isDecimalPatternMatchRequired(void) const { in isDecimalPatternMatchRequired()
893 void DecimalFormat::setDecimalPatternMatchRequired(UBool newValue) { in setDecimalPatternMatchRequired()
899 UBool DecimalFormat::isParseNoExponent() const { in isParseNoExponent()
903 void DecimalFormat::setParseNoExponent(UBool value) { in setParseNoExponent()
909 UBool DecimalFormat::isParseCaseSensitive() const { in isParseCaseSensitive()
913 void DecimalFormat::setParseCaseSensitive(UBool value) { in setParseCaseSensitive()
919 UBool DecimalFormat::isFormatFailIfMoreThanMaxDigits() const { in isFormatFailIfMoreThanMaxDigits()
923 void DecimalFormat::setFormatFailIfMoreThanMaxDigits(UBool value) { in setFormatFailIfMoreThanMaxDigits()
929 UnicodeString& DecimalFormat::toPattern(UnicodeString& result) const { in toPattern()
951 UnicodeString& DecimalFormat::toLocalizedPattern(UnicodeString& result) const { in toLocalizedPattern()
958 void DecimalFormat::applyPattern(const UnicodeString& pattern, UParseError&, UErrorCode& status) { in applyPattern()
963 void DecimalFormat::applyPattern(const UnicodeString& pattern, UErrorCode& status) { in applyPattern()
968 void DecimalFormat::applyLocalizedPattern(const UnicodeString& localizedPattern, UParseError&, in applyLocalizedPattern()
974 void DecimalFormat::applyLocalizedPattern(const UnicodeString& localizedPattern, UErrorCode& status… in applyLocalizedPattern()
982 void DecimalFormat::setMaximumIntegerDigits(int32_t newValue) { in setMaximumIntegerDigits()
993 void DecimalFormat::setMinimumIntegerDigits(int32_t newValue) { in setMinimumIntegerDigits()
1004 void DecimalFormat::setMaximumFractionDigits(int32_t newValue) { in setMaximumFractionDigits()
1015 void DecimalFormat::setMinimumFractionDigits(int32_t newValue) { in setMinimumFractionDigits()
1026 int32_t DecimalFormat::getMinimumSignificantDigits() const { in getMinimumSignificantDigits()
1030 int32_t DecimalFormat::getMaximumSignificantDigits() const { in getMaximumSignificantDigits()
1034 void DecimalFormat::setMinimumSignificantDigits(int32_t value) { in setMinimumSignificantDigits()
1044 void DecimalFormat::setMaximumSignificantDigits(int32_t value) { in setMaximumSignificantDigits()
1054 UBool DecimalFormat::areSignificantDigitsUsed() const { in areSignificantDigitsUsed()
1058 void DecimalFormat::setSignificantDigitsUsed(UBool useSignificantDigits) { in setSignificantDigitsUsed()
1078 void DecimalFormat::setCurrency(const char16_t* theCurrency, UErrorCode& ec) { in setCurrency()
1090 void DecimalFormat::setCurrency(const char16_t* theCurrency) { in setCurrency()
1095 void DecimalFormat::setCurrencyUsage(UCurrencyUsage newUsage, UErrorCode* ec) { in setCurrencyUsage()
1106 UCurrencyUsage DecimalFormat::getCurrencyUsage() const { in getCurrencyUsage()
1116 DecimalFormat::formatToDecimalQuantity(double number, DecimalQuantity& output, UErrorCode& status) … in formatToDecimalQuantity()
1120 void DecimalFormat::formatToDecimalQuantity(const Formattable& number, DecimalQuantity& output, in formatToDecimalQuantity()
1128 const number::LocalizedNumberFormatter& DecimalFormat::toNumberFormatter() const { in toNumberFormatter()
1133 void DecimalFormat::touch(UErrorCode& status) { in touch()
1170 void DecimalFormat::touchNoError() { in touchNoError()
1175 void DecimalFormat::setPropertiesFromPattern(const UnicodeString& pattern, int32_t ignoreRounding, in setPropertiesFromPattern()
1184 const numparse::impl::NumberParserImpl* DecimalFormat::getParser(UErrorCode& status) const { in getParser()
1211 auto* nonConstThis = const_cast<DecimalFormat*>(this); in getParser()
1222 const numparse::impl::NumberParserImpl* DecimalFormat::getCurrencyParser(UErrorCode& status) const { in getCurrencyParser()
1240 auto* nonConstThis = const_cast<DecimalFormat*>(this); in getCurrencyParser()
1252 DecimalFormat::fieldPositionHelper(const number::FormattedNumber& formatted, FieldPosition& fieldPo… in fieldPositionHelper()
1265 DecimalFormat::fieldPositionIteratorHelper(const number::FormattedNumber& formatted, FieldPositionI… in fieldPositionIteratorHelper()
1277 void DecimalFormat::setupFastFormat() { in setupFastFormat()
1347 bool DecimalFormat::fastFormatDouble(double input, UnicodeString& output) const { in fastFormatDouble()
1361 bool DecimalFormat::fastFormatInt64(int64_t input, UnicodeString& output) const { in fastFormatInt64()
1372 void DecimalFormat::doFastFormatInt32(int32_t input, bool isNegative, UnicodeString& output) const { in doFastFormatInt32()