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

#include <ICU4XListFormatter.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorformat_to_writeable (const ICU4XList &list, W &write) const
 
diplomat::result< std::string, ICU4XErrorformat (const ICU4XList &list) const
 
 ICU4XListFormatter (capi::ICU4XListFormatter *i)
 
 ICU4XListFormatter ()=default
 
 ICU4XListFormatter (ICU4XListFormatter &&) noexcept=default
 
ICU4XListFormatteroperator= (ICU4XListFormatter &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XListFormatter, ICU4XErrorcreate_and_with_length (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XListLength length)
 
static diplomat::result< ICU4XListFormatter, ICU4XErrorcreate_or_with_length (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XListLength length)
 
static diplomat::result< ICU4XListFormatter, ICU4XErrorcreate_unit_with_length (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XListLength length)
 

Detailed Description

See the Rust documentation for ListFormatter for more information.

Constructor & Destructor Documentation

◆ ICU4XListFormatter() [1/3]

ICU4XListFormatter::ICU4XListFormatter ( capi::ICU4XListFormatter * i)
inlineexplicit

◆ ICU4XListFormatter() [2/3]

ICU4XListFormatter::ICU4XListFormatter ( )
default

◆ ICU4XListFormatter() [3/3]

ICU4XListFormatter::ICU4XListFormatter ( ICU4XListFormatter && )
defaultnoexcept

Member Function Documentation

◆ create_and_with_length()

diplomat::result< ICU4XListFormatter, ICU4XError > ICU4XListFormatter::create_and_with_length ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XListLength length )
inlinestatic

Construct a new ICU4XListFormatter instance for And patterns

See the Rust documentation for try_new_and_with_length for more information.

◆ create_or_with_length()

diplomat::result< ICU4XListFormatter, ICU4XError > ICU4XListFormatter::create_or_with_length ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XListLength length )
inlinestatic

Construct a new ICU4XListFormatter instance for And patterns

See the Rust documentation for try_new_or_with_length for more information.

◆ create_unit_with_length()

diplomat::result< ICU4XListFormatter, ICU4XError > ICU4XListFormatter::create_unit_with_length ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XListLength length )
inlinestatic

Construct a new ICU4XListFormatter instance for And patterns

See the Rust documentation for try_new_unit_with_length for more information.

◆ format()

diplomat::result< std::string, ICU4XError > ICU4XListFormatter::format ( const ICU4XList & list) const
inline

See the Rust documentation for format for more information.

◆ format_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XListFormatter::format_to_writeable ( const ICU4XList & list,
W & write ) const
inline

See the Rust documentation for format for more information.

◆ operator=()

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

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