internal

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SuffixTree

type SuffixTree struct {
	Num  int32
	Ends []string
	Sons map[rune]*SuffixTree
}

后缀索引,string->T的映射,支持模糊键值搜索

func NewSuffixTree

func NewSuffixTree() *SuffixTree

func (*SuffixTree) Add

func (tree *SuffixTree) Add(s string) bool

func (*SuffixTree) Del

func (tree *SuffixTree) Del(s string) bool

func (*SuffixTree) Search

func (tree *SuffixTree) Search(s string) (r []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL