MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / reduceSetToPatternMatch

Function reduceSetToPatternMatch

plugins/base/macro-condition-folder.cpp:111–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111static void reduceSetToPatternMatch(QSet<QString> &set,
112 const RegexConfig &regex,
113 const std::string &pattern)
114{
115 QSet<QString> copy = set;
116 for (const auto &value : copy) {
117 if (!regex.Matches(value.toStdString(), pattern)) {
118 set.remove(value);
119 }
120 }
121}
122
123void MacroConditionFolder::DirectoryChanged(const QString &path)
124{

Callers 1

DirectoryChangedMethod · 0.85

Calls 1

MatchesMethod · 0.45

Tested by

no test coverage detected