Thanks to Mate Barany for pointing out that the *_idx variables are now all reduced to serving (via comparison with -1) as booleans. Replace them with a "where in the parse are we ?" enum variable and a "do we need some digits ?" bool. Restructure to make that work. This needed to recognize (the letters that make up) Inf and NaN so as to know when not to object to a lack of digits. Since NumericTokenizer already has a matcher for those, export its access to that as a public method and use that to simplify its own uses of the matcher. Added some test-cases suggested by this, that actually pass in the parent, as qt_asciiToDouble() could see the result was malformed in any case, even when they weren't caught by bad digit-group sizes (as "inf,000", "1,inf", "NaN,000" and "1,NaN" were). Pick-to: 6.8 6.5 Task-number: QTBUG-134913 Change-Id: Ie1730530a4e34a76ba1836a25212e4ec27dad15f Reviewed-by: Mate Barany <mate.barany@qt.io> (cherry picked from commit d1879c3a399091693e690f970a113510e705d4d3) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%