|
template<typename T , typename Context , typename Char > |
void | convert_arg (basic_format_arg< Context > &arg, Char type) |
|
template<typename Char > |
void | parse_flags (basic_format_specs< Char > &specs, const Char *&it, const Char *end) |
|
template<typename Char , typename GetArg > |
int | parse_header (const Char *&it, const Char *end, basic_format_specs< Char > &specs, GetArg get_arg) |
|
template<typename Char , typename Context > |
void | vprintf (buffer< Char > &buf, basic_string_view< Char > format, basic_format_args< Context > args) |
|
template<typename... T> |
auto | make_printf_args (const T &...args) -> format_arg_store< printf_context, T...> |
|
template<typename... T> |
auto | make_wprintf_args (const T &...args) -> format_arg_store< wprintf_context, T...> |
|
template<typename S , typename Char = char_t<S>> |
auto | vsprintf (const S &fmt, basic_format_args< basic_printf_context_t< type_identity_t< Char >>> args) -> std::basic_string< Char > |
|
template<typename S , typename... T, typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>> |
auto | sprintf (const S &fmt, const T &...args) -> std::basic_string< Char > |
|
template<typename S , typename Char = char_t<S>> |
auto | vfprintf (std::FILE *f, const S &fmt, basic_format_args< basic_printf_context_t< type_identity_t< Char >>> args) -> int |
|
template<typename S , typename... T, typename Char = char_t<S>> |
auto | fprintf (std::FILE *f, const S &fmt, const T &...args) -> int |
|
template<typename S , typename Char = char_t<S>> |
auto | vprintf (const S &fmt, basic_format_args< basic_printf_context_t< type_identity_t< Char >>> args) -> int |
|
template<typename S , typename... T, FMT_ENABLE_IF(detail::is_string< S >::value) > |
auto | printf (const S &fmt, const T &...args) -> int |
|
template<typename S , typename Char = char_t<S>> |
FMT_DEPRECATED auto | vfprintf (std::basic_ostream< Char > &os, const S &fmt, basic_format_args< basic_printf_context_t< type_identity_t< Char >>> args) -> int |
|
template<typename S , typename... T, typename Char = char_t<S>> |
FMT_DEPRECATED auto | fprintf (std::basic_ostream< Char > &os, const S &fmt, const T &...args) -> int |
|
template<typename S , typename... T, typename Char = enable_if_t<detail::is_string<S>::value, char_t<S>>>
Formats arguments and returns the result as a string.
Example**::
std::string message = fmt::sprintf("The answer is %d", 42);
Definition at line 574 of file printf.h.