MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / readRunes

Function readRunes

service/str.go:69–79  ·  view source on GitHub ↗
(words []string)

Source from the content-addressed store, hash-verified

67}
68
69func readRunes(words []string) [][]rune {
70 var dict [][]rune
71
72 for _, word := range words {
73 word = strings.ToLower(word)
74 l := bytes.TrimSpace([]byte(word))
75 dict = append(dict, bytes.Runes(l))
76 }
77
78 return dict
79}
80
81func AcSearch(findText string, dict []string, stopImmediately bool) (bool, []string) {
82 if len(dict) == 0 {

Callers 1

InitAcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected