Transition from QRegExp to QRegularExpression

Authored by equaeghe on Feb 13 2018, 9:58 PM.

Description

Transition from QRegExp to QRegularExpression

Qt5 introduced a new regex class, QRegularExpression, that is
supposed to be better. The existing class QRegExp is said to be
unmaintained, buggy, and less featurefull. This patch transitions
Trojita from QRegExp to QRegularExpression. This is done by
initial ‘literal translation’ without making use of any new
functionality. Then, if a test failed, more extensive rewriting
was done to fix the literal translation, also making use of the
extra functionality.

This patch future-proofs Trojitá and paves the way for making use
of the extra functionality QRegularExpression has to offer
(e.g., multiline and multiple matches) in existing and new code.

This patch does not transition the test suite, as we need it to
work as before to test this patch.

Change-Id: Ib8472934274fb97f8c67f44e969a5c75ac434fec

Details

Committed
equaegheMay 17 2018, 8:13 PM
Parents
R546:42680f621bd2: Merge "fix typo in code of qwwsmtpclient"
Branches
Unknown
Tags
Unknown
References
refs/changes/91/991/8