A general mechanism used in format specification parsers. It supports parsing syntaxes of the form fill‐and‐align?sign # 0 width?precision?L and any syntax that contains a subset of the sections therein.
Synopsis
Declared in <bslfmt_formatspecificationparser.h>
template<class t_CHAR>
class FormatSpecificationParser
: public FormatSpecificationParserEnums
Base Classes
Name |
Description |
Namespace struct holding enums used for parsing. |
Enums
Name |
Description |
Alignment options parsed from a format specification. |
|
Parser processing states for a format specification. |
|
Bit flags indicating which format‐spec sections were parsed. |
|
Sign options parsed from a format specification. |
Member Functions
Name |
Description |
|
Create a default instance of |
Return the stored alignment value. If |
|
Return true if parsing detected an alternative processing flag in the specification, otherwise return false. If |
|
Return the stored filler string. If |
|
Return the width of the filler code point. If |
|
Return true if parsing detected a locale‐specific formatting flag in the specification, otherwise return false. If |
|
Return the size of the stored filler string. If |
|
Parse the string contained by the specified input/output |
|
Update any nested width and precision values to contain actual values based on the appropriate arguments held by the specified |
|
Return the modified numeric precision extracted during postprocessing. If |
|
Return the modified numeric width extracted during postprocessing. If |
|
Return the current processing state of this parser. |
|
Return the unmodified precision extracted during parsing. If |
|
Return the unmodified width extracted during parsing. If |
|
Return that section of the specification string that remains unparsed after the call to |
|
Return the stored sign value. If |
|
Return true if parsing detected a zero padding flag in the specification, otherwise return false. If |
Created with MrDocs