A general mechanism to parse and validate a Standard format specification string for a given argument type.

Synopsis

Declared in <bslfmt_standardformatspecification.h>

template<class t_CHAR>
class StandardFormatSpecification
    : public FormatSpecificationParserEnums

Base Classes

Name

Description

FormatSpecificationParserEnums

Namespace struct holding enums used for parsing.

Enums

Name

Description

Alignment

Alignment options parsed from a format specification.

Category

Format category enumeration.

FormatType

Format type enumeration.

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.

Member Functions

Name

Description

StandardFormatSpecification [constructor]

Create an uninitialized StandardFormatSpecification object.

alignment

Return the requested alignment enumerator.

alternativeFlag

Return whether alternative formatting was requested.

filler

Return a pointer to the parsed filler character storage.

fillerCodePointDisplayWidth

Return the display width of the filler code point.

formatType

Return the requested format‐type enumerator.

localeSpecificFlag

Return whether a locale‐specific formatting flag was present.

numFillerCharacters

Return the number of characters in the filler storage.

parse

Parse a Standard format specification from context.

postprocess

Resolve nested width and precision from context arguments.

postprocessedPrecision

Return the postprocessed format precision, if any.

postprocessedWidth

Return the postprocessed format width, if any.

processingState

Return the current processing state of this specification.

sign

Return the requested sign‐treatment enumerator.

zeroPaddingFlag

Return whether zero padding was requested.

Created with MrDocs