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 ()=default
 
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)
 

Detailed Description

See the Rust documentation for GeneralCategory for more information.

Member Enumeration Documentation

◆ Value

Enumerator
Unassigned 
UppercaseLetter 
LowercaseLetter 
TitlecaseLetter 
ModifierLetter 
OtherLetter 
NonspacingMark 
SpacingMark 
EnclosingMark 
DecimalNumber 
LetterNumber 
OtherNumber 
SpaceSeparator 
LineSeparator 
ParagraphSeparator 
Control 
Format 
PrivateUse 
Surrogate 
DashPunctuation 
OpenPunctuation 
ClosePunctuation 
ConnectorPunctuation 
InitialPunctuation 
FinalPunctuation 
OtherPunctuation 
MathSymbol 
CurrencySymbol 
ModifierSymbol 
OtherSymbol 

Constructor & Destructor Documentation

◆ GeneralCategory() [1/2]

icu4x::GeneralCategory::GeneralCategory ( )
default

◆ 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 using the ICU4C integer mappings for General_Category Convert from an integer value from ICU4C or CodePointMapData

◆ long_name()

std::optional< std::string_view > icu4x::GeneralCategory::long_name ( ) const
inline

Convert to an integer using the ICU4C integer mappings for General_Category 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


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