qt5base-lts/tests/auto/corelib/json
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
..
bom.json
json.pro Use "shortest" double conversion for JSON 2015-11-23 14:13:48 +00:00
json.qrc Android: Fix json test. 2014-12-22 08:32:39 +01:00
test2.json
test3.json
test.bjson Sanitize JSON test data 2015-12-16 08:54:57 +00:00
test.json Sanitize JSON test data 2015-12-16 08:54:57 +00:00
tst_qtjson.cpp QJsonObject: add some overloads taking QLatin1String 2016-05-10 21:18:46 +00:00