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

Method readString

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

Source from the content-addressed store, hash-verified

465 }
466
467 private readString(): string {
468 this.position++; // skip (
469 let result = "";
470
471 while (this.position < this.data.length && this.data[this.position] !== 0x29) {
472 result += String.fromCharCode(this.data[this.position]);
473 this.position++;
474 }
475
476 this.position++; // skip )
477
478 return result;
479 }
480
481 private readEndDictOrHex(): Token {
482 if (this.position + 1 < this.data.length && this.data[this.position + 1] === 0x3e) {

Callers 1

parseNextTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected