Lines Matching refs:DecimalFormat
219 // class DecimalFormat
222 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(DecimalFormat)
248 const int32_t DecimalFormat::kDoubleIntegerDigits = 309;
249 const int32_t DecimalFormat::kDoubleFractionDigits = 340;
251 const int32_t DecimalFormat::kMaxScientificIntegerDigits = 8;
257 const char DecimalFormat::fgNumberPatterns[]="NumberPatterns"; // Deprecated - not used
261 static const char fgDecimalFormat[]="decimalFormat";
269 // Constructs a DecimalFormat instance in the default locale.
271 DecimalFormat::DecimalFormat(UErrorCode& status) {
278 // Constructs a DecimalFormat instance with the specified number format
281 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
289 // Constructs a DecimalFormat instance with the specified number format
293 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
303 DecimalFormat::DecimalFormat( const UnicodeString& pattern,
314 // Constructs a DecimalFormat instance with the specified number format
318 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
327 // Constructs a DecimalFormat instance with the specified number format
331 DecimalFormat::DecimalFormat(const UnicodeString& pattern,
342 // Common DecimalFormat initialization.
346 DecimalFormat::init(UErrorCode &status) {
390 // Constructs a DecimalFormat instance with the specified number format
395 DecimalFormat::construct(UErrorCode& status,
537 DecimalFormat::setupCurrencyAffixPatterns(UErrorCode& status) {
612 DecimalFormat::setupCurrencyAffixes(const UnicodeString& pattern,
677 DecimalFormat::~DecimalFormat()
696 DecimalFormat::DecimalFormat(const DecimalFormat &source) :
728 DecimalFormat&
729 DecimalFormat::operator=(const DecimalFormat& rhs)
798 DecimalFormat::operator==(const Format& that) const
804 const DecimalFormat* other = (DecimalFormat*)&that;
990 DecimalFormat::clone() const
992 return new DecimalFormat(*this);
998 DecimalFormat::format(int32_t number,
1006 DecimalFormat::format(int32_t number,
1015 DecimalFormat::format(int32_t number,
1025 void DecimalFormat::handleChanged() {
1093 DecimalFormat::format(int64_t number,
1103 DecimalFormat::format(int64_t number,
1113 DecimalFormat::format(int64_t number,
1123 DecimalFormat::_format(int64_t number,
1217 DecimalFormat::format( double number,
1227 DecimalFormat::format( double number,
1237 DecimalFormat::format( double number,
1247 DecimalFormat::_format( double number,
1280 DecimalFormat::format(const StringPiece &number,
1338 DecimalFormat::format(const DigitList &number,
1350 DecimalFormat::format(const DigitList &number,
1360 DecimalFormat::_round(const DigitList &number, DigitList &adjustedNum, UBool& isNegative, UErrorCode &status) const {
1449 DecimalFormat::_format(const DigitList &number,
1496 DecimalFormat::format( const Formattable& obj,
1514 UBool DecimalFormat::isGroupingPosition(int32_t pos) const {
1533 DecimalFormat::subformat(UnicodeString& appendTo,
1868 void DecimalFormat::addPadding(UnicodeString& appendTo,
1904 DecimalFormat::parse(const UnicodeString& text,
1912 DecimalFormat::parse(const UnicodeString& text,
1918 CurrencyAmount* DecimalFormat::parseCurrency(const UnicodeString& text,
1950 void DecimalFormat::parse(const UnicodeString& text,
2061 DecimalFormat::parseForCurrency(const UnicodeString& text,
2197 UBool DecimalFormat::subparse(const UnicodeString& text,
2765 int32_t DecimalFormat::skipPadding(const UnicodeString& text, int32_t position) const {
2792 int32_t DecimalFormat::compareAffix(const UnicodeString& text,
2839 int32_t DecimalFormat::compareSimpleAffix(const UnicodeString& affix,
2960 int32_t DecimalFormat::skipPatternWhiteSpace(const UnicodeString& text, int32_t pos) {
2969 int32_t DecimalFormat::skipUWhiteSpace(const UnicodeString& text, int32_t pos) {
2992 int32_t DecimalFormat::compareComplexAffix(const UnicodeString& affixPat,
3101 int32_t DecimalFormat::match(const UnicodeString& text, int32_t pos, UChar32 ch) {
3121 int32_t DecimalFormat::match(const UnicodeString& text, int32_t pos, const UnicodeString& str) {
3133 UBool DecimalFormat::matchSymbol(const UnicodeString &text, int32_t position, int32_t length, const UnicodeString &symbol,
3143 UBool DecimalFormat::matchDecimal(UChar32 symbolChar,
3157 UBool DecimalFormat::matchGrouping(UChar32 groupingChar,
3180 DecimalFormat::getDecimalFormatSymbols() const
3189 DecimalFormat::adoptDecimalFormatSymbols(DecimalFormatSymbols* symbolsToAdopt)
3219 DecimalFormat::setDecimalFormatSymbols(const DecimalFormatSymbols& symbols)
3229 DecimalFormat::getCurrencyPluralInfo(void) const
3236 DecimalFormat::adoptCurrencyPluralInfo(CurrencyPluralInfo* toAdopt)
3260 DecimalFormat::setCurrencyPluralInfo(const CurrencyPluralInfo& info)
3275 DecimalFormat::setCurrencyForSymbols() {
3316 DecimalFormat::getPositivePrefix(UnicodeString& result) const
3326 DecimalFormat::setPositivePrefix(const UnicodeString& newValue)
3340 DecimalFormat::getNegativePrefix(UnicodeString& result) const
3350 DecimalFormat::setNegativePrefix(const UnicodeString& newValue)
3364 DecimalFormat::getPositiveSuffix(UnicodeString& result) const
3374 DecimalFormat::setPositiveSuffix(const UnicodeString& newValue)
3388 DecimalFormat::getNegativeSuffix(UnicodeString& result) const
3398 DecimalFormat::setNegativeSuffix(const UnicodeString& newValue)
3415 DecimalFormat::getMultiplier() const
3427 DecimalFormat::setMultiplier(int32_t newValue)
3459 double DecimalFormat::getRoundingIncrement() const {
3476 void DecimalFormat::setRoundingIncrement(double newValue) {
3502 DecimalFormat::ERoundingMode DecimalFormat::getRoundingMode() const {
3514 void DecimalFormat::setRoundingMode(ERoundingMode roundingMode) {
3530 int32_t DecimalFormat::getFormatWidth() const {
3546 void DecimalFormat::setFormatWidth(int32_t width) {
3553 UnicodeString DecimalFormat::getPadCharacterString() const {
3557 void DecimalFormat::setPadCharacter(const UnicodeString &padChar) {
3586 DecimalFormat::EPadPosition DecimalFormat::getPadPosition() const {
3609 void DecimalFormat::setPadPosition(EPadPosition padPos) {
3625 UBool DecimalFormat::isScientificNotation() {
3639 void DecimalFormat::setScientificNotation(UBool useScientific) {
3655 int8_t DecimalFormat::getMinimumExponentDigits() const {
3670 void DecimalFormat::setMinimumExponentDigits(int8_t minExpDig) {
3688 UBool DecimalFormat::isExponentSignAlwaysShown() {
3704 void DecimalFormat::setExponentSignAlwaysShown(UBool expSignAlways) {
3716 DecimalFormat::getGroupingSize() const
3725 DecimalFormat::setGroupingSize(int32_t newValue)
3736 DecimalFormat::getSecondaryGroupingSize() const
3744 DecimalFormat::setSecondaryGroupingSize(int32_t newValue)
3756 DecimalFormat::isDecimalSeparatorAlwaysShown() const
3765 DecimalFormat::setDecimalSeparatorAlwaysShown(UBool newValue)
3774 // Emits the pattern of this DecimalFormat instance.
3777 DecimalFormat::toPattern(UnicodeString& result) const
3783 // Emits the localized pattern this DecimalFormat instance.
3786 DecimalFormat::toLocalizedPattern(UnicodeString& result) const
3805 void DecimalFormat::expandAffixes(const UnicodeString* pluralCount) {
3871 void DecimalFormat::expandAffix(const UnicodeString& pattern,
3949 ((DecimalFormat*)this)->fCurrencyChoice = fmt;
4026 int32_t DecimalFormat::appendAffix(UnicodeString& buf, double number,
4124 void DecimalFormat::appendAffixPattern(UnicodeString& appendTo,
4185 DecimalFormat::appendAffixPattern(UnicodeString& appendTo,
4234 DecimalFormat::toPattern(UnicodeString& result, UBool localized) const
4469 DecimalFormat::applyPattern(const UnicodeString& pattern, UErrorCode& status)
4478 DecimalFormat::applyPattern(const UnicodeString& pattern,
4487 DecimalFormat::applyLocalizedPattern(const UnicodeString& pattern, UErrorCode& status)
4496 DecimalFormat::applyLocalizedPattern(const UnicodeString& pattern,
4506 DecimalFormat::applyPatternWithoutExpandAffix(const UnicodeString& pattern,
5109 DecimalFormat::expandAffixAdjustWidth(const UnicodeString* pluralCount) {
5121 DecimalFormat::applyPattern(const UnicodeString& pattern,
5150 DecimalFormat::applyPatternInternally(const UnicodeString& pluralCount,
5168 void DecimalFormat::setMaximumIntegerDigits(int32_t newValue) {
5180 void DecimalFormat::setMinimumIntegerDigits(int32_t newValue) {
5192 void DecimalFormat::setMaximumFractionDigits(int32_t newValue) {
5204 void DecimalFormat::setMinimumFractionDigits(int32_t newValue) {
5211 int32_t DecimalFormat::getMinimumSignificantDigits() const {
5215 int32_t DecimalFormat::getMaximumSignificantDigits() const {
5219 void DecimalFormat::setMinimumSignificantDigits(int32_t min) {
5232 void DecimalFormat::setMaximumSignificantDigits(int32_t max) {
5246 UBool DecimalFormat::areSignificantDigitsUsed() const {
5250 void DecimalFormat::setSignificantDigitsUsed(UBool useSignificantDigits) {
5257 void DecimalFormat::setCurrencyInternally(const UChar* theCurrency,
5294 void DecimalFormat::setCurrency(const UChar* theCurrency, UErrorCode& ec) {
5311 void DecimalFormat::setCurrency(const UChar* theCurrency) {
5319 void DecimalFormat::getEffectiveCurrency(UChar* result, UErrorCode& ec) const {
5341 DecimalFormat::precision() const {
5354 DecimalFormat::initHashForAffix(UErrorCode& status) {
5372 DecimalFormat::initHashForAffixPattern(UErrorCode& status) {
5390 DecimalFormat::deleteHashForAffix(Hashtable*& table)
5409 DecimalFormat::deleteHashForAffixPattern()
5427 DecimalFormat::copyHashForAffixPattern(const Hashtable* source,
5455 DecimalFormat& DecimalFormat::setAttribute( UNumberFormatAttribute attr,
5524 setRoundingMode((DecimalFormat::ERoundingMode)newValue);
5533 setPadPosition((DecimalFormat::EPadPosition)newValue);
5567 int32_t DecimalFormat::getAttribute( UNumberFormatAttribute attr,
5647 void DecimalFormat::setParseAllInput(UNumberFormatAttributeValue value) {
5656 DecimalFormat::copyHashForAffix(const Hashtable* source,