1
0
looqs/shared/wildcardmatcher.h

18 linhas
320 B
C

2022-05-31 10:13:34 +02:00
#ifndef WILDCARDMATCHER_H
#define WILDCARDMATCHER_H
#include <QStringList>
#include <QRegExp>
class WildcardMatcher
{
private:
QVector<QRegExp> regexes;
QStringList patterns;
public:
WildcardMatcher();
bool match(QString haystack) const;
void setPatterns(QStringList patterns);
};
#endif // WILDCARDMATCHER_H