[#BloombergLP-bdlt-Literal_SpecifierFormatter]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::Literal&lowbar;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&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;literal&lowbar;specifierformatter&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;CHAR&gt;
class Literal&lowbar;SpecifierFormatter;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/Literal_SpecifierFormatter/2constructor.adoc[`Literal&lowbar;SpecifierFormatter`]         [.small]#[constructor]#
| Create an object with `totalWidth` set to 0&period;
| xref:BloombergLP/bdlt/Literal_SpecifierFormatter/formatNextSpecifier.adoc[`formatNextSpecifier`] 
| Examine the front character of the specified `spec`&period; 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`&period;
| xref:BloombergLP/bdlt/Literal_SpecifierFormatter/parseNextSpecifier.adoc[`parseNextSpecifier`] 
| Parse the front character of the specified `spec`&period; If that character matches any of those recognized by this specifier formatter, increment `d&lowbar;totalWidth`, pop the first character off of `spec` and return `true`, otherwise return `false`&period; The behavior is undefined if `&ast;spec` is empty&period;
| xref:BloombergLP/bdlt/Literal_SpecifierFormatter/totalWidth.adoc[`totalWidth`] 
| Return the total width of the output anticipated from all the previous calls to `parseNextSpecifier`&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
