From a64300d4e61f670ddddf071ffd62d1e9ed309466 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 24 Dec 2012 20:48:52 -0800 Subject: [PATCH] Remove Format string syntax section. --- README.rst | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/README.rst b/README.rst index 9f790e86..8c1757ba 100644 --- a/README.rst +++ b/README.rst @@ -81,29 +81,6 @@ performed when formatting is complete: ReportError("File not found: {0}") << path; -Format string syntax --------------------- - -A format string can contain "replacement fields" delimited by curly -braces ``{}``. Text outside of braces is copied unchanged to the output. -If you need to include a brace character in the literal text, it can be -escaped by doubling: ``{{`` and ``}}``. - -The grammar for a replacement field is as follows: - -.. parsed-literal:: - - `replacement_field`: "{" `arg_index` [":" `format_spec`] "}" - `arg_index`: integer - `format_spec`: ["+"]["0"][`width`]["." `precision`][`type`] - `width`: integer - `precision`: integer | "{" `arg_index` "}" - `type`: "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "o" | "p" | "s" | "x" | "X" - -Preceding the `width` field with ``0`` forces the padding to be placed -after the sign (if any) but before the digits. This is used for printing -fields in the form ``+000000120``. This option is only valid for numeric types. - Motivation ----------