|
IntFormatSpec< int, TypeSpec< 'b'> > | bin (int value) |
|
IntFormatSpec< int, TypeSpec< 'o'> > | oct (int value) |
|
IntFormatSpec< int, TypeSpec< 'x'> > | hex (int value) |
|
IntFormatSpec< int, TypeSpec< 'X'> > | hexu (int value) |
|
template<char TYPE_CODE, typename Char > |
IntFormatSpec< int, AlignTypeSpec< TYPE_CODE >, Char > | pad (int value, unsigned width, Char fill=' ') |
|
template<typename Char > |
StrFormatSpec< Char > | pad (const Char *str, unsigned width, Char fill=' ') |
|
StrFormatSpec< wchar_t > | pad (const wchar_t *str, unsigned width, char fill=' ') |
|
FMT_API void | format_system_error (fmt::Writer &out, int error_code, fmt::StringRef message) FMT_NOEXCEPT |
|
FMT_API void | report_system_error (int error_code, StringRef message) FMT_NOEXCEPT |
|
FMT_API void | print_colored (Color c, CStringRef format, ArgList args) |
|
std::string | format (CStringRef format_str, ArgList args) |
|
std::wstring | format (WCStringRef format_str, ArgList args) |
|
FMT_API void | print (std::FILE *f, CStringRef format_str, ArgList args) |
|
FMT_API void | print (CStringRef format_str, ArgList args) |
|
template<typename T > |
void | format_decimal (char *&buffer, T value) |
|
template<typename T > |
internal::NamedArgWithType< char, T > | arg (StringRef name, const T &arg) |
|
template<typename T > |
internal::NamedArgWithType< wchar_t, T > | arg (WStringRef name, const T &arg) |
|
template<typename Char > |
void | arg (StringRef, const internal::NamedArg< Char > &) FMT_DELETED_OR_UNDEFINED |
|
template<typename Char > |
void | arg (WStringRef, const internal::NamedArg< Char > &) FMT_DELETED_OR_UNDEFINED |
|
template<typename It > |
ArgJoin< char, It > | join (It first, It last, const BasicCStringRef< char > &sep) |
|
template<typename It > |
ArgJoin< wchar_t, It > | join (It first, It last, const BasicCStringRef< wchar_t > &sep) |
|
template<typename ArgFormatter , typename Char , typename It > |
void | format_arg (fmt::BasicFormatter< Char, ArgFormatter > &f, const Char *&format_str, const ArgJoin< Char, It > &e) |
|
template<typename T > |
std::string | to_string (const T &value) |
|
template<typename T > |
std::wstring | to_wstring (const T &value) |
|
FMT_FUNC void | print (std::ostream &os, CStringRef format_str, ArgList args) |
|
template<typename Char , typename ArgFormatter_ , typename T > |
void | format_arg (BasicFormatter< Char, ArgFormatter_ > &f, const Char *&format_str, const T &value) |
|
long | getpagesize () |
|
template<typename Char > |
void | printf (BasicWriter< Char > &w, BasicCStringRef< Char > format, ArgList args) |
|
FMT_FUNC int | fprintf (std::FILE *f, CStringRef format, ArgList args) |
|
void | printf (Writer &w, CStringRef format, ArgList args) |
|
void | printf (WWriter &w, WCStringRef format, ArgList args) |
|
std::string | sprintf (CStringRef format, ArgList args) |
|
std::wstring | sprintf (WCStringRef format, ArgList args) |
|
int | printf (CStringRef format, ArgList args) |
|
int | fprintf (std::ostream &os, CStringRef format_str, ArgList args) |
|
template<typename ArgFormatter > |
void | format_arg (BasicFormatter< char, ArgFormatter > &f, const char *&format_str, const std::tm &tm) |
|
std::tm | localtime (std::time_t time) |
|
std::tm | gmtime (std::time_t time) |
|
\rst Formats an error returned by an operating system or a language runtime, for example a file opening error, and writes it to out in the following form:
.. parsed-literal:: <message>*: *<system-message>*
where *<message>* is the passed message and *<system-message>* is the system message corresponding to the error code. error_code* is a system error code as given by errno
. If error_code is not a valid error code such as -1, the system message may look like "Unknown error -1" and is platform-dependent. \endrst
Definition at line 388 of file format.cc.