qt5base-lts/tests/auto/corelib/codecs/qtextcodec
Thiago Macieira 8dd47e34b9 Add a new UTF-8 decoder, similar to the encoder we've just added
Like before, this is taken from the existing QUrl code and is optimized for
ASCII handling (for the same reasons). And like previously, make
QString::fromUtf8 use a stateless version of the codec, which is faster.

There's a small change in behavior in the decoding: we insert a U+FFFD for
each byte that cannot be decoded properly. Previously, it would "eat" all bad
high-bit bytes and replace them all with one single U+FFFD. Either behavior is
allowed by the UTF-8 specifications, even though this new behavior will cause
misalignment in the Bradley Kuhn sample UTF-8 text.

Change-Id: Ib1b1f0b4291293bab345acaf376e00204ed87565
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2014-01-09 22:34:54 +01:00
..
echo Replace use of putenv in test case 2013-11-04 11:16:16 +01:00
test don't test Qt::codecForHtml() - build with -no-gui 2013-10-16 17:10:15 +02:00
.gitattributes Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
.gitignore Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
korean.txt Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
QT4-crashtest.txt Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00
qtextcodec.pro Remove Symbian-specific code from tests. 2011-09-29 06:41:42 +02:00
tst_qtextcodec.cpp Add a new UTF-8 decoder, similar to the encoder we've just added 2014-01-09 22:34:54 +01:00
utf8.txt Moving relevant tests to corelib/codecs 2011-08-26 08:49:59 +02:00