| Index: compiled/RegExpFilter.h |
| =================================================================== |
| new file mode 100644 |
| --- /dev/null |
| +++ b/compiled/RegExpFilter.h |
| @@ -0,0 +1,23 @@ |
| +#ifndef ADBLOCK_PLUS_REG_EXP_FILTER_H |
| +#define ADBLOCK_PLUS_REG_EXP_FILTER_H |
| + |
| +#include <string> |
| + |
| +#include "Filter.h" |
| +#include "ActiveFilter.h" |
| + |
| +class RegExpFilter : public ActiveFilter |
| +{ |
| +private: |
| + int regexpId; |
| + std::u16string regexpSource; |
| +public: |
| + explicit RegExpFilter(const std::u16string& text, const std::u16string& pattern, |
| + const std::u16string& options); |
| + ~RegExpFilter(); |
| + static Filter* Create(const std::u16string& text); |
| + Type GetType() const; |
| + bool Matches(const std::u16string& location); |
| +}; |
| + |
| +#endif |