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

#include <ICU4XRegionDisplayNames.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorof_to_writeable (const std::string_view region, W &write) const
 
diplomat::result< std::string, ICU4XErrorof (const std::string_view region) const
 
 ICU4XRegionDisplayNames (capi::ICU4XRegionDisplayNames *i)
 
 ICU4XRegionDisplayNames ()=default
 
 ICU4XRegionDisplayNames (ICU4XRegionDisplayNames &&) noexcept=default
 
ICU4XRegionDisplayNamesoperator= (ICU4XRegionDisplayNames &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XRegionDisplayNames, ICU4XErrorcreate (const ICU4XDataProvider &provider, const ICU4XLocale &locale)
 

Detailed Description

See the Rust documentation for RegionDisplayNames for more information.

Constructor & Destructor Documentation

◆ ICU4XRegionDisplayNames() [1/3]

ICU4XRegionDisplayNames::ICU4XRegionDisplayNames ( capi::ICU4XRegionDisplayNames * i)
inlineexplicit

◆ ICU4XRegionDisplayNames() [2/3]

ICU4XRegionDisplayNames::ICU4XRegionDisplayNames ( )
default

◆ ICU4XRegionDisplayNames() [3/3]

ICU4XRegionDisplayNames::ICU4XRegionDisplayNames ( ICU4XRegionDisplayNames && )
defaultnoexcept

Member Function Documentation

◆ create()

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

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

See the Rust documentation for try_new for more information.

◆ of()

diplomat::result< std::string, ICU4XError > ICU4XRegionDisplayNames::of ( const std::string_view region) const
inline

Returns the locale specific display name of a region. Note that the function returns an empty string in case the display name for a given region code is not found.

See the Rust documentation for of for more information.

◆ of_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XRegionDisplayNames::of_to_writeable ( const std::string_view region,
W & write ) const
inline

Returns the locale specific display name of a region. Note that the function returns an empty string in case the display name for a given region code is not found.

See the Rust documentation for of for more information.

◆ operator=()

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

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