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

#include <SentenceBreak.d.hpp>

Public Types

enum  Value {
  Other = 0 , ATerm = 1 , Close = 2 , Format = 3 ,
  Lower = 4 , Numeric = 5 , OLetter = 6 , Sep = 7 ,
  Sp = 8 , STerm = 9 , Upper = 10 , CR = 11 ,
  Extend = 12 , LF = 13 , SContinue = 14
}
 

Public Member Functions

 SentenceBreak ()
 
constexpr SentenceBreak (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::SentenceBreak for_char (char32_t ch)
 
static std::optional< icu4x::SentenceBreakfrom_integer_value (uint8_t other)
 
static std::optional< icu4x::SentenceBreaktry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for SentenceBreak for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Other 

See the Rust documentation for Other for more information.

ATerm 

See the Rust documentation for ATerm for more information.

Close 

See the Rust documentation for Close for more information.

Format 

See the Rust documentation for Format for more information.

Lower 

See the Rust documentation for Lower for more information.

Numeric 

See the Rust documentation for Numeric for more information.

OLetter 

See the Rust documentation for OLetter for more information.

Sep 

See the Rust documentation for Sep for more information.

Sp 

See the Rust documentation for Sp for more information.

STerm 

See the Rust documentation for STerm for more information.

Upper 

See the Rust documentation for Upper 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.

SContinue 

See the Rust documentation for SContinue for more information.

Constructor & Destructor Documentation

◆ SentenceBreak() [1/2]

icu4x::SentenceBreak::SentenceBreak ( )
inline

◆ SentenceBreak() [2/2]

icu4x::SentenceBreak::SentenceBreak ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

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

See the Rust documentation for for_char for more information.

◆ from_integer_value()

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

◆ operator Value()

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

◆ short_name()

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

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