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

#include <CalendarKind.d.hpp>

Public Types

enum  Value {
  Iso = 0 , Gregorian = 1 , Buddhist = 2 , Japanese = 3 ,
  JapaneseExtended = 4 , Ethiopian = 5 , EthiopianAmeteAlem = 6 , Indian = 7 ,
  Coptic = 8 , Dangi = 9 , Chinese = 10 , Hebrew = 11 ,
  HijriTabularTypeIIFriday = 12 , HijriSimulatedMecca = 18 , HijriTabularTypeIIThursday = 14 , HijriUmmAlQura = 15 ,
  Julian = 19 , Persian = 16 , Roc = 17
}
 

Public Member Functions

 CalendarKind ()
 
constexpr CalendarKind (Value v)
 
constexpr operator Value () const
 
 operator bool () const =delete
 

Static Public Member Functions

static icu4x::CalendarKind create (const icu4x::Locale &locale)
 

Detailed Description

The various calendar types currently supported by Calendar

See the Rust documentation for AnyCalendarKind for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Iso 

The kind of an Iso calendar

Gregorian 

The kind of a Gregorian calendar

Buddhist 

The kind of a Buddhist calendar

Japanese 

The kind of a Japanese calendar

JapaneseExtended 

Deprecated, use Japanese

Deprecated:
use Japanese
Ethiopian 

The kind of an Ethiopian calendar, with Amete Mihret era

EthiopianAmeteAlem 

The kind of an Ethiopian calendar, with Amete Alem era

Indian 

The kind of a Indian calendar

Coptic 

The kind of a Coptic calendar

Dangi 

The kind of a Dangi calendar

Chinese 

The kind of a Chinese calendar

Hebrew 

The kind of a Hebrew calendar

HijriTabularTypeIIFriday 

The kind of a Hijri tabular, type II leap years, Friday epoch, calendar

HijriSimulatedMecca 

The kind of a Hijri simulated, Mecca calendar

HijriTabularTypeIIThursday 

The kind of a Hijri tabular, type II leap years, Thursday epoch, calendar

HijriUmmAlQura 

The kind of a Hijri Umm al-Qura calendar

Julian 

The kind of a Julian calendar,

Persian 

The kind of a Persian calendar

Roc 

The kind of a Roc calendar

Constructor & Destructor Documentation

◆ CalendarKind() [1/2]

icu4x::CalendarKind::CalendarKind ( )
inline

◆ CalendarKind() [2/2]

constexpr icu4x::CalendarKind::CalendarKind ( Value  v)
inlineconstexpr

Member Function Documentation

◆ create()

icu4x::CalendarKind icu4x::CalendarKind::create ( const icu4x::Locale locale)
inlinestatic

Creates a new CalendarKind for the specified locale, using compiled data.

See the Rust documentation for try_new for more information.

◆ operator bool()

icu4x::CalendarKind::operator bool ( ) const
explicitdelete

◆ operator Value()

constexpr icu4x::CalendarKind::operator Value ( ) const
inlineconstexpr

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