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

Function gettingDecodingSplitting

deps/undici/undici.js:5951–5981  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

5949 }
5950 __name(extractMimeType, "extractMimeType");
5951 function gettingDecodingSplitting(value) {
5952 const input = value;
5953 const position = { position: 0 };
5954 const values = [];
5955 let temporaryValue = "";
5956 while (position.position < input.length) {
5957 temporaryValue += collectASequenceOfCodePoints(
5958 (char) => char !== '"' && char !== ",",
5959 input,
5960 position
5961 );
5962 if (position.position < input.length) {
5963 if (input.charCodeAt(position.position) === 34) {
5964 temporaryValue += collectAnHTTPQuotedString(
5965 input,
5966 position
5967 );
5968 if (position.position < input.length) {
5969 continue;
5970 }
5971 } else {
5972 assert(input.charCodeAt(position.position) === 44);
5973 position.position++;
5974 }
5975 }
5976 temporaryValue = removeChars(temporaryValue, true, true, (char) => char === 9 || char === 32);
5977 values.push(temporaryValue);
5978 temporaryValue = "";
5979 }
5980 return values;
5981 }
5982 __name(gettingDecodingSplitting, "gettingDecodingSplitting");
5983 function getDecodeSplit(name, list) {
5984 const value = list.get(name, true);

Callers 1

getDecodeSplitFunction · 0.70

Calls 5

removeCharsFunction · 0.70
assertFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected