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

#include <ICU4XCalendar.hpp>

Public Member Functions

ICU4XAnyCalendarKind kind () const
 
 ICU4XCalendar (capi::ICU4XCalendar *i)
 
 ICU4XCalendar ()=default
 
 ICU4XCalendar (ICU4XCalendar &&) noexcept=default
 
ICU4XCalendaroperator= (ICU4XCalendar &&other) noexcept=default
 

Static Public Member Functions

static diplomat::result< ICU4XCalendar, ICU4XErrorcreate_for_locale (const ICU4XDataProvider &provider, const ICU4XLocale &locale)
 
static diplomat::result< ICU4XCalendar, ICU4XErrorcreate_for_kind (const ICU4XDataProvider &provider, ICU4XAnyCalendarKind kind)
 

Detailed Description

See the Rust documentation for AnyCalendar for more information.

Constructor & Destructor Documentation

◆ ICU4XCalendar() [1/3]

ICU4XCalendar::ICU4XCalendar ( capi::ICU4XCalendar * i)
inlineexplicit

◆ ICU4XCalendar() [2/3]

ICU4XCalendar::ICU4XCalendar ( )
default

◆ ICU4XCalendar() [3/3]

ICU4XCalendar::ICU4XCalendar ( ICU4XCalendar && )
defaultnoexcept

Member Function Documentation

◆ create_for_kind()

diplomat::result< ICU4XCalendar, ICU4XError > ICU4XCalendar::create_for_kind ( const ICU4XDataProvider & provider,
ICU4XAnyCalendarKind kind )
inlinestatic

Creates a new [ICU4XCalendar] from the specified date and time.

See the Rust documentation for new for more information.

◆ create_for_locale()

diplomat::result< ICU4XCalendar, ICU4XError > ICU4XCalendar::create_for_locale ( const ICU4XDataProvider & provider,
const ICU4XLocale & locale )
inlinestatic

Creates a new [ICU4XCalendar] from the specified date and time.

See the Rust documentation for new_for_locale for more information.

◆ kind()

ICU4XAnyCalendarKind ICU4XCalendar::kind ( ) const
inline

Returns the kind of this calendar

See the Rust documentation for kind for more information.

◆ operator=()

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

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