MCPcopy Create free account
hub / github.com/codeaashu/claude-code / indexPath

Method indexPath

src/native-ts/file-index/index.ts:156–167  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

154 // of paths missing any needle letter (89% survival for broad queries like
155 // "test" → still a 10%+ free win; 90%+ rejection for rare chars).
156 private indexPath(i: number): void {
157 const lp = this.paths[i]!.toLowerCase()
158 this.lowerPaths[i] = lp
159 const len = lp.length
160 this.pathLens[i] = len
161 let bits = 0
162 for (let j = 0; j < len; j++) {
163 const c = lp.charCodeAt(j)
164 if (c >= 97 && c <= 122) bits |= 1 << (c - 97)
165 }
166 this.charBits[i] = bits
167 }
168
169 /**
170 * Search for files matching the query using fuzzy matching.

Callers 2

buildAsyncMethod · 0.95
buildIndexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected