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

#include <ICU4XTimeZoneIdMapperWithFastCanonicalization.hpp>

Public Member Functions

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, ICU4XErrorcanonical_iana_from_bcp47_to_writeable (const std::string_view value, W &write) const
 
diplomat::result< std::string, ICU4XErrorcanonical_iana_from_bcp47 (const std::string_view value) const
 
 ICU4XTimeZoneIdMapperWithFastCanonicalization (capi::ICU4XTimeZoneIdMapperWithFastCanonicalization *i)
 
 ICU4XTimeZoneIdMapperWithFastCanonicalization ()=default
 
 ICU4XTimeZoneIdMapperWithFastCanonicalization (ICU4XTimeZoneIdMapperWithFastCanonicalization &&) noexcept=default
 
ICU4XTimeZoneIdMapperWithFastCanonicalizationoperator= (ICU4XTimeZoneIdMapperWithFastCanonicalization &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XTimeZoneIdMapperWithFastCanonicalization, 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 TimeZoneIdMapperWithFastCanonicalization for more information.

Constructor & Destructor Documentation

◆ ICU4XTimeZoneIdMapperWithFastCanonicalization() [1/3]

ICU4XTimeZoneIdMapperWithFastCanonicalization::ICU4XTimeZoneIdMapperWithFastCanonicalization ( capi::ICU4XTimeZoneIdMapperWithFastCanonicalization * i)
inlineexplicit

◆ ICU4XTimeZoneIdMapperWithFastCanonicalization() [2/3]

ICU4XTimeZoneIdMapperWithFastCanonicalization::ICU4XTimeZoneIdMapperWithFastCanonicalization ( )
default

◆ ICU4XTimeZoneIdMapperWithFastCanonicalization() [3/3]

ICU4XTimeZoneIdMapperWithFastCanonicalization::ICU4XTimeZoneIdMapperWithFastCanonicalization ( ICU4XTimeZoneIdMapperWithFastCanonicalization && )
defaultnoexcept

Member Function Documentation

◆ canonical_iana_from_bcp47()

diplomat::result< std::string, ICU4XError > ICU4XTimeZoneIdMapperWithFastCanonicalization::canonical_iana_from_bcp47 ( const std::string_view value) const
inline

See the Rust documentation for canonical_iana_from_bcp47 for more information.

◆ canonical_iana_from_bcp47_to_writeable()

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

See the Rust documentation for canonical_iana_from_bcp47 for more information.

◆ canonicalize_iana()

diplomat::result< std::string, ICU4XError > ICU4XTimeZoneIdMapperWithFastCanonicalization::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 > ICU4XTimeZoneIdMapperWithFastCanonicalization::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< ICU4XTimeZoneIdMapperWithFastCanonicalization, ICU4XError > ICU4XTimeZoneIdMapperWithFastCanonicalization::create ( const ICU4XDataProvider & provider)
inlinestatic

See the Rust documentation for new for more information.

◆ operator=()

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

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