(value)
| 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); |
no test coverage detected