#include <stringfilter.h>
Like username, character's names, chat, ...
Definition at line 38 of file stringfilter.h.
Public Member Functions | |
| StringFilter (Configuration *config) | |
| ctors. | |
| ~StringFilter () | |
| 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. | |
Private Types | |
| typedef std::list< std::string > | Slangs |
| typedef Slangs::iterator | SlangIterator |
Private Attributes | |
| Slangs | mSlangs |
| the formatted Slangs list | |
| bool | mInitialized |
| Set if the list is loaded. | |
| Configuration * | mConfig |
| The config instance. | |
|
|
Definition at line 89 of file stringfilter.h. |
|
|
Definition at line 88 of file stringfilter.h. |
|
|
ctors.
Definition at line 33 of file stringfilter.cpp. |
|
|
Definition at line 41 of file stringfilter.cpp. |
|
|
Useful to filter slangs automatically, by instance.
Definition at line 77 of file stringfilter.cpp. |
|
|
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. |
|
|
Tells if an email is valid.
Definition at line 106 of file stringfilter.cpp. |
|
|
Load slang list from the config file.
Definition at line 47 of file stringfilter.cpp. |
|
|
Write slang list to the config file.
Definition at line 64 of file stringfilter.cpp. |
|
|
The config instance.
Definition at line 92 of file stringfilter.h. |
|
|
Set if the list is loaded.
Definition at line 91 of file stringfilter.h. |
|
|
the formatted Slangs list
Definition at line 90 of file stringfilter.h. |
1.3.9.1