ICU4X
International Components for Unicode
|
#include <ICU4XTimeFormatter.hpp>
Public Member Functions | |
template<typename W> | |
diplomat::result< std::monostate, ICU4XError > | format_time_to_writeable (const ICU4XTime &value, W &write) const |
diplomat::result< std::string, ICU4XError > | format_time (const ICU4XTime &value) const |
template<typename W> | |
diplomat::result< std::monostate, ICU4XError > | format_datetime_to_writeable (const ICU4XDateTime &value, W &write) const |
diplomat::result< std::string, ICU4XError > | format_datetime (const ICU4XDateTime &value) const |
template<typename W> | |
diplomat::result< std::monostate, ICU4XError > | format_iso_datetime_to_writeable (const ICU4XIsoDateTime &value, W &write) const |
diplomat::result< std::string, ICU4XError > | format_iso_datetime (const ICU4XIsoDateTime &value) const |
ICU4XTimeFormatter (capi::ICU4XTimeFormatter *i) | |
ICU4XTimeFormatter ()=default | |
ICU4XTimeFormatter (ICU4XTimeFormatter &&) noexcept=default | |
ICU4XTimeFormatter & | operator= (ICU4XTimeFormatter &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XTimeFormatter, ICU4XError > | create_with_length (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XTimeLength length) |
An ICU4X TimeFormatter object capable of formatting an [ICU4XTime
] type (and others) as a string
See the Rust documentation for TimeFormatter
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Creates a new [ICU4XTimeFormatter
] from locale data.
See the Rust documentation for try_new_with_length
for more information.
|
inline |
Formats a [ICU4XDateTime
] to a string.
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XDateTime
] to a string.
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XIsoDateTime
] to a string.
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XIsoDateTime
] to a string.
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XTime
] to a string.
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XTime
] to a string.
See the Rust documentation for format
for more information.
|
defaultnoexcept |