Clementine
Public Types | Public Member Functions | List of all members
basic_format_parse_context< Char, ErrorHandler > Class Template Reference

Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing. More...

#include <core.h>

Inheritance diagram for basic_format_parse_context< Char, ErrorHandler >:
Inheritance graph
[legend]
Collaboration diagram for basic_format_parse_context< Char, ErrorHandler >:
Collaboration graph
[legend]

Public Types

using char_type = Char
 
using iterator = typename basic_string_view< Char >::iterator
 

Public Member Functions

constexpr basic_format_parse_context (basic_string_view< Char > format_str, ErrorHandler eh={}, int next_arg_id=0)
 
constexpr iterator begin () const FMT_NOEXCEPT
 Returns an iterator to the beginning of the format string range being parsed.
 
constexpr iterator end () const FMT_NOEXCEPT
 Returns an iterator past the end of the format string range being parsed.
 
FMT_CONSTEXPR void advance_to (iterator it)
 Advances the begin iterator to it. More...
 
FMT_CONSTEXPR int next_arg_id ()
 Reports an error if using the manual argument indexing; otherwise returns the next argument index and switches to the automatic indexing.
 
FMT_CONSTEXPR void check_arg_id (int)
 Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing.
 
FMT_CONSTEXPR void check_arg_id (basic_string_view< Char >)
 
FMT_CONSTEXPR void on_error (const char *message)
 
constexpr ErrorHandler error_handler () const
 

Detailed Description

template<typename Char, typename ErrorHandler = detail::error_handler>
class basic_format_parse_context< Char, ErrorHandler >

Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing.

You can use one of the following type aliases for common character types:

+--------------------—+----------------------------------—+ | Type | Definition | +=======================+=====================================+ | format_parse_context | basic_format_parse_context<char> | +--------------------—+----------------------------------—+ | wformat_parse_context | basic_format_parse_context<wchar_t> | +--------------------—+----------------------------------—+

Member Function Documentation

◆ advance_to()

template<typename Char, typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::advance_to ( iterator  it)
inline

Advances the begin iterator to it.


The documentation for this class was generated from the following file: