Mechanism for parsing Standard C++ format-specification sections.
Declared in <bslfmt_formatspecificationparser.h>
template<class t_CHAR>
class FormatSpecificationParser
: public FormatSpecificationParserEnums
This class 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.
| Name | Description |
|---|---|
FormatSpecificationParserEnums | Namespace struct holding enums used for parsing. |
| Name | Description |
|---|---|
Alignment | Alignment options parsed from a format specification. |
ProcessingState | Parser processing states for a format specification. |
Sections | Bit flags indicating which format-spec sections were parsed. |
Sign | Sign options parsed from a format specification. |
| Name | Description |
|---|---|
FormatSpecificationParser [constructor] | Create a default instance of FormatSpecificationParser. |
alignment | Return the stored alignment value. |
alternativeFlag | Return whether an alternative processing flag was parsed. |
filler | Return the stored filler string. |
fillerCodePointDisplayWidth | Return the width of the filler code point. |
localeSpecificFlag | Return whether a locale-specific formatting flag was parsed. |
numFillerCharacters | Return the size of the stored filler string. |
parse | Parse format specification sections from parseContext. |
postprocess | Resolve nested width and precision from context arguments. |
postprocessedPrecision | Return the modified numeric precision extracted during postprocessing. |
postprocessedWidth | Return the modified numeric width extracted during postprocessing. |
processingState | Return the current processing state of this parser. |
rawPrecision | Return the unmodified precision extracted during parsing. |
rawWidth | Return the unmodified width extracted during parsing. |
remainingSpec | Return the unparsed remainder of the specification string. |
sign | Return the stored sign value. |
zeroPaddingFlag | Return whether a zero padding flag was parsed. |