MCPcopy
hub / github.com/Exrick/xpay / readLineBreak

Function readLineBreak

xpay-code/src/main/resources/static/swagger/swagger-ui.js:11382–11400  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

11380}
11381
11382function readLineBreak(state) {
11383 var ch;
11384
11385 ch = state.input.charCodeAt(state.position);
11386
11387 if (ch === 0x0A/* LF */) {
11388 state.position++;
11389 } else if (ch === 0x0D/* CR */) {
11390 state.position++;
11391 if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
11392 state.position++;
11393 }
11394 } else {
11395 throwError(state, 'a line break is expected');
11396 }
11397
11398 state.line += 1;
11399 state.lineStart = state.position;
11400}
11401
11402function skipSeparationSpace(state, allowComments, checkIndent) {
11403 var lineBreaks = 0,

Callers 3

skipSeparationSpaceFunction · 0.85
readBlockScalarFunction · 0.85
readDocumentFunction · 0.85

Calls 1

throwErrorFunction · 0.85

Tested by

no test coverage detected