looqs/shared/wildcardmatcher.h

18 rindas
342 B
C

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