Skip to content

Add support for 'long' modifier #58

@donatj

Description

@donatj

Add support for the l (long) length modifier, which PHP parses but ignores.

It should be supported by all types. ArgumentLexeme should be aware of it and Printer should reproduce it.

Add test cases for it.

Examples include but are not limited to %ld %ls %lf %10lf. Add tests for these and others. Follow existing test patterns.

As far as parsing is concerned, l should be accepted only when it appears immediately before the final type specifier. This mirrors observed PHP behavior, even though PHP’s documented format syntax does not list length modifiers.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions