BadWordFilter

Engine/source/app/badWordFilter.h

More...

Classes:

Private Types

enum
_Anonymous_ {
  TerminateNotFound = 0xFFFE
  TerminateFound = 0xFFFF
  MaxBadwordLength = 32
}

Public Friends

struct

Private Attributes

Private Static Attributes

randomJunk [MaxBadwordLength+1]
remapTable [257]

Private Functions

Public Functions

bool
addBadWord(const char * word)
bool
containsBadWords(const char * string)
filterString(char * string, const char * replaceStr)
bool

Public Static Functions

bool
setEnabled(bool enable)

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)

Public Static Functions

create()

destroy()

isEnabled()

setEnabled(bool enable)