2008-08-07 13:57:40 +00:00
|
|
|
#ifndef AFFUNCTIONS_H
|
|
|
|
#define AFFUNCTIONS_H
|
|
|
|
|
2008-07-29 11:03:26 +00:00
|
|
|
#include "aftypes.h"
|
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
|
|
|
|
2008-08-08 00:23:30 +00:00
|
|
|
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);
|
2008-07-29 11:03:26 +00:00
|
|
|
|
2008-08-08 00:23:30 +00:00
|
|
|
map<int,int> const &getEquivSet();
|
2008-07-29 11:03:26 +00:00
|
|
|
int next_utf8_char(std::string::const_iterator & p, std::string::const_iterator & charStart, std::string::const_iterator end);
|
|
|
|
string codepointToUtf8( int codepoint );
|
2008-08-08 00:23:30 +00:00
|
|
|
string confusable_character_normalise(std::string const &orig);
|
2008-07-31 16:28:24 +00:00
|
|
|
vector<AFPData> makeFuncArgList( AFPData arg );
|
2008-08-08 00:23:30 +00:00
|
|
|
AFPData callFunction(string const &name, AFPData arg);
|
|
|
|
string rmdoubles(string const &orig);
|
|
|
|
string rmspecials(string const &orig);
|
2008-08-07 13:57:40 +00:00
|
|
|
std::size_t utf8_strlen(std::string const &s);
|
|
|
|
std::string utf8_tolower(std::string const &s);
|
|
|
|
|
|
|
|
#endif /* !AFFUNCTIONS_H */
|