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

Function toLowerASCII

agent/filefinder/text.go:5–10  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

3import "slices"
4
5func toLowerASCII(b byte) byte {
6 if b >= 'A' && b <= 'Z' {
7 return b + ('a' - 'A')
8 }
9 return b
10}
11
12func normalizeQuery(q string) string {
13 b := make([]byte, 0, len(q))

Callers 11

packTrigramFunction · 0.85
normalizeQueryFunction · 0.85
normalizePathBytesFunction · 0.85
extractTrigramsFunction · 0.85
prefix1Function · 0.85
prefix2Function · 0.85
isSubsequenceFunction · 0.85
longestContiguousMatchFunction · 0.85
countBoundaryHitsFunction · 0.85
equalFoldASCIIFunction · 0.85
hasPrefixFoldASCIIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected