From 19398f4b78f5ef27ab9ada055fa2bd4b0dd12a4f Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 18 Mar 2020 12:53:41 +0100 Subject: [PATCH] Grammar chapter updated --- docs/framework/text_output.rst | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/framework/text_output.rst b/docs/framework/text_output.rst index da4e1c5f..d621af60 100644 --- a/docs/framework/text_output.rst +++ b/docs/framework/text_output.rst @@ -44,11 +44,22 @@ Grammar conversion-spec: '%' units-type units-type: [units-rep-modifier] 'Q' : [units-unit-modifier] 'q' - : one of 'n', 't', '%' + : one of "nt%" units-rep-modifier: [sign] [#] [precision] [units-rep-type] - units-rep-type: one of 'a', 'A', 'b', 'B', 'd', 'e', 'E', 'f', 'F', 'g', 'G', 'o', 'x', 'X' + units-rep-type: one of "aAbBdeEfFgGoxX" units-unit-modifier: 'A' +In the above grammar: + +- ``fill-and-align``, ``width``, ``sign``, ``#``, and ``precision`` tokens and + individual tokens of :token:`units-rep-type` are defined in the + `format.string.std `_ chapter of the C++ + standard specification, +- tokens ``Q``, ``q``, ``n``, ``t``, and ``%`` of :token:`units-type` are described + in the `time.format `_ chapter of the C++ standard + specification, +- ``A`` token of :token:`units-unit-modifier` forces ASCII-only output (instead of the + default Unicode symbols defined by the :term:`SI` specification). Default formatting ^^^^^^^^^^^^^^^^^^