From f5e77d3d546fd17c662b62aa372a8ea40ac8ad43 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Wed, 5 Apr 2017 00:09:47 +0200 Subject: Fix some issues with the QStringView docs Change-Id: Ibb6fed18c6b7aa23ffc259dc66d22d4ff0372ca0 Reviewed-by: Giuseppe D'Angelo --- src/corelib/tools/qstringview.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/corelib/tools/qstringview.cpp') 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. -- cgit v1.2.3