[#BloombergLP-bdlt-Literal_SpecifierFormatter] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::Literal_SpecifierFormatter :relfileprefix: ../../ :mrdocs: This `class` does parsing and output of sequences whose corresponding output is independent of the type and value of the object being formatted. == Synopsis Declared in `<bdlt_literal_specifierformatter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_CHAR> class Literal_SpecifierFormatter; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bdlt/Literal_SpecifierFormatter/2constructor.adoc[`Literal_SpecifierFormatter`] [.small]#[constructor]# | Create an object with `totalWidth` set to 0. | xref:BloombergLP/bdlt/Literal_SpecifierFormatter/formatNextSpecifier.adoc[`formatNextSpecifier`] | Examine the front character of the specified `spec`. If that character matches any of those recognized by this specifier formatter, perform the sort of output indicated by that character off of `spec` and return `true`, otherwise return `false`. | xref:BloombergLP/bdlt/Literal_SpecifierFormatter/parseNextSpecifier.adoc[`parseNextSpecifier`] | Parse the front character of the specified `spec`. If that character matches any of those recognized by this specifier formatter, increment `d_totalWidth`, pop the first character off of `spec` and return `true`, otherwise return `false`. The behavior is undefined if `*spec` is empty. | xref:BloombergLP/bdlt/Literal_SpecifierFormatter/totalWidth.adoc[`totalWidth`] | Return the total width of the output anticipated from all the previous calls to `parseNextSpecifier`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#