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

Method isNumberStart

src/parser/token-reader.ts:187–194  ·  view source on GitHub ↗
(byte: number)

Source from the content-addressed store, hash-verified

185 }
186
187 private isNumberStart(byte: number): boolean {
188 return (
189 (byte >= DIGIT_0 && byte <= DIGIT_9) || // 0-9
190 byte === CHAR_PLUS || // +
191 byte === CHAR_MINUS || // -
192 byte === CHAR_PERIOD // .
193 );
194 }
195
196 private readNumber(position: number): NumberToken | KeywordToken {
197 const start = this.scanner.position;

Callers 1

readTokenMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected