#include <string>
#include <stdexcept>
#include <utility>
#include <abuse/Dnsbl.h>
#include <abuse/RegEx.h>
Go to the source code of this file.
Classes | |
class | EmailExtractor |
Extract all email addresses from a string. More... | |
Functions | |
std::string | getDomain (const std::string &email) throw (std::runtime_error) |
return the domain (right of @) part of an email | |
std::string | codeToString (Result r) throw (std::runtime_error) |
return the string representation of Result, or runtime_error if invalid Result | |
Result | stringToCode (const std::string &s) throw (std::runtime_error) |
return the result code given a string representation, throw a runtime_error if not found | |
bool | similar (const std::string &s1, const std::string &s2) |
return true if s1 is "similar" to s2, please look at impl to know what I mean | |
std::string | domainFromHostname (const std::string &host) |
extract the domain part of an URL | |
std::string | tolow (const std::string &) |
convert to lower case | |
std::string | tolowCopy (const std::string &) |
convert to lower case, does not change the arg | |
std::string | toAnsi (const std::wstring &) |
convert from wstring to string | |
std::string | skipchars (const std::string &str, const std::string &chars=" \t") |
"trim" the string from the specified chars | |
size_t | findWordInsens (const std::string &where, const std::string &what, size_t pos=0) |
size_t | findWord (const std::string &where, const std::string &what, size_t pos0) |
find a substring into a string, "case does matter" version | |
std::pair< size_t, size_t > | nextWord (const std::string &where, size_t pos) |
std::pair< size_t, size_t > | isolateWord (const std::string &where, size_t pos) |
std::string | fetchKeyword (const std::string &line) |
size_t | LocEmailInComment (const std::string &str, size_t pos) |
bool | LocAbuseInLine (const std::string &str, size_t pos) |
size_t | FetchNextEmail (const std::string &str, size_t pos, std::list< std::string > &emails) |
size_t | FetchNextURL (const std::string &str, size_t pos, std::string &strUrl) |
bool | LocEmailAfterRefWord (const std::string &whoisstr, const std::string &refWord, std::list< std::string > &emails) |
bool | validIPv4address (const char *ip) |
std::string | validIpUrlFormat (const char *ipUrl, bool &isIpFormat) |
std::string | getPcreVersion () |
get the pcre library version | |
std::string | UrlDigitsToIPDot (std::string Url) |
std::string | removeEscapeUrlChars (const char *chUrl) |
__inline const char * | getComputerName () |
return computer's name |