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

#include <NumericType.d.hpp>

Public Types

enum  Value { None = 0 , Decimal = 1 , Digit = 2 , Numeric = 3 }
 

Public Member Functions

 NumericType ()
 
constexpr NumericType (Value v)
 
constexpr operator Value () const
 
 operator bool () const =delete
 
std::optional< std::string_view > long_name () const
 
std::optional< std::string_view > short_name () const
 
uint8_t to_integer_value () const
 

Static Public Member Functions

static icu4x::NumericType for_char (char32_t ch)
 
static std::optional< icu4x::NumericTypefrom_integer_value (uint8_t other)
 
static std::optional< icu4x::NumericTypetry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for NumericType for more information.

Member Enumeration Documentation

◆ Value

Enumerator
None 

See the Rust documentation for None for more information.

Decimal 

See the Rust documentation for Decimal for more information.

Digit 

See the Rust documentation for Digit for more information.

Numeric 

See the Rust documentation for Numeric for more information.

Constructor & Destructor Documentation

◆ NumericType() [1/2]

icu4x::NumericType::NumericType ( )
inline

◆ NumericType() [2/2]

icu4x::NumericType::NumericType ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

icu4x::NumericType icu4x::NumericType::for_char ( char32_t ch)
inlinestatic

See the Rust documentation for for_char for more information.

◆ from_integer_value()

std::optional< icu4x::NumericType > icu4x::NumericType::from_integer_value ( uint8_t other)
inlinestatic

Convert from an integer value from ICU4C or CodePointMapData

See the Rust documentation for from_icu4c_value for more information.

◆ long_name()

std::optional< std::string_view > icu4x::NumericType::long_name ( ) const
inline

Get the "long" name of this property value (returns empty if property value is unknown)

See the Rust documentation for get for more information.

◆ operator bool()

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

◆ operator Value()

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

◆ short_name()

std::optional< std::string_view > icu4x::NumericType::short_name ( ) const
inline

Get the "short" name of this property value (returns empty if property value is unknown)

See the Rust documentation for get for more information.

◆ to_integer_value()

uint8_t icu4x::NumericType::to_integer_value ( ) const
inline

Convert to an integer value usable with ICU4C and CodePointMapData

See the Rust documentation for to_icu4c_value for more information.

◆ try_from_str()

std::optional< icu4x::NumericType > icu4x::NumericType::try_from_str ( std::string_view s)
inlinestatic

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