QString: use a docs snippets for fromStd*String() methods
Change-Id: Ia9c0c965725aa76c5be6353fe0d1d44674a4d4be Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
parent
78ba5056e6
commit
817151c70d
@ -2373,10 +2373,16 @@ void qtWarnAboutInvalidRegularExpression(const QString &pattern, const char *whe
|
|||||||
\sa fromLatin1(), fromLocal8Bit(), fromUtf8()
|
\sa fromLatin1(), fromLocal8Bit(), fromUtf8()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
//! [from-std-string]
|
||||||
|
Returns a copy of the \a str string. The given string is assumed to be
|
||||||
|
encoded in \1, and is converted to QString using the \2 function.
|
||||||
|
//! [from-std-string]
|
||||||
|
*/
|
||||||
|
|
||||||
/*! \fn QString QString::fromStdString(const std::string &str)
|
/*! \fn QString QString::fromStdString(const std::string &str)
|
||||||
|
|
||||||
Returns a copy of the \a str string. The given string is converted
|
\include qstring.cpp {from-std-string} {UTF-8} {fromUtf8()}
|
||||||
to Unicode using the fromUtf8() function.
|
|
||||||
|
|
||||||
\sa fromLatin1(), fromLocal8Bit(), fromUtf8(), QByteArray::fromStdString()
|
\sa fromLatin1(), fromLocal8Bit(), fromUtf8(), QByteArray::fromStdString()
|
||||||
*/
|
*/
|
||||||
@ -9118,8 +9124,7 @@ QString &QString::setRawData(const QChar *unicode, qsizetype size)
|
|||||||
/*! \fn QString QString::fromStdU16String(const std::u16string &str)
|
/*! \fn QString QString::fromStdU16String(const std::u16string &str)
|
||||||
\since 5.5
|
\since 5.5
|
||||||
|
|
||||||
Returns a copy of the \a str string. The given string is assumed
|
\include qstring.cpp {from-std-string} {UTF-16} {fromUtf16()}
|
||||||
to be encoded in UTF-16.
|
|
||||||
|
|
||||||
\sa fromUtf16(), fromStdWString(), fromStdU32String()
|
\sa fromUtf16(), fromStdWString(), fromStdU32String()
|
||||||
*/
|
*/
|
||||||
@ -9138,8 +9143,7 @@ QString &QString::setRawData(const QChar *unicode, qsizetype size)
|
|||||||
/*! \fn QString QString::fromStdU32String(const std::u32string &str)
|
/*! \fn QString QString::fromStdU32String(const std::u32string &str)
|
||||||
\since 5.5
|
\since 5.5
|
||||||
|
|
||||||
Returns a copy of the \a str string. The given string is assumed
|
\include qstring.cpp {from-std-string} {UCS-4} {fromUcs4()}
|
||||||
to be encoded in UCS-4.
|
|
||||||
|
|
||||||
\sa fromUcs4(), fromStdWString(), fromStdU16String()
|
\sa fromUcs4(), fromStdWString(), fromStdU16String()
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user