Initial commit: client source
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
class CInsultChecker
|
||||
{
|
||||
public:
|
||||
CInsultChecker& GetSingleton();
|
||||
|
||||
public:
|
||||
CInsultChecker();
|
||||
virtual ~CInsultChecker();
|
||||
|
||||
void Clear();
|
||||
|
||||
void AppendInsult(const std::string& c_rstInsult);
|
||||
bool IsInsultIn(const char* c_szLine, UINT uLineLen);
|
||||
void FilterInsult(char* szLine, UINT uLineLen);
|
||||
|
||||
private:
|
||||
bool __GetInsultLength(const char* c_szWord, UINT* puInsultLen);
|
||||
bool __IsInsult(const char* c_szWord);
|
||||
|
||||
private:
|
||||
std::list<std::string> m_kList_stInsult;
|
||||
};
|
||||
Reference in New Issue
Block a user