diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/corelib/text/qstring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index c01c1a9999d..2cc1664c33e 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -7287,9 +7287,9 @@ QString QString::toUpper_helper(QString &str) string and \c{%s} arguments must be UTF-8 encoded. \note The \c{%lc} escape sequence expects a unicode character of type - \c char16_t, or \c ushort (as returned by QChar::unicode()). + \c char16_t (as returned by QChar::unicode()), or \c ushort. The \c{%ls} escape sequence expects a pointer to a zero-terminated array - of unicode characters of type \c char16_t, or ushort (as returned by + of unicode characters of type \c char16_t, or \c ushort (as returned by QString::utf16()). This is at odds with the printf() in the standard C++ library, which defines \c {%lc} to print a wchar_t and \c{%ls} to print a \c{wchar_t*}, and might also produce compiler warnings on platforms |
