Index: compiled/RegExpFilter.cpp |
=================================================================== |
new file mode 100644 |
--- /dev/null |
+++ b/compiled/RegExpFilter.cpp |
@@ -0,0 +1,24 @@ |
+#include <emscripten/bind.h> |
+ |
+#include "RegExpFilter.h" |
+ |
+RegExpFilter::RegExpFilter(const std::wstring& text) |
+ : ActiveFilter(text) |
+{ |
+} |
+ |
+RegExpFilter* RegExpFilter::Create(const std::wstring& text) |
+{ |
+ return new RegExpFilter(text); |
+} |
+ |
+Filter::Type RegExpFilter::GetType() const |
+{ |
+ return Type::BLOCKING; |
+} |
+ |
+EMSCRIPTEN_BINDINGS(regexpfilter) |
+{ |
+ using namespace emscripten; |
+ class_<RegExpFilter,base<ActiveFilter>>("RegExpFilter"); |
+} |