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

#include <PluralCategory.d.hpp>

Public Types

enum  Value {
  Zero = 0 , One = 1 , Two = 2 , Few = 3 ,
  Many = 4 , Other = 5
}
 

Public Member Functions

 PluralCategory ()=default
 
constexpr PluralCategory (Value v)
 
constexpr operator Value () const
 
 operator bool () const =delete
 

Static Public Member Functions

static std::optional< icu4x::PluralCategoryget_for_cldr_string (std::string_view s)
 

Detailed Description

See the Rust documentation for PluralCategory for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Zero 
One 
Two 
Few 
Many 
Other 

Constructor & Destructor Documentation

◆ PluralCategory() [1/2]

icu4x::PluralCategory::PluralCategory ( )
default

◆ PluralCategory() [2/2]

icu4x::PluralCategory::PluralCategory ( Value v)
inlineconstexpr

Member Function Documentation

◆ get_for_cldr_string()

std::optional< icu4x::PluralCategory > icu4x::PluralCategory::get_for_cldr_string ( std::string_view s)
inlinestatic

Construct from a string in the format specified in TR35

See the Rust documentation for get_for_cldr_string for more information.

See the Rust documentation for get_for_cldr_bytes for more information.

◆ operator bool()

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

◆ operator Value()

icu4x::PluralCategory::operator Value ( ) const
inlineconstexpr

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