MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / Lookup

Method Lookup

internal/re/rune_tree.go:7–9  ·  view source on GitHub ↗
(s string, caseInsensitive bool)

Source from the content-addressed store, hash-verified

5type RuneMap map[rune]*RuneTree
6
7func (this RuneMap) Lookup(s string, caseInsensitive bool) bool {
8 return this.lookup([]rune(s), caseInsensitive, 0)
9}
10
11func (this RuneMap) lookup(runes []rune, caseInsensitive bool, depth int) bool {
12 if len(runes) == 0 {

Callers 6

TestNewRuneTreeFunction · 0.80
TestNewRuneTree2Function · 0.80
BenchmarkRuneMap_LookupFunction · 0.80
MatchStringMethod · 0.80
MatchMethod · 0.80

Calls 1

lookupMethod · 0.95

Tested by 4

TestNewRuneTreeFunction · 0.64
TestNewRuneTree2Function · 0.64
BenchmarkRuneMap_LookupFunction · 0.64