#include <ostream.h>
Public Types | |
using | char_type = Char |
using | iterator = OutputIt |
using | format_arg = basic_format_arg< basic_printf_context > |
using | parse_context_type = basic_printf_parse_context< Char > |
template<typename T > | |
using | formatter_type = printf_formatter< T > |
Public Member Functions | |
basic_printf_context (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context > args) | |
OutputIt | out () |
void | advance_to (OutputIt it) |
detail::locale_ref | locale () |
format_arg | arg (int id) const |
parse_context_type & | parse_context () |
FMT_CONSTEXPR void | on_error (const char *message) |
template<typename ArgFormatter = printf_arg_formatter<OutputIt, Char>> | |
OutputIt | format () |
Private Types | |
using | format_specs = basic_format_specs< char_type > |
Private Member Functions | |
format_arg | get_arg (int arg_index=-1) |
int | parse_header (const Char *&it, const Char *end, format_specs &specs) |
Static Private Member Functions | |
static void | parse_flags (format_specs &specs, const Char *&it, const Char *end) |
Private Attributes | |
OutputIt | out_ |
basic_format_args< basic_printf_context > | args_ |
parse_context_type | parse_ctx_ |
This template formats data and writes the output through an output iterator.
|
private |
using formatter_type = printf_formatter<T> |
using parse_context_type = basic_printf_parse_context<Char> |
basic_printf_context | ( | OutputIt | out, |
basic_string_view< char_type > | format_str, | ||
basic_format_args< basic_printf_context< OutputIt, Char > > | args | ||
) |
format_arg arg | ( | int | id | ) | const |
Definition at line 378 of file printf.h.
References basic_format_args< Context >::get().
OutputIt format | ( | ) |
Formats stored arguments and writes the output to the range.
Definition at line 471 of file printf.h.
References basic_format_specs< Char >::align, basic_format_specs< Char >::alt, arg(), detail::convert_arg(), detail::copy(), detail::cstring_type, basic_format_specs< Char >::fill, detail::find(), FMT_THROW, detail::get_arg(), basic_format_arg< Context >::is_arithmetic(), basic_format_arg< Context >::is_integral(), align::left, align::numeric, detail::parse_nonnegative_int(), basic_format_specs< Char >::precision, align::right, detail::to_unsigned(), basic_format_specs< Char >::type, basic_format_arg< Context >::type(), and visit_format_arg().
|
private |
Definition at line 422 of file printf.h.
References detail::get_arg().
detail::locale_ref locale | ( | ) |
FMT_CONSTEXPR void on_error | ( | const char * | message | ) |
Definition at line 382 of file printf.h.
References format(), and basic_format_parse_context< Char, ErrorHandler >::on_error().
parse_context_type& parse_context | ( | ) |
Definition at line 380 of file printf.h.
Referenced by printf_arg_formatter< OutputIt, Char >::operator()().
|
staticprivate |
Definition at line 392 of file printf.h.
References basic_format_specs< Char >::align, basic_format_specs< Char >::alt, basic_format_specs< Char >::fill, align::left, sign::plus, basic_format_specs< Char >::sign, and sign::space.
|
private |
Definition at line 431 of file printf.h.
References basic_format_specs< Char >::fill, detail::get_arg(), detail::parse_nonnegative_int(), visit_format_arg(), and basic_format_specs< Char >::width.
|
private |
|
private |