ICU4X
International Components for Unicode
|
#include <ICU4XFixedDecimalFormatter.hpp>
Public Member Functions | |
template<typename W > | |
diplomat::result< std::monostate, ICU4XError > | format_to_writeable (const ICU4XFixedDecimal &value, W &write) const |
diplomat::result< std::string, ICU4XError > | format (const ICU4XFixedDecimal &value) const |
ICU4XFixedDecimalFormatter (capi::ICU4XFixedDecimalFormatter *i) | |
ICU4XFixedDecimalFormatter ()=default | |
ICU4XFixedDecimalFormatter (ICU4XFixedDecimalFormatter &&) noexcept=default | |
ICU4XFixedDecimalFormatter & | operator= (ICU4XFixedDecimalFormatter &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XFixedDecimalFormatter, ICU4XError > | create_with_grouping_strategy (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XFixedDecimalGroupingStrategy grouping_strategy) |
static diplomat::result< ICU4XFixedDecimalFormatter, ICU4XError > | create_with_decimal_symbols_v1 (const ICU4XDataStruct &data_struct, ICU4XFixedDecimalGroupingStrategy grouping_strategy) |
An ICU4X Fixed Decimal Format object, capable of formatting a [ICU4XFixedDecimal
] as a string.
See the Rust documentation for FixedDecimalFormatter
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Creates a new [ICU4XFixedDecimalFormatter
] from preconstructed locale data in the form of an [ICU4XDataStruct
] constructed from ICU4XDataStruct::create_decimal_symbols()
.
The contents of the data struct will be consumed: if you wish to use the struct again it will have to be reconstructed. Passing a consumed struct to this method will return an error.
|
inlinestatic |
Creates a new [ICU4XFixedDecimalFormatter
] from locale data.
See the Rust documentation for try_new
for more information.
|
inline |
Formats a [ICU4XFixedDecimal
] to a string.
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XFixedDecimal
] to a string.
See the Rust documentation for format
for more information.
|
defaultnoexcept |