qt5base-lts/examples/widgets/tools
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
..
codecs Port QRegularExpression to QStringView, drop QStringRef 2020-05-31 21:46:32 +02:00
completer Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
customcompleter Regenerate examples 2020-02-04 18:50:39 +00:00
echoplugin Regenerate examples 2020-02-04 18:50:39 +00:00
i18n Change qHash() to work with size_t instead of uint 2020-04-09 20:03:25 +02:00
plugandpaint CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
regularexpression Examples/RegularExpressionDialog: remove deprecated options 2020-05-23 10:53:24 +02:00
settingseditor Merge remote-tracking branch 'origin/5.15' into dev 2020-04-08 20:11:39 +02:00
styleplugin CMake: Regenerate examples/widgets/ projects 2020-04-29 22:48:38 +02:00
treemodelcompleter Merge "Merge remote-tracking branch 'origin/wip/cmake' into dev" 2020-02-11 10:19:42 +01:00
undo Merge remote-tracking branch 'origin/5.15' into dev 2020-03-04 14:39:18 +00:00
undoframework Regenerate examples 2020-02-04 18:50:39 +00:00
.prev_CMakeLists.txt Remove the regexp example 2020-03-31 15:28:23 +02:00
CMakeLists.txt CMake: Add qt6_add_plugin public API 2020-04-22 09:51:12 +02:00
tools.pro Remove the regexp example 2020-03-31 15:28:23 +02:00