mirror of
https://github.com/lua/lua
synced 2024-11-24 21:59:41 +03:00
Manual for 'string.format' lists what it accepts
Instead of listing what it does not accept, which is always relative.
This commit is contained in:
parent
814213b65f
commit
b291008cc2
@ -7308,9 +7308,12 @@ Returns a formatted version of its variable number of arguments
|
||||
following the description given in its first argument,
|
||||
which must be a string.
|
||||
The format string follows the same rules as the @ANSI{sprintf}.
|
||||
The only differences are that the conversion specifiers and modifiers
|
||||
@id{F}, @id{n}, @T{*}, @id{h}, @id{L}, and @id{l} are not supported
|
||||
and that there is an extra specifier, @id{q}.
|
||||
The accepted conversion specifiers are
|
||||
@id{A}, @id{a}, @id{c}, @id{d}, @id{E}, @id{e}, @id{f}, @id{G}, @id{g},
|
||||
@id{i}, @id{o}, @id{p}, @id{s}, @id{u}, @id{X}, and @id{x},
|
||||
plus a non-C specifier @id{q}.
|
||||
The accepted flags are @Char{-}, @Char{+}, @Char{#},
|
||||
@Char{0}, and @Char{ } (space).
|
||||
Both width and precision, when present,
|
||||
are limited to two digits.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user