|
UString
0.1.0
UTF-8 C++11 string library
|
#include <UChar.h>
Public Types | |
| enum | Category { MarkNonSpacing, MarkSpacingCombining, MarkEnclosing, NumberDecimalDigit, NumberLetter, NumberOther, SeparatorSpace, SeparatorLine, SeparatorParagraph, OtherControl, OtherFormat, OtherSurrogate, OtherPrivateUse, OtherNotAssigned, LetterUppercase, LetterLowercase, LetterTitlecase, LetterModifier, LetterOther, PunctuationConnector, PunctuationDash, PunctuationOpen, PunctuationClose, PunctuationInitialQuote, PunctuationFinalQuote, PunctuationOther, SymbolMath, SymbolCurrency, SymbolModifier, SymbolOther, CatInvalid } |
| enum | Direction { DirL, DirR, DirEN, DirES, DirET, DirAN, DirCS, DirB, DirS, DirWS, DirON, DirLRE, DirLRO, DirAL, DirRLE, DirRLO, DirPDF, DirNSM, DirBN, DirLRI, DirRLI, DirFSI, DirPDI, DirInvalid } |
| enum | Case { CaseNone, CaseUpper, CaseLower, CaseTitle, CaseInvalid } |
| typedef std::uint32_t | ValueType |
Public Member Functions | |
| UChar () USTRING_NOEXCEPT | |
| UChar (ValueType codePoint) USTRING_NOEXCEPT | |
| Category | getCategory () const |
| Direction | getDirection () const |
| Case | getCase () const |
| UChar & | assign (UChar codePoint) |
| UChar & | operator= (UChar codePoint) |
| const bool | operator== (UChar codePoint) const |
| const bool | operator== (int codePoint) const |
| const bool | operator!= (UChar codePoint) const |
| UChar | toUpper () const |
| UChar | toLower () const |
| UChar | toTitleCase () const |
| bool | isUpper () |
| bool | isLower () |
| bool | isTitleCase () |
| bool | isSpace () const |
| bool | isLetter () const |
| bool | isControl () const |
| bool | isSurrogate () const |
| bool | isPunctuation () const |
| bool | isSymbol () const |
| bool | isLineBreak () const |
| bool | isNumber () const |
| bool | isNull () const |
| operator ValueType () | |
Static Public Member Functions | |
| static Category | getCategory (ValueType ch) |
| static Direction | getDirection (ValueType ch) |
| static Case | getCase (ValueType ch) |
| static UChar | toUpper (ValueType codePoint) |
| static UChar | toLower (ValueType codePoint) |
| static UChar | toTitleCase (ValueType codePoint) |
| static bool | isNull (ValueType codePoint) |
| static bool | isSpace (ValueType codePoint) |
| static bool | isLetter (ValueType codePoint) |
| static bool | isControl (ValueType codePoint) |
| static bool | isSurrogate (ValueType codePoint) |
| static bool | isPunctuation (ValueType codePoint) |
| static bool | isSymbol (ValueType codePoint) |
| static bool | isLineBreak (ValueType codePoint) |
| static bool | isNumber (ValueType codePoint) |
| static bool | isUpper (ValueType codePoint) |
| static bool | isLower (ValueType codePoint) |
| static bool | isTitleCase (ValueType codePoint) |
UChar is used to represent a UTF-8 character
| enum UChar::Case |
Unicode text case
| enum UChar::Category |
Unicode categoiry types
| enum UChar::Direction |
Unicode text direction
| UChar::UChar | ( | ) |
Create a character with a Null value
| UChar::UChar | ( | ValueType | codePoint | ) |
Create a character from the given code-point
| codePoin | The UTF-8 code-point |
Assign another UChar to this one
|
static |
Get the unicode Case of a given code-point
| ch | The code-point |
|
inline |
Get the unicode Case of this char
|
static |
Get the unicode Category of a given code-point
| ch | The code-point |
|
inline |
Get the unicode Category of this char
|
static |
Get the unicode Direction of a given code-point
| ch | The code-point |
|
inline |
Get the unicode Direction of this char
|
inline |
Compare this character to another
Assign another UChar to this one
|
inline |
Compare this character to another
|
inline |
Compare this character to another
|
static |
Convert a code point to the lower case version
| codePoint | The code-point to convert |
|
inline |
Return a new UChar containing a lowercase version of this
|
static |
Convert a code point to the title case version
| codePoint | The code-point to convert |
|
inline |
Return a new UChar containing a titlecase version of this
|
static |
Convert a code point to the upper case version
| codePoint | The code-point to convert |
|
inline |
Return a new UChar containing a uppercase version of this
1.8.11