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

Function packTrigram

agent/filefinder/query.go:88–90  ·  view source on GitHub ↗
(a, b, c byte)

Source from the content-addressed store, hash-verified

86}
87
88func packTrigram(a, b, c byte) uint32 {
89 return uint32(toLowerASCII(a))<<16 | uint32(toLowerASCII(b))<<8 | uint32(toLowerASCII(c))
90}
91
92// searchSnapshot runs the full search pipeline against a single
93// root snapshot: it selects a strategy (prefix, trigram, or

Callers 1

extractQueryTrigramsFunction · 0.85

Calls 1

toLowerASCIIFunction · 0.85

Tested by

no test coverage detected