LEFT | RIGHT |
1 #include <emscripten.h> | 1 #include "InvalidFilter.h" |
2 | 2 |
3 #include "InvalidFilter.h" | 3 InvalidFilter::InvalidFilter(const String& text, |
4 #include "tools.h" | 4 const String& reason) |
5 | 5 : Filter(Type::INVALID, text), mReason(reason) |
6 InvalidFilter::InvalidFilter(const std::u16string& text, const std::u16string& r
eason) | |
7 : Filter(text), reason(reason) | |
8 { | 6 { |
9 } | 7 } |
10 | |
11 // API | |
12 extern "C" | |
13 { | |
14 char16_t* EMSCRIPTEN_KEEPALIVE InvalidFilter_get_reason(InvalidFilter* obj, si
ze_t* resultLen) | |
15 { | |
16 return stringToBuffer(obj->get_reason(), resultLen); | |
17 } | |
18 } | |
LEFT | RIGHT |