qt6-bb10/tests/auto/corelib/text
Marc Mutz e48b4d2b7c Implement support for '0b' prefix in toInt() etc
[ChangeLog][QtCore][QByteArray/QByteArrayView/QLatin1String/QString/QStringView]
The string-to-integer conversion functions (toInt() etc) now support
the 0b prefix for binary literals. That means that base = 0 will
recognize 0b to mean base = 2 and an explicit base = 2 argument will
make toInt() (etc) skip an optional 0b.

[ChangeLog][QtCore][Important Behavior Changes] Due to the
newly-introduced support for 0b (binary) prefixes in integer parsing,
some strings that were previously rejected as invalid now parse as
valid. E.g., Qt 6.3 with autodetected bases would have tried to parse
"0b1" as an octal value and fail, whereas 6.4 will parse it as the
binary literal and return 1.

Fixes: QTBUG-85002
Change-Id: Id4eff72d63619080e5afece4d059b6ffd52f28c8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2022-04-28 08:40:19 +00:00
..
qanystringview Replace uses of _qs with _s in tests 2022-04-07 19:30:17 +02:00
qbytearray Add literal operators for QString/QByteArray to StringLiterals namespace 2022-04-07 09:22:28 +02:00
qbytearrayapisymmetry Silence compiler warning 2021-10-06 15:05:20 +02:00
qbytearraylist QByteArrayList: add join(QByteArrayView) 2021-11-04 01:16:16 +01:00
qbytearraymatcher Q(Static)ByteArrayMatcher: manage indexIn() overloads 2022-01-23 09:48:28 +01:00
qbytearrayview tst_QByteArrayView:: disable failing constexpr checks for GCC 2022-04-01 09:51:29 +02:00
qbytedatabuffer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qchar Cleanup tests that add test data to resources explicitly 2022-02-11 21:54:44 +01:00
qcollator Fix tst_qcollator run time issue on INTEGRITY device 2022-01-12 21:49:02 +00:00
qlatin1stringview Allow brace initialization for some of QLatin1StringView constructors 2022-04-01 19:33:12 +01:00
qlocale Fix qlocale_unix's handling of uiLanguages to take script into account 2022-04-27 17:03:54 +02:00
qregularexpression QRegularExpression: print the pattern when warning 2022-02-22 21:15:31 +01:00
qstring Add literal operators for QString/QByteArray to StringLiterals namespace 2022-04-07 09:22:28 +02:00
qstring_no_cast_from_bytearray testlib: Deprecate QWARN() in favor of qWarning() 2021-08-04 19:31:51 +02:00
qstringapisymmetry Implement support for '0b' prefix in toInt() etc 2022-04-28 08:40:19 +00:00
qstringbuilder tst_QStringBuilder: remove test that doesn't test anything 2021-12-22 13:01:25 +01:00
qstringconverter Replace uses of _qs with _s in tests 2022-04-07 19:30:17 +02:00
qstringiterator Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringlist tst_QStringList: check that join(u'\0') embeds NULs 2021-12-28 23:09:44 +01:00
qstringmatcher Remove the qmake project files 2021-01-07 15:32:28 +01:00
qstringtokenizer QStringTokenizer::toContainer(): allow more types of target containers 2022-03-15 21:05:31 +01:00
qstringview Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
qtextboundaryfinder Cleanup tests that add test data to resources explicitly 2022-02-11 21:54:44 +01:00
qunicodetools Add additional grapheme, word, and sentence break class tests from tr29 2021-11-10 09:44:03 +01:00
shared QString/QByteArray::number(double): Test big numbers 2021-08-17 03:53:45 +02:00
CMakeLists.txt Rename tst_qlatin1string and switch to using QLatin1StringView 2022-03-19 18:51:08 +01:00