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

#include <core.h>

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

Public Types

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

Public Member Functions

FMT_CONSTEXPR void advance_to (iterator it)
 
constexpr basic_format_parse_context (basic_string_view< Char > format_str, ErrorHandler eh={}, int next_arg_id=0)
 
constexpr iterator begin () const FMT_NOEXCEPT
 
FMT_CONSTEXPR void check_arg_id (int)
 
FMT_CONSTEXPR void check_arg_id (basic_string_view< Char >)
 
constexpr iterator end () const FMT_NOEXCEPT
 
constexpr ErrorHandler error_handler () const
 
FMT_CONSTEXPR int next_arg_id ()
 
FMT_CONSTEXPR void on_error (const char *message)
 

Private Attributes

basic_string_view< Char > format_str_
 
int next_arg_id_
 

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> | +--------------------—+----------------------------------—+

Definition at line 551 of file core.h.

Member Typedef Documentation

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

Definition at line 557 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
using basic_format_parse_context< Char, ErrorHandler >::iterator = typename basic_string_view<Char>::iterator

Definition at line 558 of file core.h.

Constructor & Destructor Documentation

template<typename Char, typename ErrorHandler = detail::error_handler>
constexpr basic_format_parse_context< Char, ErrorHandler >::basic_format_parse_context ( basic_string_view< Char >  format_str,
ErrorHandler  eh = {},
int  next_arg_id = 0 
)
inlineexplicit

Definition at line 560 of file core.h.

Member Function Documentation

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.

Definition at line 577 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
constexpr iterator basic_format_parse_context< Char, ErrorHandler >::begin ( ) const
inline

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

Definition at line 569 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::check_arg_id ( int  )
inline

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

Definition at line 597 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::check_arg_id ( basic_string_view< Char >  )
inline

Definition at line 604 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
constexpr iterator basic_format_parse_context< Char, ErrorHandler >::end ( ) const
inline

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

Definition at line 574 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
constexpr ErrorHandler basic_format_parse_context< Char, ErrorHandler >::error_handler ( ) const
inline

Definition at line 610 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR int basic_format_parse_context< Char, ErrorHandler >::next_arg_id ( )
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 585 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR void basic_format_parse_context< Char, ErrorHandler >::on_error ( const char *  message)
inline

Definition at line 606 of file core.h.

Member Data Documentation

template<typename Char, typename ErrorHandler = detail::error_handler>
basic_string_view<Char> basic_format_parse_context< Char, ErrorHandler >::format_str_
private

Definition at line 553 of file core.h.

template<typename Char, typename ErrorHandler = detail::error_handler>
int basic_format_parse_context< Char, ErrorHandler >::next_arg_id_
private

Definition at line 554 of file core.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:49