(i: number)
| 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. |
no outgoing calls
no test coverage detected