Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
format.cc File Reference
#include "format.h"
#include <string.h>
#include <cctype>
#include <cerrno>
#include <climits>
#include <cmath>
#include <cstdarg>
#include <cstddef>
+ Include dependency graph for format.cc:

Go to the source code of this file.

Namespaces

namespace  fmt
 

Macros

#define FMT_TRY   try
 
#define FMT_CATCH(x)   catch (x)
 
#define FMT_SNPRINTF   snprintf
 
#define FMT_SWPRINTF   swprintf
 
#define FMT_POWERS_OF_10(factor)
 

Typedefs

typedef void(* fmt::FormatFunc) (Writer &, int, StringRef)
 

Functions

static FMT_MAYBE_UNUSED fmt::internal::Null strerror_r (int, char *,...)
 
static FMT_MAYBE_UNUSED fmt::internal::Null strerror_s (char *, std::size_t,...)
 
int fmt::safe_strerror (int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT
 
void fmt::format_error_code (Writer &out, int error_code, StringRef message) FMT_NOEXCEPT
 
void fmt::report_error (FormatFunc func, int error_code, StringRef message) FMT_NOEXCEPT
 
 fmt::FMT_POWERS_OF_10 (1) }
 
 fmt::FMT_POWERS_OF_10 (ULongLong(1000000000))
 
 fmt::ULongLong (1000000000) *ULongLong(1000000000) *10 }
 
 fmt::if (std::isprint(static_cast< unsigned char >(code)))
 
 fmt::FMT_THROW (FormatError(format("unknown format code '\\x{:02x}' for {}", static_cast< unsigned >(code), type)))
 
FMT_API void fmt::format_system_error (fmt::Writer &out, int error_code, fmt::StringRef message) FMT_NOEXCEPT
 
 fmt::switch (arg.type)
 
FMT_API void fmt::report_system_error (int error_code, StringRef message) FMT_NOEXCEPT
 
FMT_API void fmt::print (std::FILE *f, CStringRef format_str, ArgList args)
 
FMT_API void fmt::print (CStringRef format_str, ArgList args)
 
FMT_API void fmt::print_colored (Color c, CStringRef format, ArgList args)
 

Variables

 fmt::__pad0__
 
template<typename T >
 fmt::__pad1__
 
std::size_t fmt::size
 
std::size_t const char * fmt::format
 
std::size_t const char unsigned fmt::width
 
std::size_t const char unsigned int fmt::precision
 
std::size_t const char unsigned int T fmt::value
 
template<typename T >
 fmt::__pad2__
 
template<typename T >
 fmt::__pad3__
 
template<typename T >
 fmt::__pad4__
 
template<typename T >
 fmt::__pad5__
 
 fmt::__pad6__
 
const char * fmt::type
 
template<typename Char >
 fmt::__pad7__
 
 fmt::__pad8__
 
const char *& fmt::error
 
return fmt::arg
 

Macro Definition Documentation

◆ FMT_CATCH

#define FMT_CATCH ( x)    catch (x)

Definition at line 58 of file format.cc.

◆ FMT_POWERS_OF_10

#define FMT_POWERS_OF_10 ( factor)
Value:
factor * 10, \
factor * 100, \
factor * 1000, \
factor * 10000, \
factor * 100000, \
factor * 1000000, \
factor * 10000000, \
factor * 100000000, \
factor * 1000000000

Definition at line 270 of file format.cc.

◆ FMT_SNPRINTF

#define FMT_SNPRINTF   snprintf

◆ FMT_SWPRINTF

#define FMT_SWPRINTF   swprintf

◆ FMT_TRY

#define FMT_TRY   try

Definition at line 57 of file format.cc.

Function Documentation

◆ strerror_r()

static FMT_MAYBE_UNUSED fmt::internal::Null strerror_r ( int ,
char * ,
... )
inlinestatic

Definition at line 76 of file format.cc.

+ Here is the caller graph for this function:

◆ strerror_s()

static FMT_MAYBE_UNUSED fmt::internal::Null strerror_s ( char * ,
std::size_t ,
... )
inlinestatic

Definition at line 80 of file format.cc.

+ Here is the caller graph for this function: