fastmatching

package module
v0.0.0-...-1314283 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String2RuneList

func String2RuneList(str string) ([]rune, int)

Types

type ByRune

type ByRune []*searchItem

func (ByRune) Len

func (a ByRune) Len() int

func (ByRune) Less

func (a ByRune) Less(i, j int) bool

func (ByRune) Swap

func (a ByRune) Swap(i, j int)

type FastMatching

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

func NewFastMatching

func NewFastMatching() *FastMatching

func (*FastMatching) Clear

func (svc *FastMatching) Clear()

func (*FastMatching) DumpSearchList

func (svc *FastMatching) DumpSearchList()

func (*FastMatching) RegistData

func (svc *FastMatching) RegistData(keyword string, value int32) bool

func (*FastMatching) RetrieveData

func (svc *FastMatching) RetrieveData(keyword string) []int32

type IFastMatching

type IFastMatching interface {
	RegistData(keyword string, value int32) bool
	RetrieveData(keyword string) []int32
	Clear()
}

Jump to

Keyboard shortcuts

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