36 #if !UCONFIG_NO_FORMATTING 48 class CurrencyPluralInfo;
49 class CompactDecimalFormat;
52 class LocalizedNumberFormatter;
53 class FormattedNumber;
55 class DecimalQuantity;
56 struct DecimalFormatFields;
62 class NumberParserImpl;
672 kPadBeforePrefix, kPadAfterPrefix, kPadBeforeSuffix, kPadAfterSuffix
735 #ifndef U_HIDE_INTERNAL_API 752 #if UCONFIG_HAVE_PARSEALLINPUT 757 void setParseAllInput(UNumberFormatAttributeValue value);
912 using NumberFormat::format;
927 #ifndef U_HIDE_INTERNAL_API 973 #ifndef U_HIDE_INTERNAL_API 1019 #ifndef U_HIDE_INTERNAL_API 1071 #ifndef U_HIDE_INTERNAL_API 1109 #endif // U_HIDE_INTERNAL_API 1111 using NumberFormat::parse;
1224 virtual void setPositivePrefix(
const UnicodeString& newValue);
1243 virtual void setNegativePrefix(
const UnicodeString& newValue);
1262 virtual void setPositiveSuffix(
const UnicodeString& newValue);
1281 virtual void setNegativeSuffix(
const UnicodeString& newValue);
1283 #ifndef U_HIDE_DRAFT_API 1292 UBool isSignAlwaysShown()
const;
1302 void setSignAlwaysShown(
UBool value);
1317 int32_t getMultiplier(
void)
const;
1332 virtual void setMultiplier(int32_t newValue);
1334 #ifndef U_HIDE_DRAFT_API 1347 int32_t getMultiplierScale(
void)
const;
1368 void setMultiplierScale(int32_t newValue);
1380 virtual double getRoundingIncrement(
void)
const;
1393 virtual void setRoundingIncrement(
double newValue);
1426 virtual int32_t getFormatWidth(
void)
const;
1442 virtual void setFormatWidth(int32_t width);
1519 virtual UBool isScientificNotation(
void)
const;
1536 virtual void setScientificNotation(
UBool useScientific);
1548 virtual int8_t getMinimumExponentDigits(
void)
const;
1562 virtual void setMinimumExponentDigits(int8_t minExpDig);
1576 virtual UBool isExponentSignAlwaysShown(
void)
const;
1591 virtual void setExponentSignAlwaysShown(
UBool expSignAlways);
1604 int32_t getGroupingSize(
void)
const;
1617 virtual void setGroupingSize(int32_t newValue);
1637 int32_t getSecondaryGroupingSize(
void)
const;
1650 virtual void setSecondaryGroupingSize(int32_t newValue);
1652 #ifndef U_HIDE_DRAFT_API 1676 int32_t getMinimumGroupingDigits()
const;
1688 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);
1731 #ifndef U_HIDE_DRAFT_API 1739 UBool isParseNoExponent()
const;
1749 void setParseNoExponent(
UBool value);
1758 UBool isParseCaseSensitive()
const;
1771 void setParseCaseSensitive(
UBool value);
1781 UBool isFormatFailIfMoreThanMaxDigits()
const;
1790 void setFormatFailIfMoreThanMaxDigits(
UBool value);
1913 void setMaximumIntegerDigits(int32_t newValue)
U_OVERRIDE;
1924 void setMinimumIntegerDigits(int32_t newValue)
U_OVERRIDE;
1935 void setMaximumFractionDigits(int32_t newValue)
U_OVERRIDE;
1946 void setMinimumFractionDigits(int32_t newValue)
U_OVERRIDE;
1955 int32_t getMinimumSignificantDigits()
const;
1964 int32_t getMaximumSignificantDigits()
const;
1977 void setMinimumSignificantDigits(int32_t min);
1990 void setMaximumSignificantDigits(int32_t max);
1998 UBool areSignificantDigitsUsed()
const;
2007 void setSignificantDigitsUsed(
UBool useSignificantDigits);
2028 virtual void setCurrency(
const char16_t* theCurrency);
2046 #ifndef U_HIDE_INTERNAL_API 2053 void formatToDecimalQuantity(
double number, number::impl::DecimalQuantity& output,
2062 void formatToDecimalQuantity(
const Formattable& number, number::impl::DecimalQuantity& output,
2067 #ifndef U_HIDE_DRAFT_API 2116 #ifndef U_HIDE_DEPRECATED_API 2143 static UClassID U_EXPORT2 getStaticClassID(
void);
2164 void touchNoError();
2177 void setPropertiesFromPattern(
const UnicodeString& pattern, int32_t ignoreRounding,
2180 const numparse::impl::NumberParserImpl* getParser(
UErrorCode& status)
const;
2182 const numparse::impl::NumberParserImpl* getCurrencyParser(
UErrorCode& status)
const;
2190 void setupFastFormat();
2192 bool fastFormatDouble(
double input,
UnicodeString& output)
const;
2194 bool fastFormatInt64(int64_t input,
UnicodeString& output)
const;
2196 void doFastFormatInt32(int32_t input,
bool isNegative,
UnicodeString& output)
const;
2205 number::impl::DecimalFormatFields* fields =
nullptr;
#define U_OVERRIDE
Defined to the C++11 "override" keyword if available.
C++ API: FieldPosition Iterator.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
#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.
#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: Compatibility APIs for number formatting.
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.