summaryrefslogtreecommitdiffstats
path: root/src/corelib/codecs/qtextcodec.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-30 10:50:44 +0200
committerLars Knoll <lars.knoll@qt.io>2020-05-14 07:46:14 +0200
commitf64a6bd638d399403845fe52e6f8e52889f1f52b (patch)
treef3eda565c343b1b24f8711bc87e973910ec788f4 /src/corelib/codecs/qtextcodec.cpp
parentf437c8c5f9772a0d73c8772b64fea6133d43bcc7 (diff)
Start work on a new API to replace QTextCodec
The new QStringEncoder and QStringDecoder classes (with a common QStringConverter base class) are there to replace QTextCodec in Qt 6. It currently uses a trivial wrapper around the utf encoding functionality. Added some autotests, mostly copied from the text codec tests. Change-Id: Ib6eeee55fba918b9424be244cbda9dfd5096f7eb Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/codecs/qtextcodec.cpp')
-rw-r--r--src/corelib/codecs/qtextcodec.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/corelib/codecs/qtextcodec.cpp b/src/corelib/codecs/qtextcodec.cpp
index 8fef9ccfba..72f9dcc0a8 100644
--- a/src/corelib/codecs/qtextcodec.cpp
+++ b/src/corelib/codecs/qtextcodec.cpp
@@ -339,26 +339,6 @@ static void setup() {}
*/
/*!
- Destroys the ConverterState object.
-*/
-QTextCodec::ConverterState::~ConverterState()
-{
- clear();
-}
-
-void QTextCodec::ConverterState::clear()
-{
- if (clearFn)
- clearFn(this);
- remainingChars = 0;
- invalidChars = 0;
- state_data[0] = 0;
- state_data[1] = 0;
- state_data[2] = 0;
- state_data[3] = 0;
-}
-
-/*!
\class QTextCodec
\inmodule QtCore
\brief The QTextCodec class provides conversions between text encodings.