qt5base-lts/tests/auto/corelib
Thiago Macieira f89fd779fc Overhaul a little the QUrl error reporting.
Keep the original QString that triggered the parsing error, instead of
just one QChar. This provides more powerful error messages, like:

 Invalid IPv6 address; source was "http://[:::]";  scheme = "http", host = ""
 (QUrl cannot keep invalid hostnames)

 Invalid port or port number out of range; source was "http://example.com:abc";  scheme = "http", host = "example.com"
 (QUrl cannot keep a non-numeric port number)

 Invalid path (character '%' not permitted); source was "foo:/path%?";  scheme = "foo", path = "/path%25%1F"
 (the tolerant parser runs first, so the faulty component is fixed)

This stores the error state in a special structure which is not
allocated under normal conditions, keeping the memory consumption
down. On 32-bit systems, QUrlPrivate does not increase in size; on
64-bit systems, it grows by 8 bytes.

Change-Id: I93d798d43401dfeb9fca7b6eed7ea758da10136b
Reviewed-by: David Faure <faure@kde.org>
2012-10-02 22:34:42 +02:00
..
animation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
codecs Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
global QFlags: use unsigned int when the enum's underlying is unsigned 2012-09-28 23:50:10 +02:00
io Overhaul a little the QUrl error reporting. 2012-10-02 22:34:42 +02:00
itemmodels QModelIndex: clean up integer size confusion in the API 2012-09-22 20:45:12 +02:00
json Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
kernel Make documentation of QVariant::isNull more explicit. 2012-09-29 02:31:35 +02:00
mimetypes Use QStringList::join(QChar) overload where applicable [QtCore] 2012-09-23 23:30:18 +02:00
plugin Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
statemachine Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
thread Move QFutureSynchronizer back to QtCore 2012-09-28 23:50:10 +02:00
tools Test: Split tst_QVarLengthArray::oldTests 2012-09-27 21:13:52 +02:00
xml Remove duplicate words and punctuation from documentation. 2012-09-26 04:03:20 +02:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00