There is QChar :: Category , since it does not provide everything you need, to check if char is in a certain range, you can write a function like this:
bool inRange(QChar c, ushort b, ushort e) {
return (c.unicode() >= b) && (c.unicode() <= e);
}
Then you can use it as follows:
inRange(c, 0x3040, 0x309F);
, :
inRange(c, Range::Hiragana);
- Unicode