MCPcopy Create free account
hub / github.com/angular/dev-infra / gettingDecodingSplitting

Function gettingDecodingSplitting

github-actions/saucelabs/set-saucelabs-env.js:4973–5003  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

4971 } else if (!mimeType.parameters.has("charset") && charset !== null) {
4972 mimeType.parameters.set("charset", charset);
4973 }
4974 }
4975 if (mimeType == null) {
4976 return "failure";
4977 }
4978 return mimeType;
4979 }
4980 function gettingDecodingSplitting(value) {
4981 const input = value;
4982 const position = { position: 0 };
4983 const values = [];
4984 let temporaryValue = "";
4985 while (position.position < input.length) {
4986 temporaryValue += collectASequenceOfCodePoints(
4987 (char) => char !== '"' && char !== ",",
4988 input,
4989 position
4990 );
4991 if (position.position < input.length) {
4992 if (input.charCodeAt(position.position) === 34) {
4993 temporaryValue += collectAnHTTPQuotedString(
4994 input,
4995 position
4996 );
4997 if (position.position < input.length) {
4998 continue;
4999 }
5000 } else {
5001 assert(input.charCodeAt(position.position) === 44);
5002 position.position++;
5003 }
5004 }
5005 temporaryValue = removeChars(temporaryValue, true, true, (char) => char === 9 || char === 32);
5006 values.push(temporaryValue);

Callers 1

getDecodeSplitFunction · 0.70

Calls 4

removeCharsFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected