MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / wtf8decode

Function wtf8decode

public/javascripts/socket.io.js:6506–6516  ·  view source on GitHub ↗
(byteString)

Source from the content-addressed store, hash-verified

6504 var byteCount;
6505 var byteIndex;
6506 function wtf8decode(byteString) {
6507 byteArray = ucs2decode(byteString);
6508 byteCount = byteArray.length;
6509 byteIndex = 0;
6510 var codePoints = [];
6511 var tmp;
6512 while ((tmp = decodeSymbol()) !== false) {
6513 codePoints.push(tmp);
6514 }
6515 return ucs2encode(codePoints);
6516 }
6517
6518 /*--------------------------------------------------------------------------*/
6519

Callers

nothing calls this directly

Calls 3

ucs2decodeFunction · 0.85
decodeSymbolFunction · 0.85
ucs2encodeFunction · 0.85

Tested by

no test coverage detected