341854a4f3
The existing pattern() method always returns a QString, which means that if the matcher was constructed using a QStringView, pattern() would uncoditionally convert it to a QString. This is useful to check if a match is exact: auto pattern = matcher.patternView(); if (pattern.size() == needle.size() && matcher.indexIn(needle) == 0) .... This may be needed for a later change in QStringList::contains(); regardless of that, this change makes sense on its own. Change-Id: I49018551dd22a8f88cf6b9f878a5166902a26f58 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> |
||
---|---|---|
.. | ||
.gitignore | ||
CMakeLists.txt | ||
tst_qstringmatcher.cpp |