qt5base-lts/tests/auto/xml/sax/qxmlsimplereader/xmldocs
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
..
not-wf/sa Add a new UTF-8 decoder, similar to the encoder we've just added 2014-01-09 22:34:54 +01:00
valid Moved xml autotests into new directory structure 2011-09-06 10:31:40 +02:00
1-levels-nested-dtd.xml Disallow deep or widely nested entity references. 2013-11-05 15:55:17 +01:00
2-levels-nested-dtd.xml Disallow deep or widely nested entity references. 2013-11-05 15:55:17 +01:00
internal-entity-polynomial-attribute.xml Disallow deep or widely nested entity references. 2013-11-05 15:55:17 +01:00