Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| TokenType | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Phpdftk\Pdf\Reader\Tokenizer; |
| 6 | |
| 7 | /** |
| 8 | * PDF lexical token types produced by the tokenizer -- one case per |
| 9 | * distinct syntactic element in the PDF file format (ISO 32000-2 S7.2). |
| 10 | */ |
| 11 | enum TokenType |
| 12 | { |
| 13 | case Name; // /SomeName |
| 14 | case LiteralString; // (text) |
| 15 | case HexString; // <48656C6C6F> |
| 16 | case Integer; // 123, +4, -2 |
| 17 | case Real; // 34.5, -.002 |
| 18 | case Boolean; // true, false |
| 19 | case Null; // null |
| 20 | case ArrayStart; // [ |
| 21 | case ArrayEnd; // ] |
| 22 | case DictStart; // << |
| 23 | case DictEnd; // >> |
| 24 | case StreamKeyword; // stream |
| 25 | case EndStreamKeyword; // endstream |
| 26 | case ObjKeyword; // obj |
| 27 | case EndObjKeyword; // endobj |
| 28 | case RKeyword; // R |
| 29 | case XrefKeyword; // xref |
| 30 | case TrailerKeyword; // trailer |
| 31 | case StartXrefKeyword; // startxref |
| 32 | case Unknown; // unrecognized keyword (skipped in lenient mode) |
| 33 | case Eof; // end of input |
| 34 | } |