Documentation
¶
Index ¶
- func BiggerSublist(sorted []int, val *int) []int
- func Boundary(lastCh *rune, ch *rune) bool
- func Capital(ch *rune) bool
- func FindBestMatch(imatch *[]Result, strInfo map[int][]int, heatmap []int, greaterThan *int, ...)
- func GetHashForString(str string) map[int][]int
- func GetHeatmapStr(str string, groupSeparator *rune) []int
- func IncVec(vec []int, inc *int, beg *int, end *int) []int
- func Word(ch *rune) bool
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BiggerSublist ¶
Return sublist bigger than `val` from sorted `sorted`.
func Boundary ¶
Check if `lastCh` is the end of a word and `ch` the start of the next.
This function is camel-case aware.
func FindBestMatch ¶
func FindBestMatch(imatch *[]Result, strInfo map[int][]int, heatmap []int, greaterThan *int, query string, queryLen int, qIndex int, matchCache *map[int][]Result)
Recursively compute the best match for a string, passed as `strInfo` and `heatmap`, according to `query`.
func GetHashForString ¶
Return map for string where keys are characters. Value is a sorted list of indexes for character occurrences.
Types ¶
Click to show internal directories.
Click to hide internal directories.