| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public, | parameter | :: | max_formats | = | 4 |
Canonical file extension for a format token.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | token |
Derive the output filename for token. One format -> base verbatim;
many formats -> stem (a trailing known extension stripped) + canonical ext.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | base | |||
| character(len=*), | intent(in) | :: | token | |||
| integer, | intent(in) | :: | n_formats |
Split spec on spaces/commas into deduped tokens validated against
allowed. Assumes spec is already lowercased by the config layer.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | spec | |||
| character(len=*), | intent(in) | :: | allowed(:) | |||
| character(len=8), | intent(out) | :: | tokens(max_formats) | |||
| integer, | intent(out) | :: | n | |||
| logical, | intent(out) | :: | is_ok | |||
| character(len=*), | intent(out) | :: | message |