|
BDE 4.39.x Production Release
|
#include <bdlt_literal_specifierformatter.h>
This class does parsing and output of sequences whose corresponding output is independent of the type and value of the object being formatted.
Public Member Functions | |
| BSLS_KEYWORD_CONSTEXPR_CPP20 | Literal_SpecifierFormatter () |
| BSLS_KEYWORD_CONSTEXPR_CPP20 bool | parseNextSpecifier (StringView *spec) |
| template<class t_ITERATOR > | |
| bool | formatNextSpecifier (StringView *spec, t_ITERATOR *outIt) const |
| int | totalWidth () const |
| BSLS_KEYWORD_CONSTEXPR_CPP20 bdlt::Literal_SpecifierFormatter< t_CHAR >::Literal_SpecifierFormatter | ( | ) |
Create an object with totalWidth set to 0.
|
inline |
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.
| BSLS_KEYWORD_CONSTEXPR_CPP20 bool bdlt::Literal_SpecifierFormatter< t_CHAR >::parseNextSpecifier | ( | StringView * | spec | ) |
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.
*spec is empty.
|
inline |
Return the total width of the output anticipated from all the previous calls to parseNextSpecifier.