[Purpose] Port QRegExp to QRegularExpression
ClosedPublic

Authored by ahmadsamir on Jan 6 2020, 9:43 AM.

Details

Summary

QRegExp::exactMatch -> QRegularExpression::anchoredPattern()
QRegExp::Wildcard -> QRegularExpression::wildcardToRegularExpression()

Replace one macro with a const char*.

Replace [\\w_] with [\\w], as \w matches a "word" character (alphanumeric
plus "_" among other things); see https://perldoc.perl.org/perlre.html

Test Plan

make && ctest

Diff Detail

Repository
R495 Purpose Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahmadsamir created this revision.Jan 6 2020, 9:43 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptJan 6 2020, 9:43 AM
ahmadsamir requested review of this revision.Jan 6 2020, 9:43 AM
apol accepted this revision.Jan 6 2020, 11:40 PM
This revision is now accepted and ready to land.Jan 6 2020, 11:40 PM
This revision was automatically updated to reflect the committed changes.