summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstringview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qstringview.h')
-rw-r--r--src/corelib/tools/qstringview.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qstringview.h b/src/corelib/tools/qstringview.h
index 0cfa9e11335..f3f3f52e084 100644
--- a/src/corelib/tools/qstringview.h
+++ b/src/corelib/tools/qstringview.h
@@ -218,6 +218,10 @@ public:
// QString API
//
+ QByteArray toLatin1() const Q_REQUIRED_RESULT { return qConvertToLatin1(*this); }
+ QByteArray toUtf8() const Q_REQUIRED_RESULT { return qConvertToUtf8(*this); }
+ QByteArray toLocal8Bit() const Q_REQUIRED_RESULT { return qConvertToLocal8Bit(*this); }
+ inline QVector<uint> toUcs4() const Q_REQUIRED_RESULT;
Q_DECL_CONSTEXPR QChar at(qssize_t n) const { return (*this)[n]; }