Skip to content

Conversation

@reloginn
Copy link

@reloginn reloginn commented Aug 10, 2025

Features

  • Fully supports all specifiers described in Lua 5.4 manual.
  • Compared to the previous PR, %p has been implemented and support has been added for types that can be converted to String using __tostring.

Note

The implementation was based on the sprintf, but according to the Lua 5.4 manual:

The format string follows the same rules as the ISO C function sprintf. The only differences are that the conversion specifiers ?> and modifiers F, n, *, h, L, and l are not supported and that there is an extra specifier, q.

so I just removed the unsupported specifiers and added q.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant