MCPcopy
hub / github.com/pocketbase/pocketbase / hasPrefixFold

Function hasPrefixFold

core/db_builder.go:181–187  ·  view source on GitHub ↗

note: the prefix is expected to be ASCII

(str, prefix string)

Source from the content-addressed store, hash-verified

179
180// note: the prefix is expected to be ASCII
181func hasPrefixFold(str, prefix string) bool {
182 if len(str) < len(prefix) {
183 return false
184 }
185
186 return strings.EqualFold(str[:len(prefix)], prefix)
187}

Callers 1

NewQueryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…