qt6-bb10/tests/auto/corelib
Marc Mutz a5159cc50a QJsonObject: add some overloads taking QLatin1String
QXmlStreamReader also has QLatin1String overloads, which
greatly benefits parsers, since the vast majority of keys
in both JSON and XML are US-ASCII. This patch adds such an
overload to the JSON parser.

The value() function is all typical parsers need, so even
though many more QJsonObject functions taking QString could
benefit from the same treatment, value() is the single most
important one for read-only JSON access.

Add some more overloads, too, for functions that don't need
more internal scaffolding than value(). Requires adding a
dummy op[](QL1S) (forwarding to the QString overload) so as
not to make

  QJsonObject json;
  json[QLatin1String("key")]; // mutable

ambiguous between const op[](QL1S) and mutable op[](QString).

[ChangeLog][QtCore][QJsonObject] Added value(), op[] const,
find(), constFind(), contains() overloads taking QLatin1String.

Change-Id: I00883028956ad949ba5ba2b18dd8a6a25ad5085b
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
2016-05-10 21:18:46 +00:00
..
animation Updated license headers 2016-01-21 18:55:18 +00:00
codecs Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
global Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
io Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
itemmodels Updated license headers 2016-01-21 18:55:18 +00:00
json QJsonObject: add some overloads taking QLatin1String 2016-05-10 21:18:46 +00:00
kernel Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-25 14:03:45 +02:00
mimetypes Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-27 09:18:05 +02:00
plugin Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-21 09:02:57 +01:00
statemachine Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
thread Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-24 20:37:33 +01:00
tools Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
xml Merge remote-tracking branch 'origin/5.6' into 5.7 2016-03-21 09:02:57 +01:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00