OLD | NEW |
(Empty) | |
| 1 #ifndef ADBLOCK_PLUS_REG_EXP_FILTER_H |
| 2 #define ADBLOCK_PLUS_REG_EXP_FILTER_H |
| 3 |
| 4 #include <string> |
| 5 |
| 6 #include "Filter.h" |
| 7 #include "ActiveFilter.h" |
| 8 |
| 9 class RegExpFilter : public ActiveFilter |
| 10 { |
| 11 private: |
| 12 int regexpId; |
| 13 std::u16string regexpSource; |
| 14 public: |
| 15 explicit RegExpFilter(const std::u16string& text, const std::u16string& patter
n, |
| 16 const std::u16string& options); |
| 17 ~RegExpFilter(); |
| 18 static Filter* Create(const std::u16string& text); |
| 19 Type GetType() const; |
| 20 bool Matches(const std::u16string& location); |
| 21 }; |
| 22 |
| 23 #endif |
OLD | NEW |