Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing.
More...
#include <base.h>
|
|
using | char_type = Char |
| |
|
using | iterator = const Char * |
| |
|
|
constexpr | parse_context (basic_string_view< Char > fmt, int next_arg_id=0) |
| |
| constexpr auto | begin () const noexcept -> iterator |
| | Returns an iterator to the beginning of the format string range being parsed. More...
|
| |
|
constexpr auto | end () const noexcept -> iterator |
| | Returns an iterator past the end of the format string range being parsed.
|
| |
|
FMTQUILL_CONSTEXPR void | advance_to (iterator it) |
| | Advances the begin iterator to it.
|
| |
| FMTQUILL_CONSTEXPR auto | next_arg_id () -> int |
| | Reports an error if using the manual argument indexing; otherwise returns the next argument index and switches to the automatic indexing. More...
|
| |
| FMTQUILL_CONSTEXPR void | check_arg_id (int id) |
| | Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing. More...
|
| |
|
FMTQUILL_CONSTEXPR void | check_arg_id (basic_string_view< Char >) |
| |
|
FMTQUILL_CONSTEXPR void | check_dynamic_spec (int arg_id) |
| |
template<typename Char = char>
class parse_context< Char >
Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing.
◆ begin()
template<typename Char = char>
| constexpr auto parse_context< Char >::begin |
( |
| ) |
const -> iterator |
|
inlinenoexcept |
Returns an iterator to the beginning of the format string range being parsed.
◆ check_arg_id()
template<typename Char = char>
| FMTQUILL_CONSTEXPR void parse_context< Char >::check_arg_id |
( |
int |
id | ) |
|
|
inline |
Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing.
◆ next_arg_id()
template<typename Char = char>
| FMTQUILL_CONSTEXPR auto parse_context< Char >::next_arg_id |
( |
| ) |
-> int |
|
inline |
Reports an error if using the manual argument indexing; otherwise returns the next argument index and switches to the automatic indexing.
The documentation for this class was generated from the following file:
- include/quill/bundled/fmt/base.h