MCPcopy Create free account
hub / github.com/LibPDF-js/core / readOperator

Method readOperator

src/fontbox/cmap/parser.ts:611–627  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

609 }
610
611 private readOperator(): Operator {
612 let op = "";
613
614 while (this.position < this.data.length) {
615 const ch = this.data[this.position];
616
617 if (isWhitespace(ch) || isDelimiter(ch) || isDigit(ch)) {
618 break;
619 }
620
621 op += String.fromCharCode(ch);
622
623 this.position++;
624 }
625
626 return { type: "operator", op };
627 }
628}
629
630// =========================================================================

Callers 1

parseNextTokenMethod · 0.95

Calls 3

isWhitespaceFunction · 0.70
isDelimiterFunction · 0.70
isDigitFunction · 0.70

Tested by

no test coverage detected