HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
format-inl.h File Reference
#include "format.h"
#include <string.h>
#include <cctype>
#include <cerrno>
#include <climits>
#include <cmath>
#include <cstdarg>
#include <cstddef>
#include <cstring>
#include <locale>
+ Include dependency graph for format-inl.h:

Go to the source code of this file.

Classes

class  internal::fp
 
struct  internal::gen_digits_params
 
struct  internal::prettify_handler
 
struct  internal::fill
 
struct  internal::char_counter
 

Namespaces

 FMT_BEGIN_NAMESPACE
 
 internal
 

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)
 
#define FMT_FALLTHROUGH
 

Typedefs

typedef void(* FMT_BEGIN_NAMESPACE::FormatFunc )(internal::buffer &, int, string_view)
 

Functions

fmt::internal::null strerror_r (int, char *,...)
 
fmt::internal::null strerror_s (char *, std::size_t,...)
 
int FMT_BEGIN_NAMESPACE::safe_strerror (int error_code, char *&buffer, std::size_t buffer_size) FMT_NOEXCEPT
 
void FMT_BEGIN_NAMESPACE::format_error_code (internal::buffer &out, int error_code, string_view message) FMT_NOEXCEPT
 
void FMT_BEGIN_NAMESPACE::report_error (FormatFunc func, int error_code, string_view message) FMT_NOEXCEPT
 
template<typename Char >
FMT_FUNC Char internal::thousands_sep_impl (locale_ref loc)
 
fp internal::operator- (fp x, fp y)
 
FMT_API fp internal::operator* (fp x, fp y)
 
FMT_API fp internal::get_cached_power (int min_exponent, int &pow10_exponent)
 
FMT_FUNC bool internal::grisu2_round (char *buffer, size_t &size, size_t max_digits, uint64_t delta, uint64_t remainder, uint64_t exp, uint64_t diff, int &exp10)
 
FMT_FUNC bool internal::grisu2_gen_digits (char *buffer, size_t &size, uint32_t hi, uint64_t lo, int &exp, uint64_t delta, const fp &one, const fp &diff, size_t max_digits)
 
template<typename Handler >
FMT_FUNC void internal::write_exponent (int exp, Handler &&h)
 
template<typename Handler >
FMT_FUNC void internal::grisu2_prettify (const gen_digits_params &params, size_t size, int exp, Handler &&handler)
 
FMT_FUNC gen_digits_params internal::process_specs (const core_format_specs &specs, int exp, buffer &buf)
 
template<typename Double >
FMT_FUNC std::enable_if
< sizeof(Double)==sizeof(uint64_t),
bool >::type 
internal::grisu2_format (Double value, buffer &buf, core_format_specs specs)
 
template<typename Double >
void internal::sprintf_format (Double value, internal::buffer &buffer, core_format_specs spec)
 
FMT_FUNC void format_system_error (internal::buffer &out, int error_code, string_view message) FMT_NOEXCEPT
 
FMT_FUNC void report_system_error (int error_code, fmt::string_view message) FMT_NOEXCEPT
 
FMT_FUNC void vprint (std::FILE *f, string_view format_str, format_args args)
 
FMT_FUNC void vprint (std::FILE *f, wstring_view format_str, wformat_args args)
 
FMT_FUNC void vprint (string_view format_str, format_args args)
 
FMT_FUNC void vprint (wstring_view format_str, wformat_args args)
 

Macro Definition Documentation

#define FMT_CATCH (   x)    catch (x)

Definition at line 41 of file format-inl.h.

#define FMT_FALLTHROUGH

Definition at line 536 of file format-inl.h.

#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 267 of file format-inl.h.

#define FMT_SNPRINTF   snprintf

Definition at line 70 of file format-inl.h.

#define FMT_SWPRINTF   swprintf

Definition at line 85 of file format-inl.h.

#define FMT_TRY   try

Definition at line 40 of file format-inl.h.

Function Documentation

FMT_FUNC void format_system_error ( internal::buffer out,
int  error_code,
string_view  message 
)

Definition at line 905 of file format-inl.h.

FMT_FUNC void report_system_error ( int  error_code,
fmt::string_view  message 
)

Definition at line 932 of file format-inl.h.

fmt::internal::null strerror_r ( int  ,
char *  ,
  ... 
)
inline

Definition at line 58 of file format-inl.h.

fmt::internal::null strerror_s ( char *  ,
std::size_t  ,
  ... 
)
inline

Definition at line 61 of file format-inl.h.

FMT_FUNC void vprint ( std::FILE *  f,
string_view  format_str,
format_args  args 
)

Definition at line 944 of file format-inl.h.

FMT_FUNC void vprint ( std::FILE *  f,
wstring_view  format_str,
wformat_args  args 
)

Definition at line 951 of file format-inl.h.

FMT_FUNC void vprint ( string_view  format_str,
format_args  args 
)

Definition at line 957 of file format-inl.h.

FMT_FUNC void vprint ( wstring_view  format_str,
wformat_args  args 
)

Definition at line 961 of file format-inl.h.