mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 23:40:19 +00:00
1e98809fde
- cleanups for affunctions, aftypes
29 lines
1.1 KiB
C++
Executable file
29 lines
1.1 KiB
C++
Executable file
#ifndef AFFUNCTIONS_H
|
|
#define AFFUNCTIONS_H
|
|
|
|
#include "aftypes.h"
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
AFPData af_length(std::vector<AFPData> const &args);
|
|
AFPData af_lcase(std::vector<AFPData> const &args);
|
|
AFPData af_ccnorm(std::vector<AFPData> const &args);
|
|
AFPData af_rmdoubles(std::vector<AFPData> const &args);
|
|
AFPData af_specialratio(std::vector<AFPData> const &args);
|
|
AFPData af_rmspecials(std::vector<AFPData> const &args);
|
|
AFPData af_norm(std::vector<AFPData> const &args);
|
|
AFPData af_count(std::vector<AFPData> const &args);
|
|
|
|
map<int,int> const &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(std::string const &orig);
|
|
vector<AFPData> makeFuncArgList( AFPData arg );
|
|
AFPData callFunction(string const &name, AFPData arg);
|
|
string rmdoubles(string const &orig);
|
|
string rmspecials(string const &orig);
|
|
std::size_t utf8_strlen(std::string const &s);
|
|
std::string utf8_tolower(std::string const &s);
|
|
|
|
#endif /* !AFFUNCTIONS_H */
|