mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-29 08:14:42 +00:00
4ac7f67766
affunctions: change glib to ICU (untested) eval.cpp: remote obsolete libxml include
28 lines
919 B
C++
Executable file
28 lines
919 B
C++
Executable file
#ifndef AFFUNCTIONS_H
|
|
#define AFFUNCTIONS_H
|
|
|
|
#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 );
|
|
std::size_t utf8_strlen(std::string const &s);
|
|
std::string utf8_tolower(std::string const &s);
|
|
|
|
#endif /* !AFFUNCTIONS_H */
|