BloombergLP::bslfmt::FormatSpecificationParser::parse

Parse format specification sections from parseContext.

Synopsis

Declared in <bslfmt_formatspecificationparser.h>

template<class t_PARSE_CONTEXT>
constexpr
void
parse(
    t_PARSE_CONTEXT* parseContext,
    Sections sections);

Description

Parse the string contained by the specified input/output parseContext to extract the items indicated by the specified sections, update this object with the parsing result and update the iterator held by parseContext to point to the start of the unparsed section of the string. In the event of an error throw a format_error exception.

Parameters

NameDescription
parseContextinput/output parse context over the format string
sectionsbitmask of specification sections to parse