struct format_handler

Declaration

struct format_handler : public error_handler { /* full declaration omitted */ };

Declared at: third_party/fmt/include/fmt/format.h:4327

Inherits from: error_handler

Member Variables

public basic_format_parse_context<Char> parse_context
public buffer_context<Char> context

Method Overview

  • public format_handler(buffer_appender<Char> p_out, basic_string_view<Char> str, basic_format_args<buffer_context<Char>> p_args, fmt::detail::locale_ref p_loc)
  • public constexpr auto on_arg_id() -> int
  • public constexpr auto on_arg_id(int id) -> int
  • public constexpr auto on_arg_id(basic_string_view<Char> id) -> int
  • public auto on_format_specs(int id, const Char * begin, const Char * end) -> const Char *
  • public inline void on_replacement_field(int id, const Char *)
  • public void on_text(const Char * begin, const Char * end)

Inherited from error_handler:

Methods

format_handler(
    buffer_appender<Char> p_out,
    basic_string_view<Char> str,
    basic_format_args<buffer_context<Char>>
        p_args,
    fmt::detail::locale_ref p_loc)

Declared at: third_party/fmt/include/fmt/format.h:4331

Parameters

buffer_appender<Char> p_out
basic_string_view<Char> str
basic_format_args<buffer_context<Char>> p_args
fmt::detail::locale_ref p_loc

constexpr auto on_arg_id() -> int

Declared at: third_party/fmt/include/fmt/format.h:4341

constexpr auto on_arg_id(int id) -> int

Declared at: third_party/fmt/include/fmt/format.h:4344

Parameters

int id

constexpr auto on_arg_id(
    basic_string_view<Char> id) -> int

Declared at: third_party/fmt/include/fmt/format.h:4347

Parameters

basic_string_view<Char> id

auto on_format_specs(int id,
                     const Char* begin,
                     const Char* end)
    -> const Char*

Declared at: third_party/fmt/include/fmt/format.h:4361

Parameters

int id
const Char* begin
const Char* end

inline void on_replacement_field(int id,
                                 const Char*)

Declared at: third_party/fmt/include/fmt/format.h:4353

Parameters

int id
const Char*

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

Declared at: third_party/fmt/include/fmt/format.h:4336

Parameters

const Char* begin
const Char* end