Scippy

SoPlex

Sequential object-oriented simPlex

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 void on_arg_id ()
 
FMT_CONSTEXPR void on_arg_id (int id)
 
FMT_CONSTEXPR void on_arg_id (basic_string_view< Char >)
 
FMT_CONSTEXPR void on_replacement_field (const Char *)
 
FMT_CONSTEXPR const Char * on_format_specs (const Char *begin, const Char *)
 
FMT_CONSTEXPR void on_error (const char *message)
 

Private Types

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

Private Member Functions

FMT_CONSTEXPR void check_arg_id ()
 

Private Attributes

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

Detailed Description

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

Definition at line 2566 of file format.h.

Member Typedef Documentation

◆ parse_context_type

using parse_context_type = basic_format_parse_context<Char, ErrorHandler>
private

Definition at line 2601 of file format.h.

◆ parse_func

using parse_func = const Char* (*)(parse_context_type&)
private

Definition at line 2609 of file format.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
num_args 

Definition at line 2602 of file format.h.

Constructor & Destructor Documentation

◆ format_string_checker()

FMT_CONSTEXPR format_string_checker ( basic_string_view< Char >  format_str,
ErrorHandler  eh 
)
explicit

Definition at line 2568 of file format.h.

Member Function Documentation

◆ check_arg_id()

FMT_CONSTEXPR void check_arg_id ( )
private

Definition at line 2604 of file format.h.

◆ on_arg_id() [1/3]

FMT_CONSTEXPR void on_arg_id ( )

Definition at line 2576 of file format.h.

◆ on_arg_id() [2/3]

FMT_CONSTEXPR void on_arg_id ( int  id)

Definition at line 2580 of file format.h.

◆ on_arg_id() [3/3]

FMT_CONSTEXPR void on_arg_id ( basic_string_view< Char >  )

Definition at line 2585 of file format.h.

◆ on_error()

FMT_CONSTEXPR void on_error ( const char *  message)

Definition at line 2596 of file format.h.

◆ on_format_specs()

FMT_CONSTEXPR const Char* on_format_specs ( const Char *  begin,
const Char *   
)

Definition at line 2591 of file format.h.

References advance_to().

◆ on_replacement_field()

FMT_CONSTEXPR void on_replacement_field ( const Char *  )

Definition at line 2589 of file format.h.

◆ on_text()

FMT_CONSTEXPR void on_text ( const Char *  ,
const Char *   
)

Definition at line 2574 of file format.h.

Member Data Documentation

◆ arg_id_

int arg_id_
private

Definition at line 2611 of file format.h.

◆ context_

parse_context_type context_
private

Definition at line 2612 of file format.h.

◆ parse_funcs_

parse_func parse_funcs_[num_args > 0 ? num_args :1]
private

Definition at line 2613 of file format.h.