qt6-bb10/tests/auto/corelib
Edward Welbourne 6c435e5dd4 Restore end-of-parse reporting to qstrntod()
Rework QSimpleParsedNumber to store a qsizetype whose sign serves as
ok flag (positive is ok, zero and negative are not) and magnitude is
the number of characters used. This replaces an endptr that was set to
null to indicate !ok, but that deprived us of end-of-parse
information, which is needed for number-parsing. In particular, JS's
parsing of numbers accepts overflow (where qstrntod() flags it as
invalid) as infinity; so qstrntod() does need to say how long the
overflowing (but JS-valid, none the less) number-text was.

Modify all callers of functions using this (recently-introduced) type
and add tests that fail without this fix.

Fixes: QTBUG-108628
Change-Id: I416cd213e1fb8101b1af5a6d43615b970a5db9b4
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2022-11-24 10:06:53 +01:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global QOperatingSystemVersion: add tests for the globals 2022-10-28 14:42:40 -07:00
io Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel tst_QVariant: convert some test functions to table-driven 2022-11-09 04:05:50 -07:00
mimetypes Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
platform Android: Fix incorrect fullscreen dimensions 2022-11-07 09:06:34 +00:00
plugin Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
serialization Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
text Restore end-of-parse reporting to qstrntod() 2022-11-24 10:06:53 +01:00
thread tests: fix build with -no-feature-concurrent 2022-11-09 20:33:49 +01:00
time Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
tools tst_QMap: remove unused std::as_const clone 2022-11-18 18:02:21 +01:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00