diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2020-04-22 12:50:55 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2020-04-24 12:45:53 +0200 |
commit | 20cdf807b1b6db2189024736047350cdc7be4887 (patch) | |
tree | 84f3e22370c11978e4684f332f99f6e1309032e6 /util/gradientgen | |
parent | 3238445b270d5fb98f4008cb10a8adcc2d35165c (diff) |
QChar: port low-level functions from uint/ushort to char32/16_t
Now that the standard gives us proper types for UTF-16 and UTF-32
characters, use them. Will eventually make the code much easier to
read than today, where uint could be an index as well as a char32_t.
It also ensures that the result of e.g. QChar::highSurrogate() can
still be implicitly converted to a QChar now that the
QChar(non-characater-integral-types) ctors are being made explicit.
[ChangeLog][QtCore][QChar] All low-level functions
(e.g. highSurrogate()) now take and return char16_t instead of ushort
and char32_t instead of uint.
Change-Id: I9cd8ebf6fb998fe1075dae96c7c4484a057f0b91
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'util/gradientgen')
0 files changed, 0 insertions, 0 deletions