mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Update fill docs
This commit is contained in:
parent
b4218aa0f8
commit
7800173eb1
@ -76,7 +76,7 @@ The general form of a *standard format specifier* is:
|
|||||||
|
|
||||||
.. productionlist:: sf
|
.. productionlist:: sf
|
||||||
format_spec: [[`fill`]`align`][`sign`]["#"]["0"][`width`]["." `precision`][`type`]
|
format_spec: [[`fill`]`align`][`sign`]["#"]["0"][`width`]["." `precision`][`type`]
|
||||||
fill: <a character other than '{', '}' or '\0'>
|
fill: <a character other than '{' or '}'>
|
||||||
align: "<" | ">" | "^"
|
align: "<" | ">" | "^"
|
||||||
sign: "+" | "-" | " "
|
sign: "+" | "-" | " "
|
||||||
width: `integer` | "{" `arg_id` "}"
|
width: `integer` | "{" `arg_id` "}"
|
||||||
@ -84,11 +84,11 @@ The general form of a *standard format specifier* is:
|
|||||||
type: `int_type` | "a" | "A" | "c" | "e" | "E" | "f" | "F" | "g" | "G" | "p" | "s"
|
type: `int_type` | "a" | "A" | "c" | "e" | "E" | "f" | "F" | "g" | "G" | "p" | "s"
|
||||||
int_type: "b" | "B" | "d" | "n" | "o" | "x" | "X"
|
int_type: "b" | "B" | "d" | "n" | "o" | "x" | "X"
|
||||||
|
|
||||||
The *fill* character can be any character other than '{', '}' or '\\0'. The
|
The *fill* character can be any Unicode code point other than ``'{'`` or
|
||||||
presence of a fill character is signaled by the character following it, which
|
``'}'``. The presence of a fill character is signaled by the character following
|
||||||
must be one of the alignment options. If the second character of *format_spec*
|
it, which must be one of the alignment options. If the second character of
|
||||||
is not a valid alignment option, then it is assumed that both the fill character
|
*format_spec* is not a valid alignment option, then it is assumed that both the
|
||||||
and the alignment option are absent.
|
fill character and the alignment option are absent.
|
||||||
|
|
||||||
The meaning of the various alignment options is as follows:
|
The meaning of the various alignment options is as follows:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user