PDF stream tokenizer utilities for testing
Single Responsibility: Tokenize and parse PDF stream content
Extracted from fortplot_test_pdf_utils to keep modules under 500 lines.
Functions
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(len=1),
|
intent(in) |
|
|
:: |
arr(n) |
|
|
integer(kind=int64),
|
intent(in) |
|
|
:: |
n |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
pat |
|
|
integer,
|
intent(in) |
|
|
:: |
start_idx |
|
Return Value
integer
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
stream_text |
|
|
real(kind=dp),
|
intent(in) |
|
|
:: |
rgb(3) |
|
|
real(kind=dp),
|
intent(in) |
|
|
:: |
tol |
|
Return Value
logical
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
stream_text |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
op |
|
Return Value
integer
Subroutines
Arguments
| Type |
Intent | Optional | Attributes |
|
Name |
|
|
character(len=*),
|
intent(in) |
|
|
:: |
text |
|
|
integer,
|
intent(inout) |
|
|
:: |
pos |
|
|
character(len=*),
|
intent(out) |
|
|
:: |
token |
|
|
integer,
|
intent(out) |
|
|
:: |
token_len |
|
|
logical,
|
intent(out) |
|
|
:: |
has_token |
|