ICU4X
International Components for Unicode
|
#include <ICU4XDateTimeFormatter.hpp>
Public Member Functions | |
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 |
ICU4XDateTimeFormatter (capi::ICU4XDateTimeFormatter *i) | |
ICU4XDateTimeFormatter ()=default | |
ICU4XDateTimeFormatter (ICU4XDateTimeFormatter &&) noexcept=default | |
ICU4XDateTimeFormatter & | operator= (ICU4XDateTimeFormatter &&other) noexcept=default |
Static Public Member Functions | |
static diplomat::result< ICU4XDateTimeFormatter, ICU4XError > | create_with_lengths (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XDateLength date_length, ICU4XTimeLength time_length) |
An ICU4X DateFormatter object capable of formatting a [ICU4XDateTime
] as a string, using some calendar specified at runtime in the locale.
See the Rust documentation for DateTimeFormatter
for more information.
|
inlineexplicit |
|
default |
|
defaultnoexcept |
|
inlinestatic |
Creates a new [ICU4XDateTimeFormatter
] from locale data.
See the Rust documentation for try_new
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.
Will convert to this formatter's calendar first
See the Rust documentation for format
for more information.
|
inline |
Formats a [ICU4XIsoDateTime
] to a string.
Will convert to this formatter's calendar first
See the Rust documentation for format
for more information.
|
defaultnoexcept |