A class that defines a quantity by which a number should be multiplied when formatting.
More...
#include <numberformatter.h>
|
struct | impl::MacroProps |
|
struct | impl::MicroProps |
|
class | impl::NumberFormatterImpl |
|
class | impl::MultiplierFormatHandler |
|
class | impl::GeneratorHelpers |
|
class | ::icu::numparse::impl::NumberParserImpl |
|
class | ::icu::numparse::impl::MultiplierParseHandler |
|
A class that defines a quantity by which a number should be multiplied when formatting.
To create a Scale, use one of the factory methods.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
Definition at line 1047 of file numberformatter.h.
icu::number::Scale::Scale |
( |
const Scale & |
other | ) |
|
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
icu::number::Scale::Scale |
( |
Scale && |
src | ) |
|
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
icu::number::Scale::~Scale |
( |
| ) |
|
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
icu::number::Scale::Scale |
( |
int32_t |
magnitude, |
|
|
impl::DecNum * |
arbitraryToAdopt |
|
) |
| |
- Internal:
- Do not use. This API is for internal use only.
Multiply numbers by an arbitrary value before formatting.
Useful for unit conversions.
This method takes a string in a decimal number format with syntax as defined in the Decimal Arithmetic Specification, available at http://speleotrove.com/decimal
Also see the version of this method that takes a double.
- Returns
- A Scale for passing to the setter in NumberFormatter.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
static Scale icu::number::Scale::byDouble |
( |
double |
multiplicand | ) |
|
|
static |
Multiply numbers by an arbitrary value before formatting.
Useful for unit conversions.
This method takes a double; also see the version of this method that takes an exact decimal.
- Returns
- A Scale for passing to the setter in NumberFormatter.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
static Scale icu::number::Scale::byDoubleAndPowerOfTen |
( |
double |
multiplicand, |
|
|
int32_t |
power |
|
) |
| |
|
static |
Multiply a number by both a power of ten and by an arbitrary double value.
- Returns
- A Scale for passing to the setter in NumberFormatter.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
static Scale icu::number::Scale::none |
( |
| ) |
|
|
static |
Do not change the value of numbers when formatting or parsing.
- Returns
- A Scale to prevent any multiplication.
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
Scale& icu::number::Scale::operator= |
( |
const Scale & |
other | ) |
|
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
Scale& icu::number::Scale::operator= |
( |
Scale && |
src | ) |
|
- Draft:
- This API may be changed in the future versions and was introduced in ICU 62
static Scale icu::number::Scale::powerOfTen |
( |
int32_t |
power | ) |
|
|
static |
The documentation for this class was generated from the following file: