summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qutf8stringview.qdoc
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@qt.io>2020-10-21 15:24:10 +0200
committerKarsten Heimrich <karsten.heimrich@qt.io>2020-10-27 12:49:40 +0100
commit626a9b66f2b9f8a7e3977bee32afa64778b6b8f2 (patch)
treebbb8255f331bd1b6bc3759768d067bc103ec8417 /src/corelib/text/qutf8stringview.qdoc
parent5c352f47b977c72db323bb8e7b6ac25e1a453202 (diff)
Doc: Add notes on how to use View classes in Qt6
Task-number: QTBUG-87168 Change-Id: I631937ebaf7cfa3ed54c6c8a3641693fda910b36 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/corelib/text/qutf8stringview.qdoc')
-rw-r--r--src/corelib/text/qutf8stringview.qdoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/corelib/text/qutf8stringview.qdoc b/src/corelib/text/qutf8stringview.qdoc
index 031769440c..a5f05a8fb4 100644
--- a/src/corelib/text/qutf8stringview.qdoc
+++ b/src/corelib/text/qutf8stringview.qdoc
@@ -77,7 +77,7 @@
QUtf8StringView is a \e{Literal Type}.
- \section Compatible Character Types
+ \section2 Compatible Character Types
QUtf8StringView accepts strings over a variety of character types:
@@ -86,16 +86,16 @@
\li \c char8_t (C++20 only)
\endlist
- \section Sizes and Sub-Strings
+ \section2 Sizes and Sub-Strings
- All sizes and postions in QUtf8StringView functions are in
+ All sizes and positions in QUtf8StringView functions are in
UTF-8 code points (that is, UTF-8 multibyte sequences count as
two, three or four, depending on their length). QUtf8StringView
does not an attempt to detect or prevent slicing right through
UTF-8 multibyte sequences. This is similar to the situation with
QStringView and surrogate pairs.
- \section C++20, char8_t, and QUtf8StringView
+ \section2 C++20, char8_t, and QUtf8StringView
In C++20, \c{u8""} string literals changed their type from
\c{const char[]} to \c{const char8_t[]}. If Qt 6 could have depended