qt6-bb10/tests/auto/corelib/text
Thiago Macieira f5021835df qTo*ViewIgnoringNull: further ignore nulls
Commit ba5db13c8d ("QStringView: add
internal qToStringViewIgnoringNull()") said:

  As long as a null QString still returns non-null data(), QStringView's
  QString constructor needs to call isNull(). That's a branch we often
  can do without, so add an internal function that bypasses this
  correctness check.

  It's internal, since we might have a Q6String that returns nullptr
  data() when null, which will remove the need for this function.

For Qt 6, we made QString and QByteArray be able to return nullptr from
data() when null... but that's not enabled by default yet. However, the
begin() functions do return nullptr, so we can avoid the extra branch
the commit was talking about.

Task-number: QTBUG-119750
Change-Id: Ica7a43f6147b49c187ccfffd179e4cf032bc8565
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2023-12-21 11:13:32 -08:00
..
qanystringview QAnyStringView: fix construction from QL1SV for bootstrapped builds 2023-09-03 18:22:06 +02:00
qbytearray QString/QByteArray: add lvalue and rvalue overloads of left/mid/right 2023-10-25 12:01:58 -07:00
qbytearray_large CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
qbytearrayapisymmetry CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qbytearraylist CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qbytearraymatcher CMake: remove check for cxx11_future 2023-08-02 12:36:18 -07:00
qbytearrayview qTo*ViewIgnoringNull: further ignore nulls 2023-12-21 11:13:32 -08:00
qbytedatabuffer CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qchar CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qcollator CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
qlatin1stringmatcher Use BSD-3-Clause license for CMake files 2023-12-20 16:01:40 +01:00
qlatin1stringview CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qlocale Use localized time-zone abbreviations or offset 2023-10-27 10:52:48 +02:00
qregularexpression CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstring tst_QString: explain TransientDefaultLocale better 2023-12-07 23:55:08 +01:00
qstring_no_cast_from_bytearray CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstringapisymmetry tst_QStringApiSymmetry: add more invalid UTF-8 sequences 2023-10-06 06:59:02 +02:00
qstringbuilder tst_QStringBuilder: update the warning re:includes in stringbuilder.cpp 2023-09-20 17:16:28 +02:00
qstringconverter Fix QStringConverter::encodingForName() for trailing `-`, `_` 2023-12-07 05:16:23 +00:00
qstringiterator CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
qstringlist QStringList: add lastIndexOf() overloads 2023-10-22 14:37:57 +03:00
qstringmatcher QStringMatcher: add a method that returns a string view of the pattern 2023-10-21 16:50:16 +03:00
qstringtokenizer CI: Enable tests under corelib/text for Wasm platform 2023-07-10 14:53:34 +02:00
qstringview String-like containers: add implicit conversions towards std:: string views 2023-07-13 16:19:06 +02:00
qtextboundaryfinder tst_QTextBoundaryFinder: clean out the last two foreach uses 2023-08-11 19:58:01 +02:00
qunicodetools CMake: Make corelib tests standalone projects 2023-07-05 15:09:32 +02:00
shared Provide optTitle for a NumberDoubleTestData testcase that needs it 2022-10-11 11:21:38 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00