MCPcopy Create free account
hub / github.com/nodejs/node / equalChars

Function equalChars

test/fixtures/snapshot/typescript.js:142575–142577  ·  view source on GitHub ↗
(ch1, ch2, ignoreCase)

Source from the content-addressed store, hash-verified

142573 && everyInRange(0, patternSpan.length, function (i) { return equalChars(pattern.charCodeAt(patternSpan.start + i), candidate.charCodeAt(candidateSpan.start + i), ignoreCase); });
142574 }
142575 function equalChars(ch1, ch2, ignoreCase) {
142576 return ignoreCase ? toLowerCase(ch1) === toLowerCase(ch2) : ch1 === ch2;
142577 }
142578 function tryCamelCaseMatch(candidate, candidateParts, chunk, ignoreCase) {
142579 var chunkCharacterSpans = chunk.characterSpans;
142580 // Note: we may have more pattern parts than candidate parts. This is because multiple

Callers 1

partStartsWithFunction · 0.85

Calls 1

toLowerCaseFunction · 0.70

Tested by

no test coverage detected