diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-04-05 00:09:47 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-04-05 09:17:34 +0000 |
commit | f5e77d3d546fd17c662b62aa372a8ea40ac8ad43 (patch) | |
tree | 43912ec6c657432619c746c41514b94a64a32c25 /src/corelib | |
parent | a8c046a2a32e742a1b71c6c392e39c85b99b5129 (diff) |
Fix some issues with the QStringView docs
Change-Id: Ibb6fed18c6b7aa23ffc259dc66d22d4ff0372ca0
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib')
-rw-r--r-- | src/corelib/tools/qstringview.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/corelib/tools/qstringview.cpp b/src/corelib/tools/qstringview.cpp index 341746e80a..a2dfb8b97a 100644 --- a/src/corelib/tools/qstringview.cpp +++ b/src/corelib/tools/qstringview.cpp @@ -45,20 +45,18 @@ QT_BEGIN_NAMESPACE \class QStringView \inmodule QtCore \since 5.10 - \brief The QStringView class provides a unified view on UTF-16 strings + \brief The QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QString API. \reentrant \ingroup tools \ingroup string-processing - QStringView provides a read-only subset of the QString API. - - A string view explicitly stores a portion of a UTF-16 string it does + A QStringView references a contiguous portion of a UTF-16 string it does not own. It acts as an interface type to all kinds of UTF-16 string, without the need to construct a QString first. The UTF-16 string may be represented as an array (or an array-compatible data-structure such as QString, - std::basic_string, etc.) of \c QChar, \c ushort, \c char16_t (on compilers that + std::basic_string, etc.) of QChar, \c ushort, \c char16_t (on compilers that support C++11 Unicode strings) or (on platforms, such as Windows, where it is a 16-bit type) \c wchar_t. @@ -254,7 +252,7 @@ QT_BEGIN_NAMESPACE \fn QStringView::QStringView(const Char *str) Constructs a string view on \a str. The length is determined - by scanning for the first \c{char16_t(0)}. + by scanning for the first \c{Char(0)}. \a str must remain valid for the lifetime of this string view object. |