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

Method readComment

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

Source from the content-addressed store, hash-verified

450 }
451
452 private readComment(): Token {
453 // Skip comment line
454 const start = this.position;
455
456 while (
457 this.position < this.data.length &&
458 this.data[this.position] !== 0x0a &&
459 this.data[this.position] !== 0x0d
460 ) {
461 this.position++;
462 }
463
464 return String.fromCharCode(...this.data.subarray(start, this.position));
465 }
466
467 private readString(): string {
468 this.position++; // skip (

Callers 1

parseNextTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected