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

#include <EastAsianWidth.d.hpp>

Public Types

enum  Value {
  Neutral = 0 , Ambiguous = 1 , Halfwidth = 2 , Fullwidth = 3 ,
  Narrow = 4 , Wide = 5
}
 

Public Member Functions

 EastAsianWidth ()
 
constexpr EastAsianWidth (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::EastAsianWidth for_char (char32_t ch)
 
static std::optional< icu4x::EastAsianWidthfrom_integer_value (uint8_t other)
 
static std::optional< icu4x::EastAsianWidthtry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for EastAsianWidth for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Neutral 

See the Rust documentation for Neutral for more information.

Ambiguous 

See the Rust documentation for Ambiguous for more information.

Halfwidth 

See the Rust documentation for Halfwidth for more information.

Fullwidth 

See the Rust documentation for Fullwidth for more information.

Narrow 

See the Rust documentation for Narrow for more information.

Wide 

See the Rust documentation for Wide for more information.

Constructor & Destructor Documentation

◆ EastAsianWidth() [1/2]

icu4x::EastAsianWidth::EastAsianWidth ( )
inline

◆ EastAsianWidth() [2/2]

icu4x::EastAsianWidth::EastAsianWidth ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

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

See the Rust documentation for for_char for more information.

◆ from_integer_value()

std::optional< icu4x::EastAsianWidth > icu4x::EastAsianWidth::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::EastAsianWidth::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::EastAsianWidth::operator bool ( ) const
explicitdelete

◆ operator Value()

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

◆ short_name()

std::optional< std::string_view > icu4x::EastAsianWidth::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::EastAsianWidth::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::EastAsianWidth > icu4x::EastAsianWidth::try_from_str ( std::string_view s)
inlinestatic

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