OLD | NEW |
(Empty) | |
| 1 #ifndef ADBLOCK_PLUS_ELEM_HIDE_BASE_H |
| 2 #define ADBLOCK_PLUS_ELEM_HIDE_BASE_H |
| 3 |
| 4 #include <cstddef> |
| 5 #include <string> |
| 6 |
| 7 #include "ActiveFilter.h" |
| 8 |
| 9 class ElemHideBase : public ActiveFilter |
| 10 { |
| 11 private: |
| 12 std::u16string selector; |
| 13 public: |
| 14 ElemHideBase(const std::u16string& text, const std::u16string& domains, |
| 15 const std::u16string& selector); |
| 16 static Type Parse(const std::u16string& text, size_t* domainsEnd, |
| 17 size_t* selectorStart, size_t* prefixEnd = nullptr, |
| 18 size_t* regexpStart = nullptr, size_t* regexpEnd = nullptr, |
| 19 size_t* suffixStart = nullptr); |
| 20 static Filter* Create(const std::u16string& text); |
| 21 |
| 22 const std::u16string GetSelector() const |
| 23 { |
| 24 return selector; |
| 25 } |
| 26 |
| 27 const std::u16string GetSelectorDomain() const; |
| 28 }; |
| 29 |
| 30 #endif |
OLD | NEW |