mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
prepare for Unicode v14.0.0
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
45353c3938
commit
078c5fcfc7
2 changed files with 6 additions and 1 deletions
|
@ -1255,6 +1255,8 @@ QChar::UnicodeVersion QChar::unicodeVersion(const uint ucs4)
|
|||
UVersionInfo info;
|
||||
u_charAge(ucs4, info);
|
||||
|
||||
// for reference:
|
||||
// https://www.unicode.org/versions/enumeratedversions.html
|
||||
if (info[0] == 1 && info[1] == 1) {
|
||||
return QChar::Unicode_1_1;
|
||||
} else if (info[0] == 2 && info[1] == 0) {
|
||||
|
@ -1301,6 +1303,8 @@ QChar::UnicodeVersion QChar::unicodeVersion(const uint ucs4)
|
|||
return QChar::Unicode_12_1;
|
||||
} else if (info[0] == 13 && info[1] == 0) {
|
||||
return QChar::Unicode_13_0;
|
||||
} else if (info[0] == 14 && info[1] == 0) {
|
||||
return QChar::Unicode_14_0;
|
||||
}
|
||||
return QChar::Unicode_Unassigned;
|
||||
}
|
||||
|
|
|
@ -189,7 +189,8 @@ public:
|
|||
Unicode_12_0,
|
||||
Unicode_12_1,
|
||||
Unicode_13_0,
|
||||
Unicode_Last = Unicode_13_0
|
||||
Unicode_14_0,
|
||||
Unicode_Last = Unicode_14_0
|
||||
};
|
||||
// ****** WHEN ADDING FUNCTIONS, CONSIDER ADDING TO QCharRef TOO
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue