qt5base-lts/tests/auto/corelib
Marc Mutz 41a994db06 QAnyStringView: add substringing operations
Add the full set of substringing operations:
- mid/left/right (old-style)
- sliced/first/last (new style)
- chop/chopped/truncate

The implementation is copied from QUtf8StringView, adjusted to use
sliced() instead of the (ptr, n) ctor, so we need to deal with the tag
twiddling only once, in sliced().

The documentation is also copied from QUtf8StringView.

[ChangeLog][QtCore][QAnyStringView] Added substring functions
sliced(), first(), last(), chop()/chopped(), truncate().

Change-Id: Ief454e9694519e97d9146fa84bc05dda1dded046
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Mate Barany <mate.barany@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-12-08 18:00:16 +00:00
..
animation Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
global qfloat16: make it a built-in metatype 2022-11-28 10:59:35 -08:00
io QMessageLogger: make qFatal categorized and streamable 2022-12-05 04:15:39 +01:00
itemmodels Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
kernel Tidy up in tst_QVariant 2022-12-07 14:58:40 +01: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 QAnyStringView: add substringing operations 2022-12-08 18:00:16 +00:00
thread tests: fix build with -no-feature-concurrent 2022-11-09 20:33:49 +01:00
time tst_QDateTime: explain one test-case more carefully 2022-12-07 14:58:41 +01:00
tools ContainerApiSymmetry: verify Qt containers member erase returns iterator 2022-12-02 21:53:02 +02:00
CMakeLists.txt Change the license of all CMakeLists.txt and *.cmake files to BSD 2022-08-23 23:58:42 +02:00