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

#include <core.h>

Inherits detail::error_handler.

Inherited by basic_printf_parse_context< Char >.

Public Member Functions

constexpr auto begin () const FMT_NOEXCEPT -> iterator
 
constexpr auto end () const FMT_NOEXCEPT -> iterator
 
FMT_CONSTEXPR void advance_to (iterator it)
 
FMT_CONSTEXPR auto next_arg_id () -> int
 
FMT_CONSTEXPR void check_arg_id (int)
 

Detailed Description

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

\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

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.

◆ begin()

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

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

◆ check_arg_id()

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.

◆ end()

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

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

◆ next_arg_id()

template<typename Char , typename ErrorHandler = detail::error_handler>
FMT_CONSTEXPR auto basic_format_parse_context< Char, ErrorHandler >::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.