Documentation ¶
Index ¶
- Constants
- type Group
- type Node
- type Trie
- func (tree *Trie) Add(word string) (no string)
- func (tree *Trie) Del(word string)
- func (tree *Trie) Filter(text string) string
- func (tree *Trie) FindAll(text string) []*Group
- func (tree *Trie) FindIn(text string) (bool, string)
- func (tree *Trie) FindInReturnNo(text string) (bool, string, string)
- func (tree *Trie) Replace(text string, character rune) string
- func (tree *Trie) Validate(text string) (bool, string)
- func (tree *Trie) ValidateReturnNo(text string) (bool, string, string)
Constants ¶
View Source
const (
Empty = ""
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trie ¶
type Trie struct {
Root *Node
}
func (*Trie) FindInReturnNo ¶ added in v1.1.29
FindInReturnNo 判断text中是否含有词库中的词
Click to show internal directories.
Click to hide internal directories.