QStringView: size is encoded with code units not code points

Code points is what you get when surrogate pairs have been joined

Pick-to: 6.6 6.5 6.2
Change-Id: I86c4131de5782ce1e6342217947a603ca16bb521
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Mårten Nordheim 2023-06-02 19:01:09 +02:00
parent f667445006
commit 054a64ce67
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ QT_BEGIN_NAMESPACE
/*!
\fn qsizetype QStringView::size() const
Returns the size of this string view, in UTF-16 code points (that is,
Returns the size of this string view, in UTF-16 code units (that is,
surrogate pairs count as two for the purposes of this function, the same
as in QString).