MCPcopy Index your code
hub / github.com/nodejs/node / collectASequenceOfCodePointsFast

Function collectASequenceOfCodePointsFast

deps/undici/undici.js:4246–4255  ·  view source on GitHub ↗
(char, input, position)

Source from the content-addressed store, hash-verified

4244 }
4245 __name(collectASequenceOfCodePoints, "collectASequenceOfCodePoints");
4246 function collectASequenceOfCodePointsFast(char, input, position) {
4247 const idx = input.indexOf(char, position.position);
4248 const start = position.position;
4249 if (idx === -1) {
4250 position.position = input.length;
4251 return input.slice(start);
4252 }
4253 position.position = idx;
4254 return input.slice(start, position.position);
4255 }
4256 __name(collectASequenceOfCodePointsFast, "collectASequenceOfCodePointsFast");
4257 var ASCII_WHITESPACE_REPLACE_REGEX = /[\u0009\u000A\u000C\u000D\u0020]/g;
4258 function forgivingBase64(data) {

Callers 3

dataURLProcessorFunction · 0.70
parseMIMETypeFunction · 0.70
parseExtensionsFunction · 0.70

Calls 2

sliceMethod · 0.65
indexOfMethod · 0.45

Tested by

no test coverage detected