Scippy

SoPlex

Sequential object-oriented simPlex

format_string_compiler< Char, PartHandler > Class Template Reference

#include <compile.h>

Public Member Functions

FMT_CONSTEXPR format_string_compiler (basic_string_view< Char > format_str, PartHandler handler)
 
FMT_CONSTEXPR void on_text (const Char *begin, const Char *end)
 
FMT_CONSTEXPR void on_arg_id ()
 
FMT_CONSTEXPR void on_arg_id (int id)
 
FMT_CONSTEXPR void on_arg_id (basic_string_view< Char > id)
 
FMT_CONSTEXPR void on_replacement_field (const Char *ptr)
 
FMT_CONSTEXPR 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)
 

Private Types

using part = format_part< Char >
 

Private Attributes

PartHandler handler_
 
part part_
 
basic_string_view< Char > format_str_
 
basic_format_parse_context< Char > parse_context_
 

Detailed Description

template<typename Char, typename PartHandler>
class internal::format_string_compiler< Char, PartHandler >

Definition at line 97 of file compile.h.

Member Typedef Documentation

◆ part

using part = format_part<Char>
private

Definition at line 99 of file compile.h.

Constructor & Destructor Documentation

◆ format_string_compiler()

FMT_CONSTEXPR format_string_compiler ( basic_string_view< Char >  format_str,
PartHandler  handler 
)

Definition at line 107 of file compile.h.

Member Function Documentation

◆ on_arg_id() [1/3]

FMT_CONSTEXPR void on_arg_id ( )

◆ on_arg_id() [2/3]

FMT_CONSTEXPR void on_arg_id ( int  id)

◆ on_arg_id() [3/3]

FMT_CONSTEXPR void on_arg_id ( basic_string_view< Char >  id)

Definition at line 127 of file compile.h.

◆ on_format_specs()

◆ on_replacement_field()

FMT_CONSTEXPR void on_replacement_field ( const Char *  ptr)

Definition at line 131 of file compile.h.

References format_part< Char >::arg_id_end, and ptr().

◆ on_text()

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

Definition at line 113 of file compile.h.

References internal::to_unsigned().

Member Data Documentation

◆ format_str_

basic_string_view<Char> format_str_
private

Definition at line 103 of file compile.h.

◆ handler_

PartHandler handler_
private

Definition at line 101 of file compile.h.

◆ parse_context_

basic_format_parse_context<Char> parse_context_
private

Definition at line 104 of file compile.h.

◆ part_

part part_
private

Definition at line 102 of file compile.h.