Documentation ¶
Index ¶
- type DFA
- func (f *DFA) AddBadWords(words []string)
- func (f *DFA) Check(txt string) ([]string, []string, bool)
- func (f *DFA) CheckAndReplace(txt string) (string, []string, []string, bool)
- func (f *DFA) FilterInvalidChar(txt ...string) []string
- func (f *DFA) SetInvalidChar(chars string)
- func (f *DFA) SetReplaceStr(str string)
- type Node
- type Trie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DFA ¶
type DFA struct {
// contains filtered or unexported fields
}
func (*DFA) AddBadWords ¶
func (*DFA) CheckAndReplace ¶
func (*DFA) FilterInvalidChar ¶
func (*DFA) SetInvalidChar ¶
func (*DFA) SetReplaceStr ¶
type Trie ¶
type Trie struct {
// contains filtered or unexported fields
}
func (*Trie) PrefixMatch ¶
Click to show internal directories.
Click to hide internal directories.