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

#include <LineBreak.d.hpp>

Public Types

enum  Value {
  Unknown = 0 , Ambiguous = 1 , Alphabetic = 2 , BreakBoth = 3 ,
  BreakAfter = 4 , BreakBefore = 5 , MandatoryBreak = 6 , ContingentBreak = 7 ,
  ClosePunctuation = 8 , CombiningMark = 9 , CarriageReturn = 10 , Exclamation = 11 ,
  Glue = 12 , Hyphen = 13 , Ideographic = 14 , Inseparable = 15 ,
  InfixNumeric = 16 , LineFeed = 17 , Nonstarter = 18 , Numeric = 19 ,
  OpenPunctuation = 20 , PostfixNumeric = 21 , PrefixNumeric = 22 , Quotation = 23 ,
  ComplexContext = 24 , Surrogate = 25 , Space = 26 , BreakSymbols = 27 ,
  ZWSpace = 28 , NextLine = 29 , WordJoiner = 30 , H2 = 31 ,
  H3 = 32 , JL = 33 , JT = 34 , JV = 35 ,
  CloseParenthesis = 36 , ConditionalJapaneseStarter = 37 , HebrewLetter = 38 , RegionalIndicator = 39 ,
  EBase = 40 , EModifier = 41 , ZWJ = 42 , Aksara = 43 ,
  AksaraPrebase = 44 , AksaraStart = 45 , ViramaFinal = 46 , Virama = 47 ,
  UnambiguousHyphen = 48
}
 

Public Member Functions

 LineBreak ()
 
constexpr LineBreak (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::LineBreak for_char (char32_t ch)
 
static std::optional< icu4x::LineBreakfrom_integer_value (uint8_t other)
 
static std::optional< icu4x::LineBreaktry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for LineBreak for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Unknown 

See the Rust documentation for Unknown for more information.

Ambiguous 

See the Rust documentation for Ambiguous for more information.

Alphabetic 

See the Rust documentation for Alphabetic for more information.

BreakBoth 

See the Rust documentation for BreakBoth for more information.

BreakAfter 

See the Rust documentation for BreakAfter for more information.

BreakBefore 

See the Rust documentation for BreakBefore for more information.

MandatoryBreak 

See the Rust documentation for MandatoryBreak for more information.

ContingentBreak 

See the Rust documentation for ContingentBreak for more information.

ClosePunctuation 

See the Rust documentation for ClosePunctuation for more information.

CombiningMark 

See the Rust documentation for CombiningMark for more information.

CarriageReturn 

See the Rust documentation for CarriageReturn for more information.

Exclamation 

See the Rust documentation for Exclamation for more information.

Glue 

See the Rust documentation for Glue for more information.

Hyphen 

See the Rust documentation for Hyphen for more information.

Ideographic 

See the Rust documentation for Ideographic for more information.

Inseparable 

See the Rust documentation for Inseparable for more information.

InfixNumeric 

See the Rust documentation for InfixNumeric for more information.

LineFeed 

See the Rust documentation for LineFeed for more information.

Nonstarter 

See the Rust documentation for Nonstarter for more information.

Numeric 

See the Rust documentation for Numeric for more information.

OpenPunctuation 

See the Rust documentation for OpenPunctuation for more information.

PostfixNumeric 

See the Rust documentation for PostfixNumeric for more information.

PrefixNumeric 

See the Rust documentation for PrefixNumeric for more information.

Quotation 

See the Rust documentation for Quotation for more information.

ComplexContext 

See the Rust documentation for ComplexContext for more information.

Surrogate 

See the Rust documentation for Surrogate for more information.

Space 

See the Rust documentation for Space for more information.

BreakSymbols 

See the Rust documentation for BreakSymbols for more information.

ZWSpace 

See the Rust documentation for ZWSpace for more information.

NextLine 

See the Rust documentation for NextLine for more information.

WordJoiner 

See the Rust documentation for WordJoiner for more information.

H2 

See the Rust documentation for H2 for more information.

H3 

See the Rust documentation for H3 for more information.

JL 

See the Rust documentation for JL for more information.

JT 

See the Rust documentation for JT for more information.

JV 

See the Rust documentation for JV for more information.

CloseParenthesis 

See the Rust documentation for CloseParenthesis for more information.

ConditionalJapaneseStarter 

See the Rust documentation for ConditionalJapaneseStarter for more information.

HebrewLetter 

See the Rust documentation for HebrewLetter for more information.

RegionalIndicator 

See the Rust documentation for RegionalIndicator for more information.

EBase 

See the Rust documentation for EBase for more information.

EModifier 

See the Rust documentation for EModifier for more information.

ZWJ 

See the Rust documentation for ZWJ for more information.

Aksara 

See the Rust documentation for Aksara for more information.

AksaraPrebase 

See the Rust documentation for AksaraPrebase for more information.

AksaraStart 

See the Rust documentation for AksaraStart for more information.

ViramaFinal 

See the Rust documentation for ViramaFinal for more information.

Virama 

See the Rust documentation for Virama for more information.

UnambiguousHyphen 

See the Rust documentation for UnambiguousHyphen for more information.

Constructor & Destructor Documentation

◆ LineBreak() [1/2]

icu4x::LineBreak::LineBreak ( )
inline

◆ LineBreak() [2/2]

icu4x::LineBreak::LineBreak ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

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

See the Rust documentation for for_char for more information.

◆ from_integer_value()

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

◆ operator Value()

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

◆ short_name()

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

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