From b88720eb82056f5435f48dff728572126c04ca6a Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Thu, 30 Apr 2020 15:15:56 +0200 Subject: Remove QTextCodec references from QString docs Change-Id: I2882f8aed61d92ed5eff6efd2e65679e6688454f Reviewed-by: Thiago Macieira --- src/corelib/text/qstringview.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/corelib/text/qstringview.cpp') diff --git a/src/corelib/text/qstringview.cpp b/src/corelib/text/qstringview.cpp index 9df656dc59..16ccfa8352 100644 --- a/src/corelib/text/qstringview.cpp +++ b/src/corelib/text/qstringview.cpp @@ -810,7 +810,7 @@ QT_BEGIN_NAMESPACE The behavior is undefined if the string contains non-Latin1 characters. - \sa toUtf8(), toLocal8Bit(), QTextCodec + \sa toUtf8(), toLocal8Bit(), QStringEncoder */ /*! @@ -818,14 +818,13 @@ QT_BEGIN_NAMESPACE Returns a local 8-bit representation of the string as a QByteArray. - QTextCodec::codecForLocale() is used to perform the conversion from - Unicode. If the locale's encoding could not be determined, this function - does the same as toLatin1(). + On Unix systems this is equivalen to toUtf8(), on Windows the systems + current code page is being used. The behavior is undefined if the string contains characters not supported by the locale's 8-bit encoding. - \sa toLatin1(), toUtf8(), QTextCodec + \sa toLatin1(), toUtf8(), QStringEncoder */ /*! @@ -836,7 +835,7 @@ QT_BEGIN_NAMESPACE UTF-8 is a Unicode codec and can represent all characters in a Unicode string like QString. - \sa toLatin1(), toLocal8Bit(), QTextCodec + \sa toLatin1(), toLocal8Bit(), QStringEncoder */ /*! @@ -851,7 +850,7 @@ QT_BEGIN_NAMESPACE The returned vector is not 0-terminated. - \sa toUtf8(), toLatin1(), toLocal8Bit(), QTextCodec + \sa toUtf8(), toLatin1(), toLocal8Bit(), QStringEncoder */ /*! -- cgit v1.2.3