summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qunicodetables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qunicodetables.cpp')
-rw-r--r--src/corelib/text/qunicodetables.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/text/qunicodetables.cpp b/src/corelib/text/qunicodetables.cpp
index efb8e1f7bb..a0d210b13d 100644
--- a/src/corelib/text/qunicodetables.cpp
+++ b/src/corelib/text/qunicodetables.cpp
@@ -9603,11 +9603,21 @@ Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(uint ucs4) noexce
return uc_properties + GET_PROP_INDEX(ucs4);
}
+Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(char32_t ucs4) noexcept
+{
+ return qGetProp(uint{ucs4});
+}
+
Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(ushort ucs2) noexcept
{
return uc_properties + GET_PROP_INDEX_UCS2(ucs2);
}
+Q_DECL_CONST_FUNCTION static inline const Properties *qGetProp(char16_t ucs2) noexcept
+{
+ return qGetProp(ushort{ucs2});
+}
+
Q_DECL_CONST_FUNCTION Q_CORE_EXPORT const Properties * QT_FASTCALL properties(uint ucs4) noexcept
{
return qGetProp(ucs4);