<table><tr><td style="">ahmadsamir updated this revision to Diff 71618.<br />ahmadsamir retitled this revision from "Port regex search to QRegularExpression" to "Port the search interface from QRegExp to QRegularExpression".<br />ahmadsamir edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-lfuwd4o5wa2ndpt/">(Show Details)</a><br />ahmadsamir edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-mu7acvbppndmt3v/">(Show Details)</a><br />ahmadsamir added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D23457">View Revision</a></tr></table><br /><div><div><p>Verbatim commit message</p></div></div><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Do away with</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Remove</span> the kateregexp cla<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">ss; move isMultiLine() to kateregexpsearch</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">ss:</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- \s can match a newline</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> - Move isMultiLine() and repairPattern() to kateregexpsearch; merge</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Dot '.' will match any character except a newline by default; it can</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> them into one function</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> be set to match a newline if QRegularExpression::DotMatchesEverythingOption</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Dot '.' character will match any character except a newline by default</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);"> is set, right now it can be set implicitly as a match directive, '(?s)'</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- Explicitly enable QRegularExpression::MultilineOption</span>, <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">in</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">for the rationale</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">see </span>the <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">search pattern</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">comment at the top of KateRegExpSearch::search()</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">- Explicitly enable QRegularExpression::MultilineOption, more details about</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">- KateCommands::SedReplace::InteractiveSedReplacer::InteractiveSedReplacer()</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">that are in KateRegExpSearch::search()</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">was updated to use QRegularExpression, but not tested</span><br />
- Update the relevant unit tests (searchbar_test, regexpsearch_test)</div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;">All unit tests pass<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">,</span> except for vimode_emulatedcommandbar<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">; and bug313759<br />
which seg faults.</span><br />
<br />
<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">S</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Reguarl expression s</span>earch <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">away,</span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">in kate works.</span> <span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">test it for as long as possible </span><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">Should be tested thoroughly<br />
</span>before commi<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">t</span>ting<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"> it.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R39 KTextEditor</div></div></div><br /><div><strong>CHANGES SINCE LAST UPDATE</strong><div><a href="https://phabricator.kde.org/D23457?vs=71617&id=71618">https://phabricator.kde.org/D23457?vs=71617&id=71618</a></div></div><br /><div><strong>BRANCH</strong><div><div>l-qregularexpression (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23457">https://phabricator.kde.org/D23457</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/src/regexpsearch_test.cpp<br />
autotests/src/searchbar_test.cpp<br />
src/CMakeLists.txt<br />
src/document/katedocument.cpp<br />
src/search/kateplaintextsearch.cpp<br />
src/search/kateregexp.cpp<br />
src/search/kateregexp.h<br />
src/search/kateregexpsearch.cpp<br />
src/search/kateregexpsearch.h<br />
src/search/katesearchbar.cpp<br />
src/search/katesearchbar.h<br />
src/utils/katesedcmd.cpp<br />
src/utils/katesedcmd.h</div></div></div><br /><div><strong>To: </strong>ahmadsamir, KTextEditor, dhaumann, cullmann<br /><strong>Cc: </strong>kde-frameworks-devel, kwrite-devel, LeGast00n, GB_2, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann<br /></div>