trie

package
v0.0.0-...-7bbe402 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Trie

type Trie struct {
	// contains filtered or unexported fields
}

func FromWords

func FromWords(words []string) *Trie

func New

func New() *Trie

func (*Trie) Add

func (tr *Trie) Add(str string)

func (*Trie) Contains

func (tr *Trie) Contains(str string) bool

func (*Trie) Match

func (tr *Trie) Match(str string) bool

func (*Trie) MatchBytes

func (tr *Trie) MatchBytes(bytes []byte) bool

func (*Trie) MatchBytesFrom

func (tr *Trie) MatchBytesFrom(bytes []byte, from int) bool

func (*Trie) Pack

func (tr *Trie) Pack() int

Jump to

Keyboard shortcuts

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