ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
ICU4XGregorianDateTimeFormatter Class Reference

#include <ICU4XGregorianDateTimeFormatter.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorformat_iso_datetime_to_writeable (const ICU4XIsoDateTime &value, W &write) const
 
diplomat::result< std::string, ICU4XErrorformat_iso_datetime (const ICU4XIsoDateTime &value) const
 
 ICU4XGregorianDateTimeFormatter (capi::ICU4XGregorianDateTimeFormatter *i)
 
 ICU4XGregorianDateTimeFormatter ()=default
 
 ICU4XGregorianDateTimeFormatter (ICU4XGregorianDateTimeFormatter &&) noexcept=default
 
ICU4XGregorianDateTimeFormatteroperator= (ICU4XGregorianDateTimeFormatter &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XGregorianDateTimeFormatter, ICU4XErrorcreate_with_lengths (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XDateLength date_length, ICU4XTimeLength time_length)
 

Detailed Description

An ICU4X TypedDateTimeFormatter object capable of formatting a [ICU4XIsoDateTime] as a string, using the Gregorian Calendar.

See the Rust documentation for TypedDateTimeFormatter for more information.

Constructor & Destructor Documentation

◆ ICU4XGregorianDateTimeFormatter() [1/3]

ICU4XGregorianDateTimeFormatter::ICU4XGregorianDateTimeFormatter ( capi::ICU4XGregorianDateTimeFormatter * i)
inlineexplicit

◆ ICU4XGregorianDateTimeFormatter() [2/3]

ICU4XGregorianDateTimeFormatter::ICU4XGregorianDateTimeFormatter ( )
default

◆ ICU4XGregorianDateTimeFormatter() [3/3]

ICU4XGregorianDateTimeFormatter::ICU4XGregorianDateTimeFormatter ( ICU4XGregorianDateTimeFormatter && )
defaultnoexcept

Member Function Documentation

◆ create_with_lengths()

diplomat::result< ICU4XGregorianDateTimeFormatter, ICU4XError > ICU4XGregorianDateTimeFormatter::create_with_lengths ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XDateLength date_length,
ICU4XTimeLength time_length )
inlinestatic

Creates a new [ICU4XGregorianDateFormatter] from locale data.

See the Rust documentation for try_new for more information.

◆ format_iso_datetime()

diplomat::result< std::string, ICU4XError > ICU4XGregorianDateTimeFormatter::format_iso_datetime ( const ICU4XIsoDateTime & value) const
inline

Formats a [ICU4XIsoDateTime] to a string.

See the Rust documentation for format for more information.

◆ format_iso_datetime_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XGregorianDateTimeFormatter::format_iso_datetime_to_writeable ( const ICU4XIsoDateTime & value,
W & write ) const
inline

Formats a [ICU4XIsoDateTime] to a string.

See the Rust documentation for format for more information.

◆ operator=()

ICU4XGregorianDateTimeFormatter & ICU4XGregorianDateTimeFormatter::operator= ( ICU4XGregorianDateTimeFormatter && other)
defaultnoexcept

The documentation for this class was generated from the following file: