|
BDE 4.39.x Production Release
|
#include <bdlb_guidformatter.h>
This component-private class template provides the implementation of the bsl::formatter specialization for bdlb::Guid values. The specified t_CHAR template parameter determines both the format-string and the output character type.
t_CHAR is char or wchar_t.Public Member Functions | |
| template<class t_PARSE_CONTEXT > | |
| BSLS_KEYWORD_CONSTEXPR_CPP20 t_PARSE_CONTEXT::iterator | parse (t_PARSE_CONTEXT &parseContext) |
| template<class t_FORMAT_CONTEXT > | |
| t_FORMAT_CONTEXT::iterator | format (const Guid &value, t_FORMAT_CONTEXT &formatContext) const |
| t_FORMAT_CONTEXT::iterator bdlb::Guid_BslFmtFormatterImpl< t_CHAR >::format | ( | const Guid & | value, |
| t_FORMAT_CONTEXT & | formatContext | ||
| ) | const |
Create a string representation of the specified value in accordance with the format specification previously parsed by parse (see grammar documented at the top of this component) and the specified formatContext, and copy it to the output iterator held by formatContext. Return the updated output iterator.
t_FORMAT_CONTEXT::char_type is t_CHAR. | BSLS_KEYWORD_CONSTEXPR_CPP20 t_PARSE_CONTEXT::iterator bdlb::Guid_BslFmtFormatterImpl< t_CHAR >::parse | ( | t_PARSE_CONTEXT & | parseContext | ) |
Parse the format specification contained in the specified parseContext and return an iterator, pointing to the beginning of the unparsed section of the format string. Throw a bsl::format_error exception if the specification does not conform to the grammar documented at the top of this component.