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

#include <BidiClass.d.hpp>

Public Types

enum  Value {
  LeftToRight = 0 , RightToLeft = 1 , EuropeanNumber = 2 , EuropeanSeparator = 3 ,
  EuropeanTerminator = 4 , ArabicNumber = 5 , CommonSeparator = 6 , ParagraphSeparator = 7 ,
  SegmentSeparator = 8 , WhiteSpace = 9 , OtherNeutral = 10 , LeftToRightEmbedding = 11 ,
  LeftToRightOverride = 12 , ArabicLetter = 13 , RightToLeftEmbedding = 14 , RightToLeftOverride = 15 ,
  PopDirectionalFormat = 16 , NonspacingMark = 17 , BoundaryNeutral = 18 , FirstStrongIsolate = 19 ,
  LeftToRightIsolate = 20 , RightToLeftIsolate = 21 , PopDirectionalIsolate = 22
}
 

Public Member Functions

 BidiClass ()
 
constexpr BidiClass (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::BidiClass for_char (char32_t ch)
 
static std::optional< icu4x::BidiClassfrom_integer_value (uint8_t other)
 
static std::optional< icu4x::BidiClasstry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for BidiClass for more information.

Member Enumeration Documentation

◆ Value

Enumerator
LeftToRight 

See the Rust documentation for LeftToRight for more information.

RightToLeft 

See the Rust documentation for RightToLeft for more information.

EuropeanNumber 

See the Rust documentation for EuropeanNumber for more information.

EuropeanSeparator 

See the Rust documentation for EuropeanSeparator for more information.

EuropeanTerminator 

See the Rust documentation for EuropeanTerminator for more information.

ArabicNumber 

See the Rust documentation for ArabicNumber for more information.

CommonSeparator 

See the Rust documentation for CommonSeparator for more information.

ParagraphSeparator 

See the Rust documentation for ParagraphSeparator for more information.

SegmentSeparator 

See the Rust documentation for SegmentSeparator for more information.

WhiteSpace 

See the Rust documentation for WhiteSpace for more information.

OtherNeutral 

See the Rust documentation for OtherNeutral for more information.

LeftToRightEmbedding 

See the Rust documentation for LeftToRightEmbedding for more information.

LeftToRightOverride 

See the Rust documentation for LeftToRightOverride for more information.

ArabicLetter 

See the Rust documentation for ArabicLetter for more information.

RightToLeftEmbedding 

See the Rust documentation for RightToLeftEmbedding for more information.

RightToLeftOverride 

See the Rust documentation for RightToLeftOverride for more information.

PopDirectionalFormat 

See the Rust documentation for PopDirectionalFormat for more information.

NonspacingMark 

See the Rust documentation for NonspacingMark for more information.

BoundaryNeutral 

See the Rust documentation for BoundaryNeutral for more information.

FirstStrongIsolate 

See the Rust documentation for FirstStrongIsolate for more information.

LeftToRightIsolate 

See the Rust documentation for LeftToRightIsolate for more information.

RightToLeftIsolate 

See the Rust documentation for RightToLeftIsolate for more information.

PopDirectionalIsolate 

See the Rust documentation for PopDirectionalIsolate for more information.

Constructor & Destructor Documentation

◆ BidiClass() [1/2]

icu4x::BidiClass::BidiClass ( )
inline

◆ BidiClass() [2/2]

icu4x::BidiClass::BidiClass ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

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

See the Rust documentation for for_char for more information.

◆ from_integer_value()

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

◆ operator Value()

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

◆ short_name()

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

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