summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/unicode/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index cde9f40a48..6434d784fe 100644
--- a/util/unicode/main.cpp
+++ b/util/unicode/main.cpp
@@ -2533,11 +2533,21 @@ static QByteArray createPropertyInfo()
" return uc_properties + GET_PROP_INDEX(ucs4);\n"
"}\n"
"\n"
+ "Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(char32_t ucs4) noexcept\n"
+ "{\n"
+ " return qGetProp(uint{ucs4});\n"
+ "}\n"
+ "\n"
"Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(ushort ucs2) noexcept\n"
"{\n"
" return uc_properties + GET_PROP_INDEX_UCS2(ucs2);\n"
"}\n"
"\n"
+ "Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(char16_t ucs2) noexcept\n"
+ "{\n"
+ " return qGetProp(ushort{ucs2});\n"
+ "}\n"
+ "\n"
"Q_DECL_CONST_FUNCTION Q_CORE_EXPORT const Properties * QT_FASTCALL properties(uint ucs4) noexcept\n"
"{\n"
" return qGetProp(ucs4);\n"