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

#include <GeneralCategory.d.hpp>

Public Types

enum  Value {
  Unassigned = 0 , UppercaseLetter = 1 , LowercaseLetter = 2 , TitlecaseLetter = 3 ,
  ModifierLetter = 4 , OtherLetter = 5 , NonspacingMark = 6 , SpacingMark = 8 ,
  EnclosingMark = 7 , DecimalNumber = 9 , LetterNumber = 10 , OtherNumber = 11 ,
  SpaceSeparator = 12 , LineSeparator = 13 , ParagraphSeparator = 14 , Control = 15 ,
  Format = 16 , PrivateUse = 17 , Surrogate = 18 , DashPunctuation = 19 ,
  OpenPunctuation = 20 , ClosePunctuation = 21 , ConnectorPunctuation = 22 , InitialPunctuation = 28 ,
  FinalPunctuation = 29 , OtherPunctuation = 23 , MathSymbol = 24 , CurrencySymbol = 25 ,
  ModifierSymbol = 26 , OtherSymbol = 27
}
 

Public Member Functions

 GeneralCategory ()
 
constexpr GeneralCategory (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
 
icu4x::GeneralCategoryGroup to_group () const
 

Static Public Member Functions

static icu4x::GeneralCategory for_char (char32_t ch)
 
static std::optional< icu4x::GeneralCategoryfrom_integer_value (uint8_t other)
 
static std::optional< icu4x::GeneralCategorytry_from_str (std::string_view s)
 

Detailed Description

See the Rust documentation for GeneralCategory for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Unassigned 

See the Rust documentation for Unassigned for more information.

UppercaseLetter 

See the Rust documentation for UppercaseLetter for more information.

LowercaseLetter 

See the Rust documentation for LowercaseLetter for more information.

TitlecaseLetter 

See the Rust documentation for TitlecaseLetter for more information.

ModifierLetter 

See the Rust documentation for ModifierLetter for more information.

OtherLetter 

See the Rust documentation for OtherLetter for more information.

NonspacingMark 

See the Rust documentation for NonspacingMark for more information.

SpacingMark 

See the Rust documentation for SpacingMark for more information.

EnclosingMark 

See the Rust documentation for EnclosingMark for more information.

DecimalNumber 

See the Rust documentation for DecimalNumber for more information.

LetterNumber 

See the Rust documentation for LetterNumber for more information.

OtherNumber 

See the Rust documentation for OtherNumber for more information.

SpaceSeparator 

See the Rust documentation for SpaceSeparator for more information.

LineSeparator 

See the Rust documentation for LineSeparator for more information.

ParagraphSeparator 

See the Rust documentation for ParagraphSeparator for more information.

Control 

See the Rust documentation for Control for more information.

Format 

See the Rust documentation for Format for more information.

PrivateUse 

See the Rust documentation for PrivateUse for more information.

Surrogate 

See the Rust documentation for Surrogate for more information.

DashPunctuation 

See the Rust documentation for DashPunctuation for more information.

OpenPunctuation 

See the Rust documentation for OpenPunctuation for more information.

ClosePunctuation 

See the Rust documentation for ClosePunctuation for more information.

ConnectorPunctuation 

See the Rust documentation for ConnectorPunctuation for more information.

InitialPunctuation 

See the Rust documentation for InitialPunctuation for more information.

FinalPunctuation 

See the Rust documentation for FinalPunctuation for more information.

OtherPunctuation 

See the Rust documentation for OtherPunctuation for more information.

MathSymbol 

See the Rust documentation for MathSymbol for more information.

CurrencySymbol 

See the Rust documentation for CurrencySymbol for more information.

ModifierSymbol 

See the Rust documentation for ModifierSymbol for more information.

OtherSymbol 

See the Rust documentation for OtherSymbol for more information.

Constructor & Destructor Documentation

◆ GeneralCategory() [1/2]

icu4x::GeneralCategory::GeneralCategory ( )
inline

◆ GeneralCategory() [2/2]

icu4x::GeneralCategory::GeneralCategory ( Value v)
inlineconstexpr

Member Function Documentation

◆ for_char()

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

See the Rust documentation for for_char for more information.

◆ from_integer_value()

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

◆ operator Value()

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

◆ short_name()

std::optional< std::string_view > icu4x::GeneralCategory::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_group()

icu4x::GeneralCategoryGroup icu4x::GeneralCategory::to_group ( ) const
inline

Produces a GeneralCategoryGroup mask that can represent a group of general categories

See the Rust documentation for GeneralCategoryGroup for more information.

◆ to_integer_value()

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

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