Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DoubleArrayTrie ¶
type DoubleArrayTrie struct {
// contains filtered or unexported fields
}
DoubleArrayTrie trie
func (*DoubleArrayTrie) Build ¶
func (dat *DoubleArrayTrie) Build(words []string) error
Build 构建一个DATrie 要求:
1:必须utf8编码 2:必须不能重复,且递增有序,即必须保证相同前缀的短的在前边,否则会导致访问越界
Click to show internal directories.
Click to hide internal directories.