![]() |
Ark Server API (ASE) - Wiki
|
Namespaces | |
| namespace | internal |
Classes | |
| struct | AlignSpec |
| struct | AlignTypeSpec |
| class | ArgFormatter |
| struct | ArgJoin |
| class | ArgList |
| class | ArgVisitor |
| class | BasicArgFormatter |
| class | BasicArrayWriter |
| class | BasicContainerWriter |
| class | BasicCStringRef |
| class | BasicFormatter |
| class | BasicMemoryWriter |
| class | BasicPrintfArgFormatter |
| class | BasicStringRef |
| class | BasicStringWriter |
| class | BasicWriter |
| class | Buffer |
| class | BufferedFile |
| struct | EmptySpec |
| class | ErrorCode |
| class | File |
| class | FormatError |
| class | FormatInt |
| struct | FormatSpec |
| class | IntFormatSpec |
| class | PrintfArgFormatter |
| class | PrintfFormatter |
| class | StrFormatSpec |
| class | SystemError |
| struct | TypeSpec |
| struct | WidthSpec |
Typedefs | |
| typedef BasicWriter< char > | Writer |
| typedef BasicWriter< wchar_t > | WWriter |
| typedef BasicStringRef< char > | StringRef |
| typedef BasicStringRef< wchar_t > | WStringRef |
| typedef BasicCStringRef< char > | CStringRef |
| typedef BasicCStringRef< wchar_t > | WCStringRef |
| typedef BasicMemoryWriter< char > | MemoryWriter |
| typedef BasicMemoryWriter< wchar_t > | WMemoryWriter |
| typedef BasicArrayWriter< char > | ArrayWriter |
| typedef BasicArrayWriter< wchar_t > | WArrayWriter |
| typedef void(* | FormatFunc) (Writer &, int, StringRef) |
| typedef BasicStringWriter< char > | StringWriter |
| typedef BasicStringWriter< wchar_t > | WStringWriter |
Enumerations | |
| enum | Alignment { ALIGN_DEFAULT , ALIGN_LEFT , ALIGN_RIGHT , ALIGN_CENTER , ALIGN_NUMERIC } |
| enum | { SIGN_FLAG = 1 , PLUS_FLAG = 2 , MINUS_FLAG = 4 , HASH_FLAG = 8 , CHAR_FLAG = 0x10 } |
| enum | Color { BLACK , RED , GREEN , YELLOW , BLUE , MAGENTA , CYAN , WHITE } |
Functions | |
| 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) |
| int | safe_strerror (int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT |
| void | format_error_code (Writer &out, int error_code, StringRef message) FMT_NOEXCEPT |
| void | report_error (FormatFunc func, int error_code, StringRef message) FMT_NOEXCEPT |
| FMT_POWERS_OF_10 (1) } | |
| FMT_POWERS_OF_10 (ULongLong(1000000000)) | |
| ULongLong (1000000000) *ULongLong(1000000000) *10 } | |
| if (std::isprint(static_cast< unsigned char >(code))) | |
| FMT_THROW (FormatError(format("unknown format code '\\x{:02x}' for {}", static_cast< unsigned >(code), type))) | |
| switch (arg.type) | |
| 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) |
Variables | |
| FMT_GCC_EXTENSION typedef long long | LongLong |
| FMT_GCC_EXTENSION typedef unsigned long long | ULongLong |
| __pad0__ | |
| template<typename T > | |
| __pad1__ | |
| std::size_t | size |
| std::size_t const char * | format |
| std::size_t const char unsigned | width |
| std::size_t const char unsigned int | precision |
| std::size_t const char unsigned int T | value |
| template<typename T > | |
| __pad2__ | |
| template<typename T > | |
| __pad3__ | |
| template<typename T > | |
| __pad4__ | |
| template<typename T > | |
| __pad5__ | |
| __pad6__ | |
| const char * | type |
| template<typename Char > | |
| __pad7__ | |
| __pad8__ | |
| const char *& | error |
| return | arg |
| typedef BasicArrayWriter<char> fmt::ArrayWriter |
| typedef BasicCStringRef<char> fmt::CStringRef |
| typedef BasicMemoryWriter<char> fmt::MemoryWriter |
| typedef BasicStringRef<char> fmt::StringRef |
| typedef BasicStringWriter<char> fmt::StringWriter |
| typedef BasicArrayWriter<wchar_t> fmt::WArrayWriter |
| typedef BasicCStringRef<wchar_t> fmt::WCStringRef |
| typedef BasicMemoryWriter<wchar_t> fmt::WMemoryWriter |
| typedef BasicWriter<char> fmt::Writer |
| typedef BasicStringRef<wchar_t> fmt::WStringRef |
| typedef BasicStringWriter<wchar_t> fmt::WStringWriter |
| typedef BasicWriter<wchar_t> fmt::WWriter |
| anonymous enum |
| enum fmt::Alignment |
| enum fmt::Color |
|
inline |
| void fmt::arg | ( | StringRef | , |
| const internal::NamedArg< Char > & | ) |
|
inline |
| void fmt::arg | ( | WStringRef | , |
| const internal::NamedArg< Char > & | ) |
| IntFormatSpec< int, TypeSpec< 'b'> > fmt::bin | ( | int | value | ) |
Returns an integer format specifier to format the value in base 2.
|
package |
|
package |
|
package |
|
inline |
|
inline |
| void fmt::format_arg | ( | BasicFormatter< char, ArgFormatter > & | f, |
| const char *& | format_str, | ||
| const std::tm & | tm ) |
| void fmt::format_arg | ( | BasicFormatter< Char, ArgFormatter_ > & | f, |
| const Char *& | format_str, | ||
| const T & | value ) |
| void fmt::format_arg | ( | fmt::BasicFormatter< Char, ArgFormatter > & | f, |
| const Char *& | format_str, | ||
| const ArgJoin< Char, It > & | e ) |
|
inline |
| FMT_FUNC void fmt::format_system_error | ( | fmt::Writer & | out, |
| int | error_code, | ||
| fmt::StringRef | message ) |
\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.
Here is the call graph for this function:
Here is the caller graph for this function:| FMT_API int fmt::fprintf | ( | std::FILE * | f, |
| CStringRef | format, | ||
| ArgList | args ) |
\rst Prints formatted data to the file f.
Example**::
fmt::fprintf(stderr, "Don't %s!", "panic"); \endrst
Definition at line 18 of file printf.cc.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
| IntFormatSpec< int, TypeSpec< 'x'> > fmt::hex | ( | int | value | ) |
Returns an integer format specifier to format the value in base 16 using lower-case letters for the digits above 9.
| IntFormatSpec< int, TypeSpec< 'X'> > fmt::hexu | ( | int | value | ) |
Returns an integer formatter format specifier to format in base 16 using upper-case letters for the digits above 9.
|
package |
| ArgJoin< char, It > fmt::join | ( | It | first, |
| It | last, | ||
| const BasicCStringRef< char > & | sep ) |
| ArgJoin< wchar_t, It > fmt::join | ( | It | first, |
| It | last, | ||
| const BasicCStringRef< wchar_t > & | sep ) |
|
inline |
| IntFormatSpec< int, TypeSpec< 'o'> > fmt::oct | ( | int | value | ) |
Returns an integer format specifier to format the value in base 8.
|
inline |
\rst Returns a string formatter that pads the formatted argument with the fill character to the specified width using the default (left) string alignment.
Example**::
std::string s = str(MemoryWriter() << pad("abc", 8)); s == "abc "
\endrst
|
inline |
| IntFormatSpec< int, AlignTypeSpec< TYPE_CODE >, Char > fmt::pad | ( | int | value, |
| unsigned | width, | ||
| Char | fill = ' ' ) |
\rst Returns an integer format specifier to pad the formatted argument with the fill character to the specified width using the default (right) numeric alignment.
Example**::
MemoryWriter out; out << pad(hex(0xcafe), 8, '0'); out.str() == "0000cafe"
\endrst
| FMT_FUNC void fmt::print | ( | CStringRef | format_str, |
| ArgList | args ) |
| FMT_FUNC void fmt::print | ( | std::FILE * | f, |
| CStringRef | format_str, | ||
| ArgList | args ) |
| FMT_API void fmt::print | ( | std::ostream & | os, |
| CStringRef | format_str, | ||
| ArgList | args ) |
\rst Prints formatted data to the stream os.
Example**::
print(cerr, "Don't {}!", "panic"); \endrst
Definition at line 30 of file ostream.cc.
Here is the call graph for this function:| FMT_FUNC void fmt::print_colored | ( | Color | c, |
| CStringRef | format, | ||
| ArgList | args ) |
| void fmt::printf | ( | BasicWriter< Char > & | w, |
| BasicCStringRef< Char > | format, | ||
| ArgList | args ) |
|
inline |
\rst Prints formatted data to stdout.
Example**::
fmt::printf("Elapsed time: %.2f seconds", 1.23); \endrst
Definition at line 576 of file printf.h.
Here is the call graph for this function:
|
inline |
|
inline |
|
package |
| FMT_FUNC void fmt::report_system_error | ( | int | error_code, |
| fmt::StringRef | message ) |
|
package |
|
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 541 of file printf.h.
Here is the call graph for this function:
|
inline |
| std::string fmt::to_string | ( | const T & | value | ) |
| std::wstring fmt::to_wstring | ( | const T & | value | ) |
|
package |
|
package |
| FMT_GCC_EXTENSION typedef long long fmt::LongLong |
|
package |
|
package |
| FMT_GCC_EXTENSION typedef unsigned long long fmt::ULongLong |
|
package |