diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-08-23 07:07:11 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2010-08-24 06:57:53 (GMT) |
commit | 2916b0749902ee51a3deab982e53189e72c3b693 (patch) | |
tree | 6d3b905428ce0585cca8f171e0f220ec80d15919 /src/corelib/tools/qstring.h | |
parent | 10e69e1d5069efa24dd70ef3fb5f9ef827ff9a4a (diff) | |
download | Qt-2916b0749902ee51a3deab982e53189e72c3b693.zip Qt-2916b0749902ee51a3deab982e53189e72c3b693.tar.gz Qt-2916b0749902ee51a3deab982e53189e72c3b693.tar.bz2 |
Added encoding conversion functions to QStringRef.
Reviewed-by: Olivier Goffart
Diffstat (limited to 'src/corelib/tools/qstring.h')
-rw-r--r-- | src/corelib/tools/qstring.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring.h b/src/corelib/tools/qstring.h index 7f7e475..2252353 100644 --- a/src/corelib/tools/qstring.h +++ b/src/corelib/tools/qstring.h @@ -1161,6 +1161,12 @@ public: inline const QChar *data() const { return unicode(); } inline const QChar *constData() const { return unicode(); } + QByteArray toAscii() const Q_REQUIRED_RESULT; + QByteArray toLatin1() const Q_REQUIRED_RESULT; + QByteArray toUtf8() const Q_REQUIRED_RESULT; + QByteArray toLocal8Bit() const Q_REQUIRED_RESULT; + QVector<uint> toUcs4() const Q_REQUIRED_RESULT; + inline void clear() { m_string = 0; m_position = m_size = 0; } QString toString() const; inline bool isEmpty() const { return m_size == 0; } |