MCPcopy Index your code
hub / github.com/coder/coder / equalFoldASCII

Function equalFoldASCII

agent/filefinder/text.go:222–232  ·  view source on GitHub ↗
(a, b []byte)

Source from the content-addressed store, hash-verified

220}
221
222func equalFoldASCII(a, b []byte) bool {
223 if len(a) != len(b) {
224 return false
225 }
226 for i := range a {
227 if toLowerASCII(a[i]) != toLowerASCII(b[i]) {
228 return false
229 }
230 }
231 return true
232}
233
234func hasPrefixFoldASCII(haystack, prefix []byte) bool {
235 if len(prefix) > len(haystack) {

Callers 2

mergeAndScoreFunction · 0.85
scorePathFunction · 0.85

Calls 1

toLowerASCIIFunction · 0.85

Tested by

no test coverage detected