Go to the documentation of this file.
4 #ifndef __SIMPLENUMBERFORMATTERH__
5 #define __SIMPLENUMBERFORMATTERH__
9 #if U_SHOW_CPLUSPLUS_API
11 #if !UCONFIG_NO_FORMATTING
38 class UFormattedNumberData;
39 struct SimpleMicroProps;
40 class AdoptingSignumModifierStore;
44 #ifndef U_HIDE_DRAFT_API
70 void multiplyByPowerOfTen(int32_t power,
UErrorCode& status);
88 void truncateStart(uint32_t maximumIntegerDigits,
UErrorCode& status);
97 void setMinimumIntegerDigits(uint32_t minimumIntegerDigits,
UErrorCode& status);
106 void setMinimumFractionDigits(uint32_t minimumFractionDigits,
UErrorCode& status);
145 other.fData =
nullptr;
157 other.fData =
nullptr;
168 impl::UFormattedNumberData* fData =
nullptr;
238 return format(SimpleNumber::forInt64(value, status), status);
241 #ifndef U_HIDE_INTERNAL_API
247 #endif // U_HIDE_INTERNAL_API
271 fGroupingStrategy = other.fGroupingStrategy;
272 fOwnedSymbols = other.fOwnedSymbols;
273 fMicros = other.fMicros;
274 fPatternModifier = other.fPatternModifier;
275 other.fOwnedSymbols =
nullptr;
276 other.fMicros =
nullptr;
277 other.fPatternModifier =
nullptr;
287 fGroupingStrategy = other.fGroupingStrategy;
288 fOwnedSymbols = other.fOwnedSymbols;
289 fMicros = other.fMicros;
290 fPatternModifier = other.fPatternModifier;
291 other.fOwnedSymbols =
nullptr;
292 other.fMicros =
nullptr;
293 other.fPatternModifier =
nullptr;
314 impl::SimpleMicroProps* fMicros =
nullptr;
315 impl::AdoptingSignumModifierStore* fPatternModifier =
nullptr;
319 #endif // U_HIDE_DRAFT_API
328 #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.