SoPlex Documentation
Loading...
Searching...
No Matches
format_handler< ArgFormatter, Char, Context > Struct Template Reference

#include <format.h>

Inheritance diagram for format_handler< ArgFormatter, Char, Context >:
error_handler

Public Types

using range = typename ArgFormatter::range
 

Public Member Functions

 format_handler (range r, basic_string_view< Char > str, basic_format_args< Context > format_args, internal::locale_ref loc)
 
void on_text (const Char *begin, const Char *end)
 
void get_arg (int id)
 
void on_arg_id ()
 
void on_arg_id (int id)
 
void on_arg_id (basic_string_view< Char > id)
 
void on_replacement_field (const Char *p)
 
const Char * on_format_specs (const Char *begin, const Char *end)
 
- Public Member Functions inherited from error_handler
FMT_CONSTEXPR error_handler ()=default
 
FMT_CONSTEXPR error_handler (const error_handler &)=default
 
FMT_NORETURN FMT_API void on_error (const char *message)
 

Public Attributes

basic_format_parse_context< Char > parse_context
 
Context context
 
basic_format_arg< Context > arg
 

Detailed Description

template<typename ArgFormatter, typename Char, typename Context>
struct format_handler< ArgFormatter, Char, Context >

Definition at line 3091 of file format.h.

Member Typedef Documentation

◆ range

template<typename ArgFormatter , typename Char , typename Context >
using range = typename ArgFormatter::range

Definition at line 3092 of file format.h.

Constructor & Destructor Documentation

◆ format_handler()

template<typename ArgFormatter , typename Char , typename Context >
format_handler ( range r,
basic_string_view< Char > str,
basic_format_args< Context > format_args,
internal::locale_ref loc )

Definition at line 3094 of file format.h.

Member Function Documentation

◆ get_arg()

template<typename ArgFormatter , typename Char , typename Context >
void get_arg ( int id)

Definition at line 3107 of file format.h.

References arg(), and internal::get_arg().

◆ on_arg_id() [1/3]

template<typename ArgFormatter , typename Char , typename Context >
void on_arg_id ( )

Definition at line 3109 of file format.h.

◆ on_arg_id() [2/3]

template<typename ArgFormatter , typename Char , typename Context >
void on_arg_id ( basic_string_view< Char > id)

Definition at line 3114 of file format.h.

References arg().

◆ on_arg_id() [3/3]

template<typename ArgFormatter , typename Char , typename Context >
void on_arg_id ( int id)

Definition at line 3110 of file format.h.

◆ on_format_specs()

template<typename ArgFormatter , typename Char , typename Context >
const Char * on_format_specs ( const Char * begin,
const Char * end )

Definition at line 3122 of file format.h.

References advance_to(), arg(), and visit_format_arg().

◆ on_replacement_field()

template<typename ArgFormatter , typename Char , typename Context >
void on_replacement_field ( const Char * p)

Definition at line 3116 of file format.h.

References advance_to(), arg(), and visit_format_arg().

◆ on_text()

template<typename ArgFormatter , typename Char , typename Context >
void on_text ( const Char * begin,
const Char * end )

Definition at line 3099 of file format.h.

References internal::reserve(), and internal::to_unsigned().

Member Data Documentation

◆ arg

template<typename ArgFormatter , typename Char , typename Context >
basic_format_arg<Context> arg

Definition at line 3142 of file format.h.

◆ context

template<typename ArgFormatter , typename Char , typename Context >
Context context

Definition at line 3141 of file format.h.

Referenced by vformat_to().

◆ parse_context

template<typename ArgFormatter , typename Char , typename Context >
basic_format_parse_context<Char> parse_context

Definition at line 3140 of file format.h.