Go to the documentation of this file.
4 #ifndef __SIMPLENUMBERFORMATTERH__
5 #define __SIMPLENUMBERFORMATTERH__
9 #if U_SHOW_CPLUSPLUS_API
11 #if !UCONFIG_NO_FORMATTING
34 class SimpleDateFormat;
40 class UFormattedNumberData;
41 struct SimpleMicroProps;
42 class AdoptingSignumModifierStore;
69 void multiplyByPowerOfTen(int32_t power,
UErrorCode& status);
86 void setMaximumIntegerDigits(uint32_t maximumIntegerDigits,
UErrorCode& status);
93 void setMinimumIntegerDigits(uint32_t minimumIntegerDigits,
UErrorCode& status);
100 void setMinimumFractionDigits(uint32_t minimumFractionDigits,
UErrorCode& status);
139 other.fData =
nullptr;
151 other.fData =
nullptr;
162 impl::UFormattedNumberData* fData =
nullptr;
235 return format(SimpleNumber::forInt64(value, status), status);
238 #ifndef U_HIDE_INTERNAL_API
244 #endif // U_HIDE_INTERNAL_API
268 fGroupingStrategy = other.fGroupingStrategy;
269 fOwnedSymbols = other.fOwnedSymbols;
270 fMicros = other.fMicros;
271 fPatternModifier = other.fPatternModifier;
272 other.fOwnedSymbols =
nullptr;
273 other.fMicros =
nullptr;
274 other.fPatternModifier =
nullptr;
284 fGroupingStrategy = other.fGroupingStrategy;
285 fOwnedSymbols = other.fOwnedSymbols;
286 fMicros = other.fMicros;
287 fPatternModifier = other.fPatternModifier;
288 other.fOwnedSymbols =
nullptr;
289 other.fMicros =
nullptr;
290 other.fPatternModifier =
nullptr;
311 impl::SimpleMicroProps* fMicros =
nullptr;
312 impl::AdoptingSignumModifierStore* fPatternModifier =
nullptr;
323 #endif // __SIMPLENUMBERFORMATTERH__
Basic definitions for ICU, for both C and C++ APIs.
@ UNUM_GROUPING_AUTO
Display grouping using the default strategy for all locales.
UNumberFormatRoundingMode
The possible number format rounding modes.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
UMemory is the common ICU base class.
C++ API: Symbols for formatting numbers.
~SimpleNumber()
Destruct this SimpleNumber, cleaning up any memory it might own.
An input type for SimpleNumberFormatter.
UNumberGroupingStrategy
An enum declaring the strategy for when and how to display grouping separators (i....
SimpleNumber(SimpleNumber &&other) noexcept
SimpleNumber move constructor.
SimpleNumber & operator=(SimpleNumber &&other) noexcept
SimpleNumber move assignment.
A Locale object represents a specific geographical, political, or cultural region.