|
ICU4X
International Components for Unicode
|
#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::GeneralCategory > | from_integer_value (uint8_t other) |
| static std::optional< icu4x::GeneralCategory > | try_from_str (std::string_view s) |
See the Rust documentation for GeneralCategory for more information.
| Enumerator | |
|---|---|
| Unassigned | See the Rust documentation for |
| UppercaseLetter | See the Rust documentation for |
| LowercaseLetter | See the Rust documentation for |
| TitlecaseLetter | See the Rust documentation for |
| ModifierLetter | See the Rust documentation for |
| OtherLetter | See the Rust documentation for |
| NonspacingMark | See the Rust documentation for |
| SpacingMark | See the Rust documentation for |
| EnclosingMark | See the Rust documentation for |
| DecimalNumber | See the Rust documentation for |
| LetterNumber | See the Rust documentation for |
| OtherNumber | See the Rust documentation for |
| SpaceSeparator | See the Rust documentation for |
| LineSeparator | See the Rust documentation for |
| ParagraphSeparator | See the Rust documentation for |
| Control | See the Rust documentation for |
| Format | See the Rust documentation for |
| PrivateUse | See the Rust documentation for |
| Surrogate | See the Rust documentation for |
| DashPunctuation | See the Rust documentation for |
| OpenPunctuation | See the Rust documentation for |
| ClosePunctuation | See the Rust documentation for |
| ConnectorPunctuation | See the Rust documentation for |
| InitialPunctuation | See the Rust documentation for |
| FinalPunctuation | See the Rust documentation for |
| OtherPunctuation | See the Rust documentation for |
| MathSymbol | See the Rust documentation for |
| CurrencySymbol | See the Rust documentation for |
| ModifierSymbol | See the Rust documentation for |
| OtherSymbol | See the Rust documentation for |
|
inline |
|
inlineconstexpr |
|
inlinestatic |
See the Rust documentation for for_char for more information.
|
inlinestatic |
Convert from an integer value from ICU4C or CodePointMapData
See the Rust documentation for from_icu4c_value for more information.
|
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.
|
explicitdelete |
|
inlineconstexpr |
|
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.
|
inline |
Produces a GeneralCategoryGroup mask that can represent a group of general categories
See the Rust documentation for GeneralCategoryGroup for more information.
|
inline |
Convert to an integer value usable with ICU4C and CodePointMapData
See the Rust documentation for to_icu4c_value for more information.
|
inlinestatic |