mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-24 22:15:26 +00:00
305efb0961
- copyright header for all files
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2008 Andrew Garrett.
|
|
* Copyright (c) 2008 River Tarnell <river@wikimedia.org>
|
|
* Derived from public domain code contributed by Victor Vasiliev.
|
|
*
|
|
* Permission is granted to anyone to use this software for any purpose,
|
|
* including commercial applications, and to alter it and redistribute it
|
|
* freely. This software is provided 'as-is', without any express or
|
|
* implied warranty.
|
|
*/
|
|
|
|
#ifndef AFFUNCTIONS_H
|
|
#define AFFUNCTIONS_H
|
|
|
|
#include <map>
|
|
#include <vector>
|
|
|
|
#include "aftypes.h"
|
|
|
|
namespace afp {
|
|
|
|
datum af_length (std::vector<datum> const &args);
|
|
datum af_lcase (std::vector<datum> const &args);
|
|
datum af_ccnorm (std::vector<datum> const &args);
|
|
datum af_rmdoubles (std::vector<datum> const &args);
|
|
datum af_specialratio (std::vector<datum> const &args);
|
|
datum af_rmspecials (std::vector<datum> const &args);
|
|
datum af_norm (std::vector<datum> const &args);
|
|
datum af_count (std::vector<datum> const &args);
|
|
|
|
std::string confusable_character_normalise(std::string const &orig);
|
|
std::string rmdoubles(std::string const &orig);
|
|
std::string rmspecials(std::string const &orig);
|
|
|
|
} // namespace afp
|
|
|
|
#endif /* !AFFUNCTIONS_H */
|