#include <printf.h>
Classes | |
struct | formatter_type |
Public Types | |
typedef Char | char_type |
Public Types inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char > | |
typedef OutputIt | iterator |
Public Member Functions | |
basic_printf_context (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context > args) | |
void | format () |
Public Member Functions inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char > | |
basic_parse_context< char_type > & | parse_context () |
basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > > | args () const |
basic_format_arg< basic_printf_context< OutputIt, Char, ArgFormatter > > | arg (unsigned id) const |
internal::error_handler | error_handler () |
void | on_error (const char *message) |
iterator | out () |
iterator | begin () |
void | advance_to (iterator it) |
locale_ref | locale () |
Private Types | |
typedef internal::context_base< OutputIt, basic_printf_context, Char > | base |
typedef base::format_arg | format_arg |
typedef basic_format_specs< char_type > | format_specs |
typedef internal::null_terminating_iterator< char_type > | iterator |
Private Member Functions | |
void | parse_flags (format_specs &spec, iterator &it) |
format_arg | get_arg (iterator it, unsigned arg_index=(std::numeric_limits< unsigned >::max)()) |
unsigned | parse_header (iterator &it, format_specs &spec) |
Additional Inherited Members | |
Protected Types inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char > | |
typedef Char | char_type |
typedef basic_format_arg< basic_printf_context< OutputIt, Char, ArgFormatter > > | format_arg |
Protected Member Functions inherited from internal::context_base< OutputIt, basic_printf_context< OutputIt, Char, ArgFormatter >, Char > | |
context_base (OutputIt out, basic_string_view< char_type > format_str, basic_format_args< basic_printf_context< OutputIt, Char, ArgFormatter > > ctx_args, locale_ref loc=locale_ref()) | |
format_arg | do_get_arg (unsigned arg_id) |
format_arg | get_arg (unsigned arg_id) |
This template formats data and writes the output to a writer.
|
private |
typedef Char basic_printf_context< OutputIt, Char, ArgFormatter >::char_type |
|
private |
|
private |
|
private |
|
inline |
Constructs a printf_context
object. References to the arguments and the writer are stored in the context object so make sure they have appropriate lifetimes.
Definition at line 509 of file printf.h.
void basic_printf_context< OutputIt, Char, AF >::format | ( | ) |
Formats stored arguments and writes the output to the range.
Definition at line 596 of file printf.h.
|
private |
Definition at line 550 of file printf.h.
|
private |
Definition at line 522 of file printf.h.
|
private |
Definition at line 559 of file printf.h.