BloombergLP::bslfmt::MockParseContext

This class template provides an access to the format specification current parsing state.

Synopsis

Declared in <bslfmt_mockparsecontext.h>

template<class t_CHAR>
class MockParseContext;

Type Aliases

NameDescription
char_type Character type of the format specification.
const_iterator Constant iterator over the format specification.
iterator Iterator over the format specification (same as const_iterator).

Enums

NameDescription
IndexingMode Argument indexing mode.

Member Functions

NameDescription
MockParseContext [constructor]Create a mock parse context for the specified format string and argument count.
advance_to Update the held iterator to the unparsed portion of the format string to be the specified it.
begin Return an iterator to the beginning of the format specification.
check_arg_id Check that the specified argument index is valid and enter manual indexing mode.
end Return an iterator to the end of the format specification.
indexingMode Return the current indexing mode.
next_arg_id Enter automatic indexing mode and return the next argument index. Throw bslfmt::format_error if this object has already entered manual indexing mode.