mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-25 14:35:54 +00:00
b283904b81
* Revert r38187 for now: ** Introduced a memory leak. ** Used an unnecessary library. The point is taken, and this will be fixed in a few days (using glibc instead). * Fix logic error in boolean ops. * Integrate with the PHP abuse filter using AbuseFilterParserNative class. * Fix memory leak. * Fix a few miscellaneous bugs
21 lines
750 B
C++
Executable file
21 lines
750 B
C++
Executable file
#include "aftypes.h"
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
typedef AFPData(*AFPFunction)(vector<AFPData>);
|
|
|
|
extern map<string,AFPFunction> af_functions;
|
|
|
|
void af_registerfunction( string name, AFPFunction method );
|
|
void registerBuiltinFunctions();
|
|
AFPData callFunction( string name, vector<AFPData> args );
|
|
bool isFunction( string name );
|
|
map<int,int> getEquivSet();
|
|
int next_utf8_char(std::string::const_iterator & p, std::string::const_iterator & charStart, std::string::const_iterator end);
|
|
string codepointToUtf8( int codepoint );
|
|
string confusable_character_normalise( string orig );
|
|
vector<AFPData> makeFuncArgList( AFPData arg );
|
|
AFPData callFunction( string name, AFPData arg );
|
|
string rmdoubles( string orig );
|
|
string rmspecials( string orig );
|