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

#include <ICU4XTimeZoneIdMapper.hpp>

Public Member Functions

template<typename W>
diplomat::result< std::monostate, ICU4XErroriana_to_bcp47_to_writeable (const std::string_view value, W &write) const
 
diplomat::result< std::string, ICU4XErroriana_to_bcp47 (const std::string_view value) const
 
template<typename W>
diplomat::result< std::monostate, ICU4XErrornormalize_iana_to_writeable (const std::string_view value, W &write) const
 
diplomat::result< std::string, ICU4XErrornormalize_iana (const std::string_view value) const
 
template<typename W>
diplomat::result< std::monostate, ICU4XErrorcanonicalize_iana_to_writeable (const std::string_view value, W &write) const
 
diplomat::result< std::string, ICU4XErrorcanonicalize_iana (const std::string_view value) const
 
template<typename W>
diplomat::result< std::monostate, ICU4XErrorfind_canonical_iana_from_bcp47_to_writeable (const std::string_view value, W &write) const
 
diplomat::result< std::string, ICU4XErrorfind_canonical_iana_from_bcp47 (const std::string_view value) const
 
 ICU4XTimeZoneIdMapper (capi::ICU4XTimeZoneIdMapper *i)
 
 ICU4XTimeZoneIdMapper ()=default
 
 ICU4XTimeZoneIdMapper (ICU4XTimeZoneIdMapper &&) noexcept=default
 
ICU4XTimeZoneIdMapperoperator= (ICU4XTimeZoneIdMapper &&other) noexcept=default
 

Static Public Member Functions

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

Detailed Description

A mapper between IANA time zone identifiers and BCP-47 time zone identifiers.

This mapper supports two-way mapping, but it is optimized for the case of IANA to BCP-47. It also supports normalizing and canonicalizing the IANA strings.

See the Rust documentation for TimeZoneIdMapper for more information.

Constructor & Destructor Documentation

◆ ICU4XTimeZoneIdMapper() [1/3]

ICU4XTimeZoneIdMapper::ICU4XTimeZoneIdMapper ( capi::ICU4XTimeZoneIdMapper * i)
inlineexplicit

◆ ICU4XTimeZoneIdMapper() [2/3]

ICU4XTimeZoneIdMapper::ICU4XTimeZoneIdMapper ( )
default

◆ ICU4XTimeZoneIdMapper() [3/3]

ICU4XTimeZoneIdMapper::ICU4XTimeZoneIdMapper ( ICU4XTimeZoneIdMapper && )
defaultnoexcept

Member Function Documentation

◆ canonicalize_iana()

diplomat::result< std::string, ICU4XError > ICU4XTimeZoneIdMapper::canonicalize_iana ( const std::string_view value) const
inline

See the Rust documentation for canonicalize_iana for more information.

◆ canonicalize_iana_to_writeable()

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

See the Rust documentation for canonicalize_iana for more information.

◆ create()

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

See the Rust documentation for new for more information.

◆ find_canonical_iana_from_bcp47()

diplomat::result< std::string, ICU4XError > ICU4XTimeZoneIdMapper::find_canonical_iana_from_bcp47 ( const std::string_view value) const
inline

◆ find_canonical_iana_from_bcp47_to_writeable()

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

◆ iana_to_bcp47()

diplomat::result< std::string, ICU4XError > ICU4XTimeZoneIdMapper::iana_to_bcp47 ( const std::string_view value) const
inline

See the Rust documentation for iana_to_bcp47 for more information.

◆ iana_to_bcp47_to_writeable()

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

See the Rust documentation for iana_to_bcp47 for more information.

◆ normalize_iana()

diplomat::result< std::string, ICU4XError > ICU4XTimeZoneIdMapper::normalize_iana ( const std::string_view value) const
inline

See the Rust documentation for normalize_iana for more information.

◆ normalize_iana_to_writeable()

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

See the Rust documentation for normalize_iana for more information.

◆ operator=()

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

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