ICU4X
International Components for Unicode
Loading...
Searching...
No Matches
icu4x::IanaParser Class Reference

#include <IanaParser.d.hpp>

Public Member Functions

std::unique_ptr< icu4x::TimeZoneparse (std::string_view value) const
 
std::unique_ptr< icu4x::TimeZoneIteratoriter () const
 

Static Public Member Functions

static std::unique_ptr< icu4x::IanaParsercreate ()
 
static diplomat::result< std::unique_ptr< icu4x::IanaParser >, icu4x::DataErrorcreate_with_provider (const icu4x::DataProvider &provider)
 
static void operator delete (void *ptr)
 

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 IanaParser for more information.

Member Function Documentation

◆ create()

std::unique_ptr< icu4x::IanaParser > icu4x::IanaParser::create ( )
inlinestatic

Create a new IanaParser using compiled data

See the Rust documentation for new for more information.

◆ create_with_provider()

diplomat::result< std::unique_ptr< icu4x::IanaParser >, icu4x::DataError > icu4x::IanaParser::create_with_provider ( const icu4x::DataProvider & provider)
inlinestatic

Create a new IanaParser using a particular data source

See the Rust documentation for new for more information.

◆ iter()

std::unique_ptr< icu4x::TimeZoneIterator > icu4x::IanaParser::iter ( ) const
inline

See the Rust documentation for iter for more information.

◆ operator delete()

void icu4x::IanaParser::operator delete ( void * ptr)
inlinestatic

◆ parse()

std::unique_ptr< icu4x::TimeZone > icu4x::IanaParser::parse ( std::string_view value) const
inline

See the Rust documentation for parse for more information.


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