qt5base-lts/examples
Giuseppe D'Angelo 529f052add Port QRegularExpression to QStringView, drop QStringRef
The idea is pretty simple -- add QRegularExpression matching over
QStringView. When matching over a QString, keep the string
alive (by taking a copy), and set the view onto that string.
Otherwise, just use the view provided by the user (who is then
responsible for ensuring the data stays valid while matching).

Do just minor refactorings to support this use case in a cleaner
fashion.

In QRegularExpressionMatch drop the QStringRef-returning methods, as
they cannot work any more -- in the general case there won't be a
QString to build a QStringRef from.

[ChangeLog][QtCore][QRegularExpression] All the APIs dealing
with QStringRef have been ported to QStringView, following
QStringRef deprecation in Qt 6.0.

Change-Id: Ic367991d9583cc108c045e4387c9b7288c8f1ffd
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2020-05-31 21:46:32 +02:00
..
aggregate install a sane top-level examples.pro file 2012-12-11 13:37:57 +01:00
corelib High-DPI: Remove usages of Qt::AA_UseHighDpiPixmaps 2020-03-30 08:43:02 +01:00
dbus Regenerate examples 2020-02-04 18:50:39 +00:00
embedded Change qHash() to work with size_t instead of uint 2020-04-09 20:03:25 +02:00
gui Regenerate examples 2020-02-04 18:50:39 +00:00
network Torrent example: fix crash 2020-05-11 10:21:29 +02:00
opengl Fix hellowindow example 2020-05-25 17:37:57 +02:00
qmake Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qpa Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
qtconcurrent Regenerate examples 2020-02-04 18:50:39 +00:00
qtestlib Regenerate examples 2020-02-04 18:50:39 +00:00
sql Merge remote-tracking branch 'origin/5.15' into dev 2020-03-11 15:34:21 +01:00
vulkan QtConcurrent::run: accept more then five function's arguments 2020-03-11 14:46:25 +01:00
widgets Port QRegularExpression to QStringView, drop QStringRef 2020-05-31 21:46:32 +02:00
xml examples: avoid int -> QChar conversions 2020-04-29 10:10:36 +02:00
CMakeLists.txt cmake: add examples/opengl 2019-10-07 07:22:17 +00:00
examples.pro Doc: Move touch examples around so they get included in docs 2018-09-14 03:56:22 +00:00
README Remove more references to demos. 2011-07-08 15:36:26 +02:00

Qt is supplied with a number of example applications that have been
written to provide developers with examples of the Qt API in use,
highlight good programming practice, and showcase features found in each of
Qt's core technologies.


Documentation for examples can be found in the Examples section
of the Qt documentation.