Flow123d
release_3.0.0-688-g6b683cf
|
#include <format.h>
Public Types | |
typedef CharType | Char |
Public Member Functions | |
BasicFormatter (const ArgList &args, BasicWriter< Char > &w) | |
BasicWriter< Char > & | writer () |
void | format (BasicCStringRef< Char > format_str) |
const Char * | format (const Char *&format_str, const internal::Arg &arg) |
Private Member Functions | |
FMT_DISALLOW_COPY_AND_ASSIGN (BasicFormatter) | |
internal::Arg | get_arg (BasicStringRef< Char > arg_name, const char *&error) |
internal::Arg | parse_arg_index (const Char *&s) |
internal::Arg | parse_arg_name (const Char *&s) |
Private Member Functions inherited from fmt::internal::FormatterBase | |
const ArgList & | args () const |
FormatterBase (const ArgList &args) | |
Arg | next_arg (const char *&error) |
Arg | get_arg (unsigned arg_index, const char *&error) |
bool | check_no_auto_index (const char *&error) |
template<typename Char > | |
void | write (BasicWriter< Char > &w, const Char *start, const Char *end) |
Private Attributes | |
BasicWriter< Char > & | writer_ |
internal::ArgMap< Char > | map_ |
This template formats data and writes the output to a writer.
typedef CharType fmt::BasicFormatter< CharType, ArgFormatter >::Char |
|
inline |
Constructs a BasicFormatter
object. References to the arguments and the writer are stored in the formatter object so make sure they have appropriate lifetimes.
|
private |
void fmt::BasicFormatter< Char, AF >::format | ( | BasicCStringRef< Char > | format_str | ) |
const Char * fmt::BasicFormatter< Char, ArgFormatter >::format | ( | const Char *& | format_str, |
const internal::Arg & | arg | ||
) |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
private |
|
private |