|
| template<typename T , typename Context , typename Char > |
| void | detail::convert_arg (basic_format_arg< Context > &arg, Char type) |
| |
| template<typename S , typename... T, typename Char = char_t<S>> |
| auto | fprintf (std::FILE *f, const S &fmt, const T &... args) -> int |
| |
| template<typename Char > |
| auto | detail::make_arg_formatter (buffer_appender< Char > iter, format_specs< Char > &s) -> arg_formatter< Char > |
| |
| 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 Char > |
| void | detail::parse_flags (format_specs< Char > &specs, const Char *&it, const Char *end) |
| |
| template<typename Char , typename GetArg > |
| auto | detail::parse_header (const Char *&it, const Char *end, format_specs< Char > &specs, GetArg get_arg) -> int |
| |
| auto | detail::parse_printf_presentation_type (char c, type t) -> presentation_type |
| |
| template<typename... T> |
| FMT_DEPRECATED auto | printf (basic_string_view< wchar_t > fmt, const T &... args) -> int |
| |
| template<typename... T> |
| auto | printf (string_view fmt, const T &... args) -> int |
| |
| 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 Char > |
| auto | vfprintf (std::FILE *f, basic_string_view< Char > fmt, basic_format_args< basic_printf_context< type_identity_t< Char >>> args) -> int |
| |
| template<typename Char > |
| FMT_DEPRECATED auto | vprintf (basic_string_view< Char > fmt, basic_format_args< basic_printf_context< type_identity_t< Char >>> args) -> int |
| |
| template<typename Char , typename Context > |
| void | detail::vprintf (buffer< Char > &buf, basic_string_view< Char > format, basic_format_args< Context > args) |
| |
| template<typename Char > |
| auto | vsprintf (basic_string_view< Char > fmt, basic_format_args< basic_printf_context< type_identity_t< Char >>> args) -> std::basic_string< Char > |
| |
template<typename S , typename... T, typename Char = char_t<S>>
| auto fprintf |
( |
std::FILE * |
f, |
|
|
const S & |
fmt, |
|
|
const T &... |
args |
|
) |
| -> int |
|
inline |
\rst Prints formatted data to the file f.
Example**::
fmt::fprintf(stderr, "Don't %s!", "panic"); \endrst
Definition at line 640 of file printf.h.
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> |
|
inline |
\rst Formats arguments and returns the result as a string.
Example**::
std::string message = fmt::sprintf("The answer is %d", 42); \endrst
Definition at line 612 of file printf.h.