sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
class SGXChar;
part of SGEXTN module SG_Core
Unicode character (most of them)
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGXChar.h›
CMake target for BuildLah: SGEXTN::SG_Core
see this link for more information about BuildLah
parent class: (none)
children classes: (none)
[[nodiscard]] operator char() const;
SGXChar(int unicode);
SGXChar(char c);
[[nodiscard]] SGXChar getLowerLanguageAware() const;
[[nodiscard]] int getUnicode() const;
[[nodiscard]] SGXChar getUpperLanguageAware() const;
[[nodiscard]] int hash() const;
[[nodiscard]] bool isASCII() const;
[[nodiscard]] bool isDigit() const;
[[nodiscard]] bool isDigitBase16() const;
[[nodiscard]] bool isEnglishAlphanumeric() const;
[[nodiscard]] bool isEnglishLetter() const;
[[nodiscard]] bool isEnglishLowercase() const;
[[nodiscard]] bool isEnglishUppercase() const;
[[nodiscard]] bool isWhitespace() const;
[[nodiscard]] bool operator!=(char x) const;
[[nodiscard]] bool operator!=(SGXChar x) const;
[[nodiscard]] bool operator‹(SGXChar x) const;
[[nodiscard]] bool operator‹(char x) const;
[[nodiscard]] bool operator‹=(SGXChar x) const;
[[nodiscard]] bool operator‹=(char x) const;
[[nodiscard]] bool operator==(SGXChar x) const;
[[nodiscard]] bool operator==(char x) const;
[[nodiscard]] bool operator›(char x) const;
[[nodiscard]] bool operator›(SGXChar x) const;
[[nodiscard]] bool operator›=(char x) const;
[[nodiscard]] bool operator›=(SGXChar x) const;
void toLowerLanguageAware();
void toUpperLanguageAware();
SGXChar stores a Unicode character in the Basic Multilingual Plane. This covers almost all characters that you would need except for emojis. It is not guaranteed that all these characters will display correctly since that depends on the font (SingScript.sg) that you are using. English, Malay, and most common mathematical symbols are guaranteed to display properly.
SGXChar stores the Unicode value of the character. When language aware features are needed, it uses QChar internally.
Converts SGXChar to a C++ char.
If the SGXChar is not a ASCII character, this causes undefined behaviour.
Converts Unicode index unicode to its corresponding SGXChar.
If unicode is below 0 or above 65535, this will crash.
Converts C++ char c to a SGXChar.
Returns the language aware lowercase version of this SGXChar.
This works for non English languages also.
Returns the Unicode index of this SGXChar.
Returns the language aware uppercase version of this SGXChar.
This works for non English languages also.
Hash function defined for SGLHash.
Returns if this SGXChar is an ASCII character.
The SGXChar can only be converted to a C++ char safely if this is true.
Returns if this SGXChar is a digit from 0 to 9.
Returns if this SGXChar is a digit from 0 to F in base16.
Both uppercase and lowercase letters are fine for base16 numerical representation.
Returns if this SGXChar is an alphanumeric character.
This can be used to validate usernames and file names.
Returns if this SGXChar is a English letter, ignoring case.
Returns if this SGXChar is a English lowercase character fron a to z.
Returns if this SGXChar is a English uppercase character from A to Z.
Returns if this SGXChar is a whitespace character, including zero width space, em space, en space, Chinese space, etc.
The Braille character with no dots definitely bypass this check.
The zero width joiner may or may not bypass this check.
Returns if this SGXChar is a different character from x.
Returns if this SGXChar is a different character from x.
Returns if this SGXChar has a smaller Unicode index than x.
Returns if this SGXChar has a smaller Unicode index than x.
Returns if this SGXChar has a Unicode index smaller than or equal to that of x.
Returns if this SGXChar has a Unicode index smaller than or equal to that of x.
Returns if this SGXChar is the same character as x.
Returns if this SGXChar is the same character as x.
Returns if this SGXChar has a greater Unicode index than x.
Returns if this SGXChar has a greater Unicode index than x.
Returns if this SGXChar has a Unicode index greater than or equal to that of x.
Returns if this SGXChar has a Unicode index greater than or equal to that of x.
Changes this SGXChar to its language aware lowercase form.
This works for non English languages also.
Changes this SGXChar to its language aware uppercase form.
This works for non English languages also.
©2025 05524F.sg (Singapore)