OLD | NEW |
(Empty) | |
| 1 #include <emscripten/bind.h> |
| 2 |
| 3 #include "RegExpFilter.h" |
| 4 |
| 5 RegExpFilter::RegExpFilter(const std::wstring& text) |
| 6 : ActiveFilter(text) |
| 7 { |
| 8 } |
| 9 |
| 10 RegExpFilter* RegExpFilter::Create(const std::wstring& text) |
| 11 { |
| 12 return new RegExpFilter(text); |
| 13 } |
| 14 |
| 15 Filter::Type RegExpFilter::GetType() const |
| 16 { |
| 17 return Type::BLOCKING; |
| 18 } |
| 19 |
| 20 EMSCRIPTEN_BINDINGS(regexpfilter) |
| 21 { |
| 22 using namespace emscripten; |
| 23 class_<RegExpFilter,base<ActiveFilter>>("RegExpFilter"); |
| 24 } |
OLD | NEW |