mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Update paper
This commit is contained in:
parent
d775a20fff
commit
3d5125cd87
@ -464,11 +464,9 @@ described in the next section.
|
|||||||
|
|
||||||
<p>
|
<p>
|
||||||
A <code>format-spec</code> field can also include nested replacement fields
|
A <code>format-spec</code> field can also include nested replacement fields
|
||||||
within it. These nested replacement fields can contain only an argument index;
|
in certain position within it. These nested replacement fields can contain only
|
||||||
format specifications are not allowed. Formatting is performed as if the
|
an argument index; format specifications are not allowed. This allows the
|
||||||
replacement fields within the <code>format-spec</code> are substituted before
|
formatting of a value to be dynamically specified.
|
||||||
the format-spec string is interpreted. This allows the formatting of a value
|
|
||||||
to be dynamically specified.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<h4><a name="FormatSpec">Format specification mini-language</a></h4>
|
<h4><a name="FormatSpec">Format specification mini-language</a></h4>
|
||||||
@ -541,6 +539,40 @@ The meaning of the various alignment options is as follows:
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Note that unless a minimum field width is defined, the field width will always
|
||||||
|
be the same size as the data to fill it, so that the alignment option has no
|
||||||
|
meaning in this case.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The <code>sign</code> option is only valid for number types, and can be one of
|
||||||
|
the following:
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr><th>Option</th><th>Meaning</th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>'+'</td>
|
||||||
|
<td>Indicates that a sign should be used for both positive as well as negative
|
||||||
|
numbers.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>'-'</td>
|
||||||
|
<td>Indicates that a sign should be used only for negative numbers (this is
|
||||||
|
the default behavior).</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>space</td>
|
||||||
|
<td>Indicates that a leading space should be used on positive numbers, and a
|
||||||
|
minus sign on negative numbers.</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<p>TODO</p>
|
<p>TODO</p>
|
||||||
|
|
||||||
<h3>Class <code>format_error</code></h3>
|
<h3>Class <code>format_error</code></h3>
|
||||||
|
Loading…
Reference in New Issue
Block a user