#include <stringfilter.h>
Public Member Functions | |
StringFilter () | |
ctors. | |
bool | loadSlangFilterList () |
Load slang list from the config file. | |
void | writeSlangFilterList () |
Write slang list to the config file. | |
bool | filterContent (const std::string &text) |
Useful to filter slangs automatically, by instance. | |
bool | isEmailValid (const std::string &email) |
Tells if an email is valid. | |
bool | findDoubleQuotes (const std::string &text) |
find double quotes (") in strings. |
Like username, character's names, chat, ...
Definition at line 33 of file stringfilter.h.
bool utils::StringFilter::loadSlangFilterList | ( | ) |
Load slang list from the config file.
Definition at line 45 of file stringfilter.cpp.
Referenced by StringFilter().
void utils::StringFilter::writeSlangFilterList | ( | ) |
Write slang list to the config file.
Definition at line 62 of file stringfilter.cpp.
bool utils::StringFilter::filterContent | ( | const std::string & | text | ) |
Useful to filter slangs automatically, by instance.
Definition at line 75 of file stringfilter.cpp.
Referenced by ChatChannelManager::tryNewPublicChannel().
bool utils::StringFilter::findDoubleQuotes | ( | const std::string & | text | ) |
find double quotes (") in strings.
Very useful not to make SQL Queries bqsed on names crash I placed it here cause where you've got " you can have slangs...
Definition at line 123 of file stringfilter.cpp.
Referenced by ChatChannelManager::tryNewPublicChannel().