24 template <
typename... T>
25 std::string
format(
const char* fmt, T... args) {
27 bool parse_name =
false;
33 std::string str_args[] = {print(args)...};
36 for (
const char* i = fmt; *i !=
'\0'; i++) {
38 case '{': parse_name =
true;
break;
44 if (!parse_name) ss << *i;
Definition: benchmark.cpp:17
std::string format(const char *fmt, T... args)
Format a string with arguments.
Definition: format.h:25
A functor class Printer for printing a value of any type.
Definition: print.h:80
bool isQuoted
Definition: print.h:123
std::string str() const
Definition: print.h:270
bool isCompact
Definition: print.h:122
const char * line_break
Definition: print.h:125