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

#include <PluralRulesWithRanges.d.hpp>

Public Member Functions

icu4x::PluralCategory category_for_range (const icu4x::PluralOperands &start, const icu4x::PluralOperands &end) const
 
icu4x::PluralCategory category_for (const icu4x::PluralOperands &op) const
 
icu4x::PluralCategories categories () const
 
icu4x::PluralCategory resolve_range (icu4x::PluralCategory start, icu4x::PluralCategory end) const
 

Static Public Member Functions

static icu4x::diplomat::result< std::unique_ptr< icu4x::PluralRulesWithRanges >, icu4x::DataError > create_cardinal (const icu4x::Locale &locale)
 
static icu4x::diplomat::result< std::unique_ptr< icu4x::PluralRulesWithRanges >, icu4x::DataError > create_cardinal_with_provider (const icu4x::DataProvider &provider, const icu4x::Locale &locale)
 
static icu4x::diplomat::result< std::unique_ptr< icu4x::PluralRulesWithRanges >, icu4x::DataError > create_ordinal (const icu4x::Locale &locale)
 
static icu4x::diplomat::result< std::unique_ptr< icu4x::PluralRulesWithRanges >, icu4x::DataError > create_ordinal_with_provider (const icu4x::DataProvider &provider, const icu4x::Locale &locale)
 
static void operator delete (void *ptr)
 

Detailed Description

See the Rust documentation for PluralRulesWithRanges for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

Member Function Documentation

◆ categories()

icu4x::PluralCategories icu4x::PluralRulesWithRanges::categories ( ) const
inline

Get all of the categories needed in the current locale

See the Rust documentation for categories for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ category_for()

icu4x::PluralCategory icu4x::PluralRulesWithRanges::category_for ( const icu4x::PluralOperands &  op) const
inline

Get the category for a given number represented as operands

See the Rust documentation for category_for for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ category_for_range()

icu4x::PluralCategory icu4x::PluralRulesWithRanges::category_for_range ( const icu4x::PluralOperands &  start,
const icu4x::PluralOperands &  end 
) const
inline

Get the category for a given number represented as operands

See the Rust documentation for category_for_range for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ create_cardinal()

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

construct a PluralRulesWithRanges for the given locale, for cardinal numbers, using compiled data.

See the Rust documentation for try_new_cardinal for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ create_cardinal_with_provider()

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

construct a PluralRulesWithRanges for the given locale, for cardinal numbers, using a particular data source.

See the Rust documentation for try_new_cardinal for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ create_ordinal()

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

Construct a PluralRulesWithRanges for the given locale, for ordinal numbers, using compiled data.

See the Rust documentation for try_new_ordinal for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ create_ordinal_with_provider()

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

Construct a PluralRulesWithRanges for the given locale, for ordinal numbers, using a particular data source.

See the Rust documentation for try_new_ordinal for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.

◆ operator delete()

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

◆ resolve_range()

icu4x::PluralCategory icu4x::PluralRulesWithRanges::resolve_range ( icu4x::PluralCategory  start,
icu4x::PluralCategory  end 
) const
inline

Resolves the plural category for a given range of categories.

See the Rust documentation for resolve_range for more information.

🚧 This API is unstable and may experience breaking changes outside major releases.


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