Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
basic_format_parse_context< Char > Class Template Reference

#include <core.h>

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

Public Types

using char_type = Char
 
using iterator = const Char *
 

Public Member Functions

FMT_CONSTEXPR void advance_to (iterator it)
 
constexpr basic_format_parse_context (basic_string_view< Char > format_str, int next_arg_id=0)
 
constexpr auto begin () const noexcept -> iterator
 
FMT_CONSTEXPR void check_arg_id (basic_string_view< Char >)
 
FMT_CONSTEXPR void check_arg_id (int id)
 
FMT_CONSTEXPR void check_dynamic_spec (int arg_id)
 
constexpr auto end () const noexcept -> iterator
 
FMT_CONSTEXPR auto next_arg_id () -> int
 

Private Member Functions

FMT_CONSTEXPR void do_check_arg_id (int id)
 

Private Attributes

basic_string_view< Char > format_str_
 
int next_arg_id_
 

Detailed Description

template<typename Char>
class basic_format_parse_context< Char >

\rst Parsing context consisting of a format string range being parsed and an argument counter for automatic indexing. You can use the format_parse_context type alias for char instead. \endrst

Definition at line 674 of file core.h.

Member Typedef Documentation

◆ char_type

template<typename Char >
using basic_format_parse_context< Char >::char_type = Char

Definition at line 682 of file core.h.

◆ iterator

template<typename Char >
using basic_format_parse_context< Char >::iterator = const Char*

Definition at line 683 of file core.h.

Constructor & Destructor Documentation

◆ basic_format_parse_context()

template<typename Char >
constexpr basic_format_parse_context< Char >::basic_format_parse_context ( basic_string_view< Char >  format_str,
int  next_arg_id = 0 
)
inlineexplicitconstexpr

Definition at line 685 of file core.h.

Member Function Documentation

◆ advance_to()

template<typename Char >
FMT_CONSTEXPR void basic_format_parse_context< Char >::advance_to ( iterator  it)
inline

Advances the begin iterator to it.

Definition at line 703 of file core.h.

◆ begin()

template<typename Char >
constexpr auto basic_format_parse_context< Char >::begin ( ) const -> iterator
inlineconstexprnoexcept

Returns an iterator to the beginning of the format string range being parsed.

Definition at line 693 of file core.h.

◆ check_arg_id() [1/2]

template<typename Char >
FMT_CONSTEXPR void basic_format_parse_context< Char >::check_arg_id ( basic_string_view< Char >  )
inline

Definition at line 735 of file core.h.

◆ check_arg_id() [2/2]

template<typename Char >
FMT_CONSTEXPR void basic_format_parse_context< Char >::check_arg_id ( int  id)
inline

Reports an error if using the automatic argument indexing; otherwise switches to the manual indexing.

Definition at line 726 of file core.h.

◆ check_dynamic_spec()

template<typename Char >
FMT_CONSTEXPR void basic_format_parse_context< Char >::check_dynamic_spec ( int  arg_id)

Definition at line 1071 of file core.h.

◆ do_check_arg_id()

template<typename Char >
FMT_CONSTEXPR void basic_format_parse_context< Char >::do_check_arg_id ( int  id)
private

Definition at line 1059 of file core.h.

◆ end()

template<typename Char >
constexpr auto basic_format_parse_context< Char >::end ( ) const -> iterator
inlineconstexprnoexcept

Returns an iterator past the end of the format string range being parsed.

Definition at line 700 of file core.h.

◆ next_arg_id()

template<typename Char >
FMT_CONSTEXPR auto basic_format_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.

Definition at line 711 of file core.h.

Member Data Documentation

◆ format_str_

template<typename Char >
basic_string_view<Char> basic_format_parse_context< Char >::format_str_
private

Definition at line 676 of file core.h.

◆ next_arg_id_

template<typename Char >
int basic_format_parse_context< Char >::next_arg_id_
private

Definition at line 677 of file core.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:28