Mechanism for parsing Standard C++ format‐specification sections.
Synopsis
Declared in <bslfmt_formatspecificationparser.h>
template<class t_CHAR>
class FormatSpecificationParser
: public FormatSpecificationParserEnums
Description
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.
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. |
|
Return whether an alternative processing flag was parsed. |
|
Return the stored filler string. |
|
Return the width of the filler code point. |
|
Return whether a locale‐specific formatting flag was parsed. |
|
Return the size of the stored filler string. |
|
Parse format specification sections from |
|
Resolve nested width and precision from |
|
Return the modified numeric precision extracted during postprocessing. |
|
Return the modified numeric width extracted during postprocessing. |
|
Return the current processing state of this parser. |
|
Return the unmodified precision extracted during parsing. |
|
Return the unmodified width extracted during parsing. |
|
Return the unparsed remainder of the specification string. |
|
Return the stored sign value. |
|
Return whether a zero padding flag was parsed. |
Created with MrDocs