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

#include <ICU4XIanaToBcp47Mapper.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErrorget_to_writeable (const std::string_view value, W &write) const
 
diplomat::result< std::string, ICU4XErrorget (const std::string_view value) const
 
 ICU4XIanaToBcp47Mapper (capi::ICU4XIanaToBcp47Mapper *i)
 
 ICU4XIanaToBcp47Mapper ()=default
 
 ICU4XIanaToBcp47Mapper (ICU4XIanaToBcp47Mapper &&) noexcept=default
 
ICU4XIanaToBcp47Mapperoperator= (ICU4XIanaToBcp47Mapper &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XIanaToBcp47Mapper, ICU4XErrorcreate (const ICU4XDataProvider &provider)
 

Detailed Description

An object capable of mapping from an IANA time zone ID to a BCP-47 ID.

This can be used via try_set_iana_time_zone_id() on [ICU4XCustomTimeZone].

See the Rust documentation for IanaToBcp47Mapper for more information.

Constructor & Destructor Documentation

◆ ICU4XIanaToBcp47Mapper() [1/3]

ICU4XIanaToBcp47Mapper::ICU4XIanaToBcp47Mapper ( capi::ICU4XIanaToBcp47Mapper * i)
inlineexplicit

◆ ICU4XIanaToBcp47Mapper() [2/3]

ICU4XIanaToBcp47Mapper::ICU4XIanaToBcp47Mapper ( )
default

◆ ICU4XIanaToBcp47Mapper() [3/3]

ICU4XIanaToBcp47Mapper::ICU4XIanaToBcp47Mapper ( ICU4XIanaToBcp47Mapper && )
defaultnoexcept

Member Function Documentation

◆ create()

diplomat::result< ICU4XIanaToBcp47Mapper, ICU4XError > ICU4XIanaToBcp47Mapper::create ( const ICU4XDataProvider & provider)
inlinestatic

See the Rust documentation for new for more information.

◆ get()

diplomat::result< std::string, ICU4XError > ICU4XIanaToBcp47Mapper::get ( const std::string_view value) const
inline

See the Rust documentation for get for more information.

See the Rust documentation for iana_to_bcp47 for more information.

◆ get_to_writeable()

template<typename W>
diplomat::result< std::monostate, ICU4XError > ICU4XIanaToBcp47Mapper::get_to_writeable ( const std::string_view value,
W & write ) const
inline

See the Rust documentation for get for more information.

See the Rust documentation for iana_to_bcp47 for more information.

◆ operator=()

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

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