|
ICU 65.1 65.1
|
A class that defines the strategy for padding and truncating integers before the decimal separator. More...
#include <numberformatter.h>
Public Member Functions | |
| IntegerWidth | truncateAt (int32_t maxInt) |
| Truncate numbers exceeding a certain number of numerals before the decimal separator. | |
Static Public Member Functions | |
| static IntegerWidth | zeroFillTo (int32_t minInt) |
| Pad numbers at the beginning with zeros to guarantee a certain number of numerals before the decimal separator. | |
Friends | |
| struct | impl::MacroProps |
| struct | impl::MicroProps |
| class | impl::NumberFormatterImpl |
| class | impl::NumberPropertyMapper |
| class | impl::GeneratorHelpers |
A class that defines the strategy for padding and truncating integers before the decimal separator.
To create an IntegerWidth, use one of the factory methods.
Definition at line 908 of file numberformatter.h.
| IntegerWidth icu::number::IntegerWidth::truncateAt | ( | int32_t | maxInt | ) |
Truncate numbers exceeding a certain number of numerals before the decimal separator.
For example, with maxInt=3, the number 1234 will get printed as "234".
| maxInt | The maximum number of places before the decimal separator. maxInt == -1 means no truncation. |
|
static |
Pad numbers at the beginning with zeros to guarantee a certain number of numerals before the decimal separator.
For example, with minInt=3, the number 55 will get printed as "055".
| minInt | The minimum number of places before the decimal separator. |
Definition at line 990 of file numberformatter.h.
Definition at line 980 of file numberformatter.h.
Definition at line 981 of file numberformatter.h.
Definition at line 984 of file numberformatter.h.
Definition at line 987 of file numberformatter.h.
| UErrorCode icu::number::IntegerWidth::errorCode |
Definition at line 943 of file numberformatter.h.
| bool icu::number::IntegerWidth::fFormatFailIfMoreThanMaxDigits |
Definition at line 941 of file numberformatter.h.
| impl::digits_t icu::number::IntegerWidth::fMaxInt |
Definition at line 940 of file numberformatter.h.
| impl::digits_t icu::number::IntegerWidth::fMinInt |
Definition at line 939 of file numberformatter.h.