add QChar enum for unicode v15.0

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-11-14 18:24:04 +02:00
parent 9a8561b0af
commit 1edff9ee60
2 changed files with 5 additions and 1 deletions

View file

@ -175,6 +175,7 @@ static inline bool is_ascii_char(uint ucs4)
\value Unicode_12_1
\value Unicode_13_0
\value Unicode_14_0
\value Unicode_15_0
\value Unicode_Last Latest supported version
\value Unicode_Unassigned The value is not assigned to any character
in Unicode.
@ -1215,6 +1216,8 @@ QChar::UnicodeVersion QChar::unicodeVersion(const uint ucs4)
return QChar::Unicode_13_0;
} else if (info[0] == 14 && info[1] == 0) {
return QChar::Unicode_14_0;
} else if (info[0] == 15 && info[1] == 0) {
return QChar::Unicode_15_0;
}
return QChar::Unicode_Unassigned;
}

View file

@ -190,7 +190,8 @@ public:
Unicode_12_1,
Unicode_13_0,
Unicode_14_0,
Unicode_Last = Unicode_14_0
Unicode_15_0,
Unicode_Last = Unicode_15_0
};
// ****** WHEN ADDING FUNCTIONS, CONSIDER ADDING TO QCharRef TOO