SoPlex Documentation
Loading...
Searching...
No Matches
format_string_checker< Char, ErrorHandler, Args > Class Template Reference

#include <format.h>

Public Member Functions

FMT_CONSTEXPR format_string_checker (basic_string_view< Char > format_str, ErrorHandler eh)
 
FMT_CONSTEXPR void on_text (const Char *, const Char *)
 
FMT_CONSTEXPR int on_arg_id ()
 
FMT_CONSTEXPR int on_arg_id (int id)
 
FMT_CONSTEXPR int on_arg_id (basic_string_view< Char >)
 
FMT_CONSTEXPR void on_replacement_field (int, const Char *)
 
FMT_CONSTEXPR const Char * on_format_specs (int id, const Char *begin, const Char *)
 
FMT_CONSTEXPR void on_error (const char *message)
 

Private Types

enum  { num_args = sizeof...(Args) }
 
using parse_context_type = compile_parse_context<Char, ErrorHandler>
 
using parse_func = const Char* (*)(parse_context_type&)
 

Private Attributes

parse_context_type context_
 
parse_func parse_funcs_ [num_args > 0 ? num_args :1]
 

Detailed Description

template<typename Char, typename ErrorHandler, typename... Args>
class detail::format_string_checker< Char, ErrorHandler, Args >

Definition at line 3140 of file format.h.

Member Typedef Documentation

◆ parse_context_type

template<typename Char , typename ErrorHandler , typename... Args>
using parse_context_type = compile_parse_context<Char, ErrorHandler>
private

Definition at line 3169 of file format.h.

◆ parse_func

template<typename Char , typename ErrorHandler , typename... Args>
using parse_func = const Char* (*)(parse_context_type&)
private

Definition at line 3173 of file format.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename Char , typename ErrorHandler , typename... Args>
anonymous enum
private
Enumerator
num_args 

Definition at line 3170 of file format.h.

Constructor & Destructor Documentation

◆ format_string_checker()

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR format_string_checker ( basic_string_view< Char > format_str,
ErrorHandler eh )
explicit

Definition at line 3142 of file format.h.

References detail::parse_format_specs().

Member Function Documentation

◆ on_arg_id() [1/3]

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR int on_arg_id ( )

Definition at line 3149 of file format.h.

◆ on_arg_id() [2/3]

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR int on_arg_id ( basic_string_view< Char > )

Definition at line 3151 of file format.h.

◆ on_arg_id() [3/3]

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR int on_arg_id ( int id)

Definition at line 3150 of file format.h.

◆ on_error()

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR void on_error ( const char * message)

Definition at line 3164 of file format.h.

◆ on_format_specs()

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR const Char * on_format_specs ( int id,
const Char * begin,
const Char *  )

Definition at line 3158 of file format.h.

References advance_to().

◆ on_replacement_field()

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR void on_replacement_field ( int ,
const Char *  )

Definition at line 3156 of file format.h.

◆ on_text()

template<typename Char , typename ErrorHandler , typename... Args>
FMT_CONSTEXPR void on_text ( const Char * ,
const Char *  )

Definition at line 3147 of file format.h.

Member Data Documentation

◆ context_

template<typename Char , typename ErrorHandler , typename... Args>
parse_context_type context_
private

Definition at line 3175 of file format.h.

◆ parse_funcs_

template<typename Char , typename ErrorHandler , typename... Args>
parse_func parse_funcs_[num_args > 0 ? num_args :1]
private

Definition at line 3176 of file format.h.