MCPcopy Index your code
hub / github.com/Macuyiko/minecraft-python / string

Function string

ServerEditorWeb/ace/worker-json.js:1408–1443  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1406 },
1407
1408 string = function () {
1409
1410 var hex,
1411 i,
1412 string = '',
1413 uffff;
1414
1415 if (ch === '"') {
1416 while (next()) {
1417 if (ch === '"') {
1418 next();
1419 return string;
1420 } else if (ch === '\\') {
1421 next();
1422 if (ch === 'u') {
1423 uffff = 0;
1424 for (i = 0; i < 4; i += 1) {
1425 hex = parseInt(next(), 16);
1426 if (!isFinite(hex)) {
1427 break;
1428 }
1429 uffff = uffff * 16 + hex;
1430 }
1431 string += String.fromCharCode(uffff);
1432 } else if (typeof escapee[ch] === 'string') {
1433 string += escapee[ch];
1434 } else {
1435 break;
1436 }
1437 } else {
1438 string += ch;
1439 }
1440 }
1441 }
1442 error("Bad string");
1443 },
1444
1445 white = function () {
1446

Callers 2

objectFunction · 0.85
worker-json.jsFile · 0.85

Calls 2

nextFunction · 0.70
errorFunction · 0.70

Tested by

no test coverage detected