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

#include <WordBreak.d.hpp>

Public Types

enum  Value {
  Other = 0 , ALetter = 1 , Format = 2 , Katakana = 3 ,
  MidLetter = 4 , MidNum = 5 , Numeric = 6 , ExtendNumLet = 7 ,
  CR = 8 , Extend = 9 , LF = 10 , MidNumLet = 11 ,
  Newline = 12 , RegionalIndicator = 13 , HebrewLetter = 14 , SingleQuote = 15 ,
  DoubleQuote = 16 , EBase = 17 , EBaseGAZ = 18 , EModifier = 19 ,
  GlueAfterZwj = 20 , ZWJ = 21 , WSegSpace = 22
}
 

Public Member Functions

 WordBreak ()
 
constexpr WordBreak (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::WordBreak for_char (char32_t ch)
 
static std::optional< icu4x::WordBreakfrom_integer_value (uint8_t other)
 
static std::optional< icu4x::WordBreaktry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for WordBreak for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Other 

See the Rust documentation for Other for more information.

ALetter 

See the Rust documentation for ALetter for more information.

Format 

See the Rust documentation for Format for more information.

Katakana 

See the Rust documentation for Katakana for more information.

MidLetter 

See the Rust documentation for MidLetter for more information.

MidNum 

See the Rust documentation for MidNum for more information.

Numeric 

See the Rust documentation for Numeric for more information.

ExtendNumLet 

See the Rust documentation for ExtendNumLet for more information.

CR 

See the Rust documentation for CR for more information.

Extend 

See the Rust documentation for Extend for more information.

LF 

See the Rust documentation for LF for more information.

MidNumLet 

See the Rust documentation for MidNumLet for more information.

Newline 

See the Rust documentation for Newline for more information.

RegionalIndicator 

See the Rust documentation for RegionalIndicator for more information.

HebrewLetter 

See the Rust documentation for HebrewLetter for more information.

SingleQuote 

See the Rust documentation for SingleQuote for more information.

DoubleQuote 

See the Rust documentation for DoubleQuote for more information.

EBase 

See the Rust documentation for EBase for more information.

EBaseGAZ 

See the Rust documentation for EBaseGAZ for more information.

EModifier 

See the Rust documentation for EModifier for more information.

GlueAfterZwj 

See the Rust documentation for GlueAfterZwj for more information.

ZWJ 

See the Rust documentation for ZWJ for more information.

WSegSpace 

See the Rust documentation for WSegSpace for more information.

Constructor & Destructor Documentation

◆ WordBreak() [1/2]

icu4x::WordBreak::WordBreak ( )
inline

◆ WordBreak() [2/2]

icu4x::WordBreak::WordBreak ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

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

See the Rust documentation for for_char for more information.

◆ from_integer_value()

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

◆ operator Value()

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

◆ short_name()

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

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