BadWordFilter
Engine/source/app/badWordFilter.h
Classes:
Private Types
enum
_Anonymous_ { TerminateNotFound = 0xFFFE TerminateFound = 0xFFFF MaxBadwordLength = 32 }
Public Friends
struct
Private Attributes
Private Static Attributes
Private Functions
Public Functions
bool
addBadWord(const char * word)
bool
containsBadWords(const char * string)
filterString(char * string, const char * replaceStr)
const char *
bool
setDefaultReplaceStr(const char * str)
Detailed Description
Private Types
@39
Enumerator
- TerminateNotFound = 0xFFFE
- TerminateFound = 0xFFFF
- MaxBadwordLength = 32
Public Friends
Private Attributes
U32 curOffset
char defaultReplaceStr [32]
Vector< FilterTable * > filterTables
Private Static Attributes
bool filteringEnabled
U8 randomJunk [MaxBadwordLength+1]
U8 remapTable [257]
Private Functions
BadWordFilter()
~BadWordFilter()
Public Functions
addBadWord(const char * word)
containsBadWords(const char * string)
filterString(char * string, const char * replaceStr)
getDefaultReplaceStr()
setDefaultReplaceStr(const char * str)