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

#include <WeekInformation.d.hpp>

Public Member Functions

icu4x::Weekday first_weekday () const
 
bool is_weekend (icu4x::Weekday day) const
 
std::unique_ptr< icu4x::WeekdaySetIteratorweekend () const
 

Static Public Member Functions

static diplomat::result< std::unique_ptr< icu4x::WeekInformation >, icu4x::DataErrorcreate (const icu4x::Locale &locale)
 
static diplomat::result< std::unique_ptr< icu4x::WeekInformation >, icu4x::DataErrorcreate_with_provider (const icu4x::DataProvider &provider, const icu4x::Locale &locale)
 
static void operator delete (void *ptr)
 

Detailed Description

A Week calculator, useful to be passed in to week_of_year() on Date and DateTime types

See the Rust documentation for WeekInformation for more information.

Member Function Documentation

◆ create()

diplomat::result< std::unique_ptr< icu4x::WeekInformation >, icu4x::DataError > icu4x::WeekInformation::create ( const icu4x::Locale & locale)
inlinestatic

Creates a new WeekInformation from locale data using compiled data.

See the Rust documentation for try_new for more information.

◆ create_with_provider()

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

Creates a new WeekInformation from locale data using a particular data source.

See the Rust documentation for try_new for more information.

◆ first_weekday()

icu4x::Weekday icu4x::WeekInformation::first_weekday ( ) const
inline

Returns the weekday that starts the week for this object's locale

See the Rust documentation for first_weekday for more information.

◆ is_weekend()

bool icu4x::WeekInformation::is_weekend ( icu4x::Weekday day) const
inline

See the Rust documentation for weekend for more information.

See the Rust documentation for contains for more information.

◆ operator delete()

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

◆ weekend()

std::unique_ptr< icu4x::WeekdaySetIterator > icu4x::WeekInformation::weekend ( ) const
inline

See the Rust documentation for weekend for more information.


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