qt5base-lts/tests/auto/corelib/codecs
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
..
qtextcodec Add a new UTF-8 decoder, similar to the encoder we've just added 2014-01-09 22:34:54 +01:00
utf8 Allow non-character codes in utf8 strings 2013-10-17 09:50:58 +02:00
codecs.pro Moved utf8/ and deleted corelib.pro 2011-11-08 09:22:50 +01:00