Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AhoCorasick ¶
type AhoCorasick struct {
// contains filtered or unexported fields
}
func NewAhoCorasick ¶
func NewAhoCorasick() *AhoCorasick
func (*AhoCorasick) BuildFailPointer ¶
func (ac *AhoCorasick) BuildFailPointer()
func (*AhoCorasick) FilterWithWhitelist ¶
func (ac *AhoCorasick) FilterWithWhitelist(text string, whiteListedPositions []Position) string
func (*AhoCorasick) Insert ¶
func (ac *AhoCorasick) Insert(word, replaceText string)
func (*AhoCorasick) MatchPositions ¶
func (wac *AhoCorasick) MatchPositions(text string) []Position
type Replacement ¶
Replacement结构体来记录替换信息
Click to show internal directories.
Click to hide internal directories.