summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2022-01-14 17:17:12 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-17 05:53:07 +0000
commita65227db7563e2cda32fd35fdfb90c3c37326c39 (patch)
tree96dc3ecb82ec855b51ebf0cf1a975840497a191e
parentac262a123c5b70a3476c763956365c20a47495bd (diff)
QAnyStringView: fix code point -> code unit in the docs
The docs are saying that QAnyStringView sizes are measured in terms of code units of the underlying encoding, not code points. Change-Id: Ic72ffd122e45631e8626c9d57ec24ca348918424 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Marc Mutz <marc.mutz@qt.io> (cherry picked from commit 3f06d47e5757d7cbc5e21b9cfb2008a9a6510b96) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/corelib/text/qanystringview.qdoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qanystringview.qdoc b/src/corelib/text/qanystringview.qdoc
index ec4f1c5a42..743e389a8f 100644
--- a/src/corelib/text/qanystringview.qdoc
+++ b/src/corelib/text/qanystringview.qdoc
@@ -103,7 +103,7 @@
\section2 Sizes and Sub-Strings
All sizes and positions in QAnyStringView functions are in the
- encoding's code points (that is, UTF-16 surrogate pairs count as
+ encoding's code units (that is, UTF-16 surrogate pairs count as
two for the purposes of these functions, the same as in QString,
and UTF-8 multibyte sequences count as two, three or four,
depending on their length).