qt6-bb10/tests/auto/corelib/text/qstring
Ahmad Samir b8b675014f QString: don't detach in remove(QChar ch, Qt::CaseSensitivity cs)
- If the string isn't shared, don't call detach(), instead remove characters
  matching ch, and resize()
- If the string is shared, create a new string, and copy all characters
  except the ones that would be removed, see task for details

Update unittets so that calls to this overload of remove() test both code
paths (replace() calls remove(QChar, cs) internally).

Drive-by change: use QCOMPARE() instead of QTEST()

Task-number: QTBUG-106181
Change-Id: I1fa08cf29baac2560fca62861fc4a81967b54e92
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-11-04 03:06:30 +02:00
..
.gitignore Move text-related code out of corelib/tools/ to corelib/text/ 2019-07-10 17:05:30 +02:00
CMakeLists.txt tst_qstring: port away from deprecated APIs 2022-08-27 02:07:54 +02:00
double_data.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
tst_qstring.cpp QString: don't detach in remove(QChar ch, Qt::CaseSensitivity cs) 2022-11-04 03:06:30 +02:00
tst_qstring_mac.mm Move QMacAutoReleasePool from qglobal.h to qcore_mac_p.h 2022-09-01 13:26:30 +02:00