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

#include <ICU4XLocaleDisplayNamesFormatter.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorof_to_writeable (const ICU4XLocale &locale, W &write) const
 
diplomat::result< std::string, ICU4XErrorof (const ICU4XLocale &locale) const
 
 ICU4XLocaleDisplayNamesFormatter (capi::ICU4XLocaleDisplayNamesFormatter *i)
 
 ICU4XLocaleDisplayNamesFormatter ()=default
 
 ICU4XLocaleDisplayNamesFormatter (ICU4XLocaleDisplayNamesFormatter &&) noexcept=default
 
ICU4XLocaleDisplayNamesFormatteroperator= (ICU4XLocaleDisplayNamesFormatter &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XLocaleDisplayNamesFormatter, ICU4XErrorcreate (const ICU4XDataProvider &provider, const ICU4XLocale &locale, ICU4XDisplayNamesOptionsV1 options)
 

Detailed Description

Constructor & Destructor Documentation

◆ ICU4XLocaleDisplayNamesFormatter() [1/3]

ICU4XLocaleDisplayNamesFormatter::ICU4XLocaleDisplayNamesFormatter ( capi::ICU4XLocaleDisplayNamesFormatter * i)
inlineexplicit

◆ ICU4XLocaleDisplayNamesFormatter() [2/3]

ICU4XLocaleDisplayNamesFormatter::ICU4XLocaleDisplayNamesFormatter ( )
default

◆ ICU4XLocaleDisplayNamesFormatter() [3/3]

ICU4XLocaleDisplayNamesFormatter::ICU4XLocaleDisplayNamesFormatter ( ICU4XLocaleDisplayNamesFormatter && )
defaultnoexcept

Member Function Documentation

◆ create()

diplomat::result< ICU4XLocaleDisplayNamesFormatter, ICU4XError > ICU4XLocaleDisplayNamesFormatter::create ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale,
ICU4XDisplayNamesOptionsV1 options )
inlinestatic

Creates a new LocaleDisplayNamesFormatter from locale data and an options bag.

See the Rust documentation for try_new for more information.

◆ of()

diplomat::result< std::string, ICU4XError > ICU4XLocaleDisplayNamesFormatter::of ( const ICU4XLocale & locale) const
inline

Returns the locale-specific display name of a locale.

See the Rust documentation for of for more information.

◆ of_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XLocaleDisplayNamesFormatter::of_to_writeable ( const ICU4XLocale & locale,
W & write ) const
inline

Returns the locale-specific display name of a locale.

See the Rust documentation for of for more information.

◆ operator=()

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

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