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

#include <ICU4XBcp47ToIanaMapper.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
 
 ICU4XBcp47ToIanaMapper (capi::ICU4XBcp47ToIanaMapper *i)
 
 ICU4XBcp47ToIanaMapper ()=default
 
 ICU4XBcp47ToIanaMapper (ICU4XBcp47ToIanaMapper &&) noexcept=default
 
ICU4XBcp47ToIanaMapperoperator= (ICU4XBcp47ToIanaMapper &&other) noexcept=default
 

Static Public Member Functions

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

Detailed Description

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

See the Rust documentation for IanaBcp47RoundTripMapper for more information.

Constructor & Destructor Documentation

◆ ICU4XBcp47ToIanaMapper() [1/3]

ICU4XBcp47ToIanaMapper::ICU4XBcp47ToIanaMapper ( capi::ICU4XBcp47ToIanaMapper * i)
inlineexplicit

◆ ICU4XBcp47ToIanaMapper() [2/3]

ICU4XBcp47ToIanaMapper::ICU4XBcp47ToIanaMapper ( )
default

◆ ICU4XBcp47ToIanaMapper() [3/3]

ICU4XBcp47ToIanaMapper::ICU4XBcp47ToIanaMapper ( ICU4XBcp47ToIanaMapper && )
defaultnoexcept

Member Function Documentation

◆ create()

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

See the Rust documentation for new for more information.

◆ get()

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

Writes out the canonical IANA time zone ID corresponding to the given BCP-47 ID.

See the Rust documentation for bcp47_to_iana for more information.

◆ get_to_writeable()

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

Writes out the canonical IANA time zone ID corresponding to the given BCP-47 ID.

See the Rust documentation for bcp47_to_iana for more information.

◆ operator=()

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

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