/* * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original * location: git://neueland.iserlohn-fortress.net/smolbote.git * * SPDX-License-Identifier: GPL-3.0 */ #ifndef REGEXP_H #define REGEXP_H #include /*! * Regular Expression class for AdBlockPlus filters */ class RegExp : public QRegularExpression { public: explicit RegExp(const QString &pattern = "", PatternOptions options = NoPatternOption); bool hasMatch(const QString &subject, int offset=0, MatchType matchType=NormalMatch, MatchOptions matchOptions=NoMatchOption) const; void setWildcardPattern(const QString &pattern); }; #endif // REGEXP_H