MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / MatchString

Method MatchString

internal/re/regexp.go:111–123  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

109}
110
111func (this *Regexp) MatchString(s string) bool {
112 if this.keywordsMap != nil {
113 var b = this.keywordsMap.Lookup(s, this.isCaseInsensitive)
114 if !b {
115 return false
116 }
117 if this.isStrict {
118 return true
119 }
120 }
121
122 return this.rawRegexp.MatchString(s)
123}
124
125func (this *Regexp) Match(s []byte) bool {
126 if this.keywordsMap != nil {

Callers 15

GetFunction · 0.80
IsValidNameFunction · 0.80
MatchMethod · 0.80
CleanAllMethod · 0.80
doShutdownMethod · 0.80
doPageLookupMethod · 0.80
fetchKeyMethod · 0.80
doHostRedirectMethod · 0.80
doCheckReferersMethod · 0.80
httpParseHostFunction · 0.80

Calls 1

LookupMethod · 0.80