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

Name

Description

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

Name

Description

IndexingMode

Argument indexing mode.

Member Functions

Name

Description

MockParseContext [constructor]

Create an object having the specified fmt as a format specification and the specified numArgs.

advance_to

Update the held iterator to the unparsed portion of the format string to be the specified it. Subsequent calls to begin will return this value.

begin

Return an iterator to the beginning of the format specification.

check_arg_id

Check whether the specified id is in range of number of arguments and enter manual indexing mode. Throw bslfmt::format_error if this object has already entered automatic 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.

Created with MrDocs