mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Try productionlist.
This commit is contained in:
parent
6143698aa6
commit
7a93a8e8b7
14
README.rst
14
README.rst
@ -81,14 +81,14 @@ escaped by doubling: ``{{`` and ``}}``.
|
|||||||
|
|
||||||
The grammar for a replacement field is as follows:
|
The grammar for a replacement field is as follows:
|
||||||
|
|
||||||
.. parsed-literal::
|
.. productionlist::
|
||||||
|
|
||||||
_`replacement_field`: "{" arg_index_ [":" format_spec_] "}"
|
replacement_field: "{" `arg_index` [":" `format_spec`] "}"
|
||||||
_`arg_index`: integer
|
arg_index: integer
|
||||||
_`format_spec`: ["+"]["0"][width_]["." precision_][type_]
|
format_spec: ["+"]["0"][`width`]["." `precision`][`type`]
|
||||||
_`width`: integer
|
width: integer
|
||||||
_`precision`: integer | "{" arg_index_ "}"
|
precision: integer | "{" `arg_index` "}"
|
||||||
_`type`: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X"
|
type: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X"
|
||||||
|
|
||||||
Preceding the `width`_ field with ``0`` makes the padding to be placed
|
Preceding the `width`_ field with ``0`` makes the padding to be placed
|
||||||
after the sign (if any) but before the digits. This is used for printing
|
after the sign (if any) but before the digits. This is used for printing
|
||||||
|
Loading…
Reference in New Issue
Block a user