

Unicode, covering the "entire" world, also includes most of the world's case and sorting problems. In Unicode, comparison is not necessarily possible and case conversion is very difficult at best. The joiningType() function indicates how the character joins with it's neighbors (needed mostly for Arabic or Syriac) and finally hasMirrored(), which indicates whether the character needs to be mirrored when it is printed in it's "unnatural" writing direction.Ĭomposed Unicode characters (like ring) can be converted to decomposed Unicode ("a" followed by "ring above") by using decomposition().

QChar also provides direction(), which indicates the "natural" writing direction of this character.
#Greek question mark ascii code code
Some of these also calculate the derived properties (for example isSpace() returns true if the character is of category Separator_* or an exceptional code point from Other_Control category). All of these are wrappers around category() which return the Unicode-defined category of each character. These classification functions are isNull() (returns true if the character is '\0'), isPrint() (true if the character is any sort of printable character, including whitespace), isPunct() (any sort of punctation), isMark() (Unicode Mark), isLetter() (a letter), isNumber() (any sort of numeric character, not just 0-9), isLetterOrNumber(), and isDigit() (decimal digits). They all return true if the character is a certain type of character otherwise they return false.
#Greek question mark ascii code full
The classification functions include functions like those in the standard C++ header (formerly ), but operating on the full range of Unicode characters, not just for the ASCII range. QChar provides a full complement of testing/classification functions, converting to and from other formats, converting from composed to decomposed Unicode, and trying to compare and case-convert if you ask it to. Most compilers treat it like an unsigned short. It is lightweight, so it can be used everywhere. In Qt, Unicode characters are 16-bit entities without any markup or structure.
