36 #if !UCONFIG_NO_FORMATTING 46 #ifndef U_HIDE_INTERNAL_API 51 #if UCONFIG_FORMAT_FASTPATHS_49 52 #define UNUM_DECIMALFORMAT_INTERNAL_SIZE 16 59 class CurrencyPluralInfo;
62 class FieldPositionHandler;
63 class DecimalFormatStaticSets;
65 class DecimalFormatImpl;
67 class VisibleDigitsWithExponent;
70 #if defined (_MSC_VER) 758 #ifndef U_HIDE_INTERNAL_API 776 #if UCONFIG_HAVE_PARSEALLINPUT 780 void setParseAllInput(UNumberFormatAttributeValue value);
1132 const VisibleDigitsWithExponent &number,
1149 const VisibleDigitsWithExponent &number,
1289 virtual void setPositivePrefix(
const UnicodeString& newValue);
1308 virtual void setNegativePrefix(
const UnicodeString& newValue);
1327 virtual void setPositiveSuffix(
const UnicodeString& newValue);
1346 virtual void setNegativeSuffix(
const UnicodeString& newValue);
1358 int32_t getMultiplier(
void)
const;
1370 virtual void setMultiplier(int32_t newValue);
1381 virtual double getRoundingIncrement(
void)
const;
1394 virtual void setRoundingIncrement(
double newValue);
1427 virtual int32_t getFormatWidth(
void)
const;
1443 virtual void setFormatWidth(int32_t width);
1520 virtual UBool isScientificNotation(
void)
const;
1537 virtual void setScientificNotation(
UBool useScientific);
1549 virtual int8_t getMinimumExponentDigits(
void)
const;
1563 virtual void setMinimumExponentDigits(int8_t minExpDig);
1577 virtual UBool isExponentSignAlwaysShown(
void)
const;
1592 virtual void setExponentSignAlwaysShown(
UBool expSignAlways);
1605 int32_t getGroupingSize(
void)
const;
1618 virtual void setGroupingSize(int32_t newValue);
1638 int32_t getSecondaryGroupingSize(
void)
const;
1651 virtual void setSecondaryGroupingSize(int32_t newValue);
1653 #ifndef U_HIDE_INTERNAL_API 1676 int32_t getMinimumGroupingDigits()
const;
1689 virtual void setMinimumGroupingDigits(int32_t newValue);
1700 UBool isDecimalSeparatorAlwaysShown(
void)
const;
1710 virtual void setDecimalSeparatorAlwaysShown(
UBool newValue);
1718 UBool isDecimalPatternMatchRequired(
void)
const;
1729 virtual void setDecimalPatternMatchRequired(
UBool newValue);
1829 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
1842 virtual void applyLocalizedPattern(
const UnicodeString& pattern,
1897 int32_t getMinimumSignificantDigits()
const;
1906 int32_t getMaximumSignificantDigits()
const;
1919 void setMinimumSignificantDigits(int32_t min);
1932 void setMaximumSignificantDigits(int32_t max);
1940 UBool areSignificantDigitsUsed()
const;
1949 void setSignificantDigitsUsed(
UBool useSignificantDigits);
1971 virtual void setCurrency(
const char16_t* theCurrency);
1989 #ifndef U_HIDE_DEPRECATED_API 1995 static const char fgNumberPatterns[];
1998 #ifndef U_HIDE_INTERNAL_API 2005 FixedDecimal getFixedDecimal(
double number,
UErrorCode &status)
const;
2021 FixedDecimal getFixedDecimal(DigitList &number,
UErrorCode &status)
const;
2029 VisibleDigitsWithExponent &initVisibleDigitsWithExponent(
2031 VisibleDigitsWithExponent &digits,
2040 VisibleDigitsWithExponent &initVisibleDigitsWithExponent(
2042 VisibleDigitsWithExponent &digits,
2052 VisibleDigitsWithExponent &initVisibleDigitsWithExponent(
2054 VisibleDigitsWithExponent &digits,
2106 void handleCurrencySignInPattern(
UErrorCode& status);
2111 char16_t* currency)
const;
2123 UBool complexCurrencyParsing,
2126 DigitList& digits,
UBool* status,
2127 char16_t* currency)
const;
2138 char16_t* currency)
const;
2140 int32_t skipPadding(
const UnicodeString& text, int32_t position)
const;
2147 UBool complexCurrencyParsing,
2149 char16_t* currency)
const;
2158 UBool lenient)
const;
2160 static int32_t skipPatternWhiteSpace(
const UnicodeString& text, int32_t pos);
2162 static int32_t skipUWhiteSpace(
const UnicodeString& text, int32_t pos);
2164 static int32_t skipUWhiteSpaceAndMarks(
const UnicodeString& text, int32_t pos);
2166 static int32_t skipBidiMarks(
const UnicodeString& text, int32_t pos);
2172 char16_t* currency)
const;
2195 void setupCurrencyAffixPatterns(
UErrorCode& status);
2198 double getCurrencyRounding(
const char16_t* currency,
2202 int getCurrencyFractionDigits(
const char16_t* currency,
2206 Hashtable* initHashForAffixPattern(
UErrorCode& status);
2208 void deleteHashForAffixPattern();
2210 void copyHashForAffixPattern(
const Hashtable* source,
2213 DecimalFormatImpl *fImpl;
2244 Hashtable* fAffixPatternsForCurrency;
2249 #if UCONFIG_HAVE_PARSEALLINPUT 2250 UNumberFormatAttributeValue fParseAllInput;
2254 const DecimalFormatStaticSets *fStaticSets;
2258 #ifndef U_HIDE_INTERNAL_API 2263 DigitList& _round(
const DigitList& number, DigitList& adjustedNum,
UBool& isNegative,
UErrorCode& status)
const;
enum bitset for boolean fields.
C++ API: FieldPosition Iterator.
UDisplayContext
Display context settings.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Limit of boolean attributes.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
C++ API: StringPiece: Read-only byte string wrapper class.
C++ API: Currency Amount Object.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
UNumberFormatStyle
The possible number format styles.
FieldPositionIterator returns the field ids and their start/limit positions generated by a call to Fo...
UCurrencyUsage
Currency Usage used for Decimal Format.
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
A mutable set of Unicode characters and multicharacter strings.
One below the first bitfield-boolean item.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
FieldPosition is a simple class used by Format and its subclasses to identify fields in formatted out...
C++ API: Symbols for formatting numbers.
ParsePosition is a simple class used by Format and its subclasses to keep track of the current positi...
C++ API: Locale ID object.
This class represents the information needed by DecimalFormat to format currency plural, such as "3.00 US dollars" or "1.00 US dollar".
A UParseError struct is used to returned detailed information about parsing errors.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
C++: internal template EnumSet<>
C++ API: Abstract base class for all number formats.
UNumberFormatAttribute
The possible UNumberFormat numeric attributes.
A string-like object that points to a sized piece of memory.
A currency together with a numeric amount, such as 200 USD.
int8_t UBool
The ICU boolean type.