souffle  2.0.2-371-g6315b36
Data Structures | Namespaces | Macros | Typedefs | Functions
tinyformat.h File Reference
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <cassert>
Include dependency graph for tinyformat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  tinyformat::detail::convertToInt< T, convertible >
 
struct  tinyformat::detail::convertToInt< T, true >
 
struct  tinyformat::detail::is_convertible< T1, T2 >::fail
 
class  tinyformat::detail::FormatArg
 
class  tinyformat::FormatList
 List of template arguments format(), held in a type-opaque way. More...
 
class  tinyformat::detail::FormatListN< N >
 
class  tinyformat::detail::FormatListN< 0 >
 
struct  tinyformat::detail::formatValueAsType< T, fmtT, convertible >
 
struct  tinyformat::detail::formatValueAsType< T, fmtT, true >
 
struct  tinyformat::detail::is_convertible< T1, T2 >
 
struct  tinyformat::detail::is_wchar< T >
 
struct  tinyformat::detail::is_wchar< const wchar_t * >
 
struct  tinyformat::detail::is_wchar< const wchar_t[n]>
 
struct  tinyformat::detail::is_wchar< wchar_t * >
 
struct  tinyformat::detail::is_wchar< wchar_t[n]>
 
struct  tinyformat::detail::is_convertible< T1, T2 >::succeed
 

Namespaces

 tinyformat
 
 tinyformat::detail
 

Macros

#define TINYFORMAT_ARGTYPES(n)   TINYFORMAT_ARGTYPES_ ## n
 
#define TINYFORMAT_ARGTYPES_1   class T1
 
#define TINYFORMAT_ARGTYPES_10   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10
 
#define TINYFORMAT_ARGTYPES_11   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11
 
#define TINYFORMAT_ARGTYPES_12   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12
 
#define TINYFORMAT_ARGTYPES_13   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13
 
#define TINYFORMAT_ARGTYPES_14   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14
 
#define TINYFORMAT_ARGTYPES_15   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14, class T15
 
#define TINYFORMAT_ARGTYPES_16   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14, class T15, class T16
 
#define TINYFORMAT_ARGTYPES_2   class T1, class T2
 
#define TINYFORMAT_ARGTYPES_3   class T1, class T2, class T3
 
#define TINYFORMAT_ARGTYPES_4   class T1, class T2, class T3, class T4
 
#define TINYFORMAT_ARGTYPES_5   class T1, class T2, class T3, class T4, class T5
 
#define TINYFORMAT_ARGTYPES_6   class T1, class T2, class T3, class T4, class T5, class T6
 
#define TINYFORMAT_ARGTYPES_7   class T1, class T2, class T3, class T4, class T5, class T6, class T7
 
#define TINYFORMAT_ARGTYPES_8   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8
 
#define TINYFORMAT_ARGTYPES_9   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9
 
#define TINYFORMAT_ASSERT(cond)   assert(cond)
 
#define TINYFORMAT_DEFINE_FORMAT_TRUNCATED_CSTR(type)
 
#define TINYFORMAT_DEFINE_FORMATVALUE_CHAR(charType)
 
#define TINYFORMAT_ERROR(reason)   assert(0 && reason)
 
#define TINYFORMAT_FOREACH_ARGNUM(m)   m(1) m(2) m(3) m(4) m(5) m(6) m(7) m(8) m(9) m(10) m(11) m(12) m(13) m(14) m(15) m(16)
 
#define TINYFORMAT_HIDDEN
 
#define TINYFORMAT_MAKE_FORMAT_FUNCS(n)
 
#define TINYFORMAT_MAKE_FORMATLIST_CONSTRUCTOR(n)
 
#define TINYFORMAT_MAKE_MAKEFORMATLIST(n)
 
#define TINYFORMAT_PASSARGS(n)   TINYFORMAT_PASSARGS_ ## n
 
#define TINYFORMAT_PASSARGS_1   v1
 
#define TINYFORMAT_PASSARGS_10   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10
 
#define TINYFORMAT_PASSARGS_11   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11
 
#define TINYFORMAT_PASSARGS_12   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12
 
#define TINYFORMAT_PASSARGS_13   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13
 
#define TINYFORMAT_PASSARGS_14   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14
 
#define TINYFORMAT_PASSARGS_15   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15
 
#define TINYFORMAT_PASSARGS_16   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16
 
#define TINYFORMAT_PASSARGS_2   v1, v2
 
#define TINYFORMAT_PASSARGS_3   v1, v2, v3
 
#define TINYFORMAT_PASSARGS_4   v1, v2, v3, v4
 
#define TINYFORMAT_PASSARGS_5   v1, v2, v3, v4, v5
 
#define TINYFORMAT_PASSARGS_6   v1, v2, v3, v4, v5, v6
 
#define TINYFORMAT_PASSARGS_7   v1, v2, v3, v4, v5, v6, v7
 
#define TINYFORMAT_PASSARGS_8   v1, v2, v3, v4, v5, v6, v7, v8
 
#define TINYFORMAT_PASSARGS_9   v1, v2, v3, v4, v5, v6, v7, v8, v9
 
#define TINYFORMAT_PASSARGS_TAIL(n)   TINYFORMAT_PASSARGS_TAIL_ ## n
 
#define TINYFORMAT_PASSARGS_TAIL_1
 
#define TINYFORMAT_PASSARGS_TAIL_10   , v2, v3, v4, v5, v6, v7, v8, v9, v10
 
#define TINYFORMAT_PASSARGS_TAIL_11   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11
 
#define TINYFORMAT_PASSARGS_TAIL_12   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12
 
#define TINYFORMAT_PASSARGS_TAIL_13   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13
 
#define TINYFORMAT_PASSARGS_TAIL_14   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14
 
#define TINYFORMAT_PASSARGS_TAIL_15   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15
 
#define TINYFORMAT_PASSARGS_TAIL_16   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16
 
#define TINYFORMAT_PASSARGS_TAIL_2   , v2
 
#define TINYFORMAT_PASSARGS_TAIL_3   , v2, v3
 
#define TINYFORMAT_PASSARGS_TAIL_4   , v2, v3, v4
 
#define TINYFORMAT_PASSARGS_TAIL_5   , v2, v3, v4, v5
 
#define TINYFORMAT_PASSARGS_TAIL_6   , v2, v3, v4, v5, v6
 
#define TINYFORMAT_PASSARGS_TAIL_7   , v2, v3, v4, v5, v6, v7
 
#define TINYFORMAT_PASSARGS_TAIL_8   , v2, v3, v4, v5, v6, v7, v8
 
#define TINYFORMAT_PASSARGS_TAIL_9   , v2, v3, v4, v5, v6, v7, v8, v9
 
#define TINYFORMAT_VARARGS(n)   TINYFORMAT_VARARGS_ ## n
 
#define TINYFORMAT_VARARGS_1   const T1& v1
 
#define TINYFORMAT_VARARGS_10   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10
 
#define TINYFORMAT_VARARGS_11   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11
 
#define TINYFORMAT_VARARGS_12   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12
 
#define TINYFORMAT_VARARGS_13   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13
 
#define TINYFORMAT_VARARGS_14   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13, const T14& v14
 
#define TINYFORMAT_VARARGS_15   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13, const T14& v14, const T15& v15
 
#define TINYFORMAT_VARARGS_16   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13, const T14& v14, const T15& v15, const T16& v16
 
#define TINYFORMAT_VARARGS_2   const T1& v1, const T2& v2
 
#define TINYFORMAT_VARARGS_3   const T1& v1, const T2& v2, const T3& v3
 
#define TINYFORMAT_VARARGS_4   const T1& v1, const T2& v2, const T3& v3, const T4& v4
 
#define TINYFORMAT_VARARGS_5   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5
 
#define TINYFORMAT_VARARGS_6   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6
 
#define TINYFORMAT_VARARGS_7   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7
 
#define TINYFORMAT_VARARGS_8   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8
 
#define TINYFORMAT_VARARGS_9   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9
 

Typedefs

using tinyformat::FormatListRef = const FormatList &
 Reference to type-opaque format list for passing to vformat() More...
 

Functions

std::string tinyformat::format (const char *fmt)
 
void tinyformat::format (std::ostream &out, const char *fmt)
 
void tinyformat::detail::formatImpl (std::ostream &out, const char *fmt, const detail::FormatArg *args, int numArgs)
 
template<typename T >
void tinyformat::detail::formatTruncated (std::ostream &out, const T &value, int ntrunc)
 
template<typename T >
void tinyformat::formatValue (std::ostream &out, const char *, const char *fmtEnd, int ntrunc, const T &value)
 Format a value into a stream, delegating to operator<< by default. More...
 
detail::FormatListN< 0 > tinyformat::makeFormatList ()
 
int tinyformat::detail::parseIntAndAdvance (const char *&c)
 
bool tinyformat::detail::parseWidthOrPrecision (int &n, const char *&c, bool positionalMode, const detail::FormatArg *args, int &argIndex, int numArgs)
 
void tinyformat::printf (const char *fmt)
 
void tinyformat::printfln (const char *fmt)
 
const char * tinyformat::detail::printFormatStringLiteral (std::ostream &out, const char *fmt)
 
const char * tinyformat::detail::streamStateFromFormat (std::ostream &out, bool &positionalMode, bool &spacePadPositive, int &ntrunc, const char *fmtStart, const detail::FormatArg *args, int &argIndex, int numArgs)
 
void tinyformat::vformat (std::ostream &out, const char *fmt, FormatListRef list)
 Format list of arguments to the stream according to the given format string. More...
 

Macro Definition Documentation

◆ TINYFORMAT_ARGTYPES

#define TINYFORMAT_ARGTYPES (   n)    TINYFORMAT_ARGTYPES_ ## n

Definition at line 385 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_1

#define TINYFORMAT_ARGTYPES_1   class T1

Definition at line 426 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_10

#define TINYFORMAT_ARGTYPES_10   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10

Definition at line 435 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_11

#define TINYFORMAT_ARGTYPES_11   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11

Definition at line 436 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_12

#define TINYFORMAT_ARGTYPES_12   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12

Definition at line 437 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_13

#define TINYFORMAT_ARGTYPES_13   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13

Definition at line 438 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_14

#define TINYFORMAT_ARGTYPES_14   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14

Definition at line 439 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_15

#define TINYFORMAT_ARGTYPES_15   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14, class T15

Definition at line 440 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_16

#define TINYFORMAT_ARGTYPES_16   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9, class T10, class T11, class T12, class T13, class T14, class T15, class T16

Definition at line 441 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_2

#define TINYFORMAT_ARGTYPES_2   class T1, class T2

Definition at line 427 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_3

#define TINYFORMAT_ARGTYPES_3   class T1, class T2, class T3

Definition at line 428 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_4

#define TINYFORMAT_ARGTYPES_4   class T1, class T2, class T3, class T4

Definition at line 429 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_5

#define TINYFORMAT_ARGTYPES_5   class T1, class T2, class T3, class T4, class T5

Definition at line 430 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_6

#define TINYFORMAT_ARGTYPES_6   class T1, class T2, class T3, class T4, class T5, class T6

Definition at line 431 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_7

#define TINYFORMAT_ARGTYPES_7   class T1, class T2, class T3, class T4, class T5, class T6, class T7

Definition at line 432 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_8

#define TINYFORMAT_ARGTYPES_8   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8

Definition at line 433 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_9

#define TINYFORMAT_ARGTYPES_9   class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8, class T9

Definition at line 434 of file tinyformat.h.

◆ TINYFORMAT_ASSERT

#define TINYFORMAT_ASSERT (   cond)    assert(cond)

Definition at line 154 of file tinyformat.h.

◆ TINYFORMAT_DEFINE_FORMAT_TRUNCATED_CSTR

#define TINYFORMAT_DEFINE_FORMAT_TRUNCATED_CSTR (   type)
Value:
inline void formatTruncated(std::ostream& out, type* value, int ntrunc) \
{ \
std::streamsize len = 0; \
while (len < ntrunc && value[len] != 0) \
++len; \
out.write(value, len); \
}

Definition at line 294 of file tinyformat.h.

◆ TINYFORMAT_DEFINE_FORMATVALUE_CHAR

#define TINYFORMAT_DEFINE_FORMATVALUE_CHAR (   charType)
Value:
inline void formatValue(std::ostream& out, const char* /*fmtBegin*/, \
const char* fmtEnd, int , charType value) \
{ \
switch (*(fmtEnd-1)) { \
case 'u': case 'd': case 'i': case 'o': case 'X': case 'x': \
out << static_cast<int>(value); break; \
default: \
out << value; break; \
} \
}

Definition at line 362 of file tinyformat.h.

◆ TINYFORMAT_ERROR

#define TINYFORMAT_ERROR (   reason)    assert(0 && reason)

Definition at line 159 of file tinyformat.h.

◆ TINYFORMAT_FOREACH_ARGNUM

#define TINYFORMAT_FOREACH_ARGNUM (   m)    m(1) m(2) m(3) m(4) m(5) m(6) m(7) m(8) m(9) m(10) m(11) m(12) m(13) m(14) m(15) m(16)

Definition at line 494 of file tinyformat.h.

◆ TINYFORMAT_HIDDEN

#define TINYFORMAT_HIDDEN

Definition at line 179 of file tinyformat.h.

◆ TINYFORMAT_MAKE_FORMAT_FUNCS

#define TINYFORMAT_MAKE_FORMAT_FUNCS (   n)
Value:
\
template<TINYFORMAT_ARGTYPES(n)> \
void format(std::ostream& out, const char* fmt, TINYFORMAT_VARARGS(n)) \
{ \
vformat(out, fmt, makeFormatList(TINYFORMAT_PASSARGS(n))); \
} \
\
template<TINYFORMAT_ARGTYPES(n)> \
std::string format(const char* fmt, TINYFORMAT_VARARGS(n)) \
{ \
std::ostringstream oss; \
format(oss, fmt, TINYFORMAT_PASSARGS(n)); \
return oss.str(); \
} \
\
template<TINYFORMAT_ARGTYPES(n)> \
void printf(const char* fmt, TINYFORMAT_VARARGS(n)) \
{ \
format(std::cout, fmt, TINYFORMAT_PASSARGS(n)); \
} \
\
template<TINYFORMAT_ARGTYPES(n)> \
void printfln(const char* fmt, TINYFORMAT_VARARGS(n)) \
{ \
format(std::cout, fmt, TINYFORMAT_PASSARGS(n)); \
std::cout << '\n'; \
}

Definition at line 1112 of file tinyformat.h.

◆ TINYFORMAT_MAKE_FORMATLIST_CONSTRUCTOR

#define TINYFORMAT_MAKE_FORMATLIST_CONSTRUCTOR (   n)
Value:
\
template<TINYFORMAT_ARGTYPES(n)> \
FormatListN(TINYFORMAT_VARARGS(n)) \
: FormatList(&m_formatterStore[0], n) \
{ TINYFORMAT_ASSERT(n == N); init(0, TINYFORMAT_PASSARGS(n)); } \
\
template<TINYFORMAT_ARGTYPES(n)> \
void init(int i, TINYFORMAT_VARARGS(n)) \
{ \
m_formatterStore[i] = FormatArg(v1); \
}

Definition at line 974 of file tinyformat.h.

◆ TINYFORMAT_MAKE_MAKEFORMATLIST

#define TINYFORMAT_MAKE_MAKEFORMATLIST (   n)
Value:
template<TINYFORMAT_ARGTYPES(n)> \
detail::FormatListN<n> makeFormatList(TINYFORMAT_VARARGS(n)) \
{ \
return detail::FormatListN<n>(TINYFORMAT_PASSARGS(n)); \
}

Definition at line 1032 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS

#define TINYFORMAT_PASSARGS (   n)    TINYFORMAT_PASSARGS_ ## n

Definition at line 387 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_1

#define TINYFORMAT_PASSARGS_1   v1

Definition at line 460 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_10

#define TINYFORMAT_PASSARGS_10   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10

Definition at line 469 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_11

#define TINYFORMAT_PASSARGS_11   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11

Definition at line 470 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_12

#define TINYFORMAT_PASSARGS_12   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12

Definition at line 471 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_13

#define TINYFORMAT_PASSARGS_13   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13

Definition at line 472 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_14

#define TINYFORMAT_PASSARGS_14   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14

Definition at line 473 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_15

#define TINYFORMAT_PASSARGS_15   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15

Definition at line 474 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_16

#define TINYFORMAT_PASSARGS_16   v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16

Definition at line 475 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_2

#define TINYFORMAT_PASSARGS_2   v1, v2

Definition at line 461 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_3

#define TINYFORMAT_PASSARGS_3   v1, v2, v3

Definition at line 462 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_4

#define TINYFORMAT_PASSARGS_4   v1, v2, v3, v4

Definition at line 463 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_5

#define TINYFORMAT_PASSARGS_5   v1, v2, v3, v4, v5

Definition at line 464 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_6

#define TINYFORMAT_PASSARGS_6   v1, v2, v3, v4, v5, v6

Definition at line 465 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_7

#define TINYFORMAT_PASSARGS_7   v1, v2, v3, v4, v5, v6, v7

Definition at line 466 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_8

#define TINYFORMAT_PASSARGS_8   v1, v2, v3, v4, v5, v6, v7, v8

Definition at line 467 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_9

#define TINYFORMAT_PASSARGS_9   v1, v2, v3, v4, v5, v6, v7, v8, v9

Definition at line 468 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL

#define TINYFORMAT_PASSARGS_TAIL (   n)    TINYFORMAT_PASSARGS_TAIL_ ## n

Definition at line 388 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_1

#define TINYFORMAT_PASSARGS_TAIL_1

Definition at line 477 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_10

#define TINYFORMAT_PASSARGS_TAIL_10   , v2, v3, v4, v5, v6, v7, v8, v9, v10

Definition at line 486 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_11

#define TINYFORMAT_PASSARGS_TAIL_11   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11

Definition at line 487 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_12

#define TINYFORMAT_PASSARGS_TAIL_12   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12

Definition at line 488 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_13

#define TINYFORMAT_PASSARGS_TAIL_13   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13

Definition at line 489 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_14

#define TINYFORMAT_PASSARGS_TAIL_14   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14

Definition at line 490 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_15

#define TINYFORMAT_PASSARGS_TAIL_15   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15

Definition at line 491 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_16

#define TINYFORMAT_PASSARGS_TAIL_16   , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16

Definition at line 492 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_2

#define TINYFORMAT_PASSARGS_TAIL_2   , v2

Definition at line 478 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_3

#define TINYFORMAT_PASSARGS_TAIL_3   , v2, v3

Definition at line 479 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_4

#define TINYFORMAT_PASSARGS_TAIL_4   , v2, v3, v4

Definition at line 480 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_5

#define TINYFORMAT_PASSARGS_TAIL_5   , v2, v3, v4, v5

Definition at line 481 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_6

#define TINYFORMAT_PASSARGS_TAIL_6   , v2, v3, v4, v5, v6

Definition at line 482 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_7

#define TINYFORMAT_PASSARGS_TAIL_7   , v2, v3, v4, v5, v6, v7

Definition at line 483 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_8

#define TINYFORMAT_PASSARGS_TAIL_8   , v2, v3, v4, v5, v6, v7, v8

Definition at line 484 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_9

#define TINYFORMAT_PASSARGS_TAIL_9   , v2, v3, v4, v5, v6, v7, v8, v9

Definition at line 485 of file tinyformat.h.

◆ TINYFORMAT_VARARGS

#define TINYFORMAT_VARARGS (   n)    TINYFORMAT_VARARGS_ ## n

Definition at line 386 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_1

#define TINYFORMAT_VARARGS_1   const T1& v1

Definition at line 443 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_10

#define TINYFORMAT_VARARGS_10   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10

Definition at line 452 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_11

#define TINYFORMAT_VARARGS_11   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11

Definition at line 453 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_12

#define TINYFORMAT_VARARGS_12   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12

Definition at line 454 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_13

#define TINYFORMAT_VARARGS_13   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13

Definition at line 455 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_14

#define TINYFORMAT_VARARGS_14   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13, const T14& v14

Definition at line 456 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_15

#define TINYFORMAT_VARARGS_15   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13, const T14& v14, const T15& v15

Definition at line 457 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_16

#define TINYFORMAT_VARARGS_16   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9, const T10& v10, const T11& v11, const T12& v12, const T13& v13, const T14& v14, const T15& v15, const T16& v16

Definition at line 458 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_2

#define TINYFORMAT_VARARGS_2   const T1& v1, const T2& v2

Definition at line 444 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_3

#define TINYFORMAT_VARARGS_3   const T1& v1, const T2& v2, const T3& v3

Definition at line 445 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_4

#define TINYFORMAT_VARARGS_4   const T1& v1, const T2& v2, const T3& v3, const T4& v4

Definition at line 446 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_5

#define TINYFORMAT_VARARGS_5   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5

Definition at line 447 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_6

#define TINYFORMAT_VARARGS_6   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6

Definition at line 448 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_7

#define TINYFORMAT_VARARGS_7   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7

Definition at line 449 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_8

#define TINYFORMAT_VARARGS_8   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8

Definition at line 450 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_9

#define TINYFORMAT_VARARGS_9   const T1& v1, const T2& v2, const T3& v3, const T4& v4, const T5& v5, const T6& v6, const T7& v7, const T8& v8, const T9& v9

Definition at line 451 of file tinyformat.h.

tinyformat::printfln
void printfln(const char *fmt)
Definition: tinyformat.h:1106
tinyformat::printf
void printf(const char *fmt)
Definition: tinyformat.h:1101
TINYFORMAT_PASSARGS_TAIL
#define TINYFORMAT_PASSARGS_TAIL(n)
Definition: tinyformat.h:388
n
var n
Definition: htmlJsChartistMin.h:15
tinyformat::format
std::string format(const char *fmt)
Definition: tinyformat.h:1094
i
size_t i
Definition: json11.h:663
TINYFORMAT_PASSARGS
#define TINYFORMAT_PASSARGS(n)
Definition: tinyformat.h:387
TINYFORMAT_VARARGS
#define TINYFORMAT_VARARGS(n)
Definition: tinyformat.h:386
TINYFORMAT_ASSERT
#define TINYFORMAT_ASSERT(cond)
Definition: tinyformat.h:154
tinyformat::makeFormatList
detail::FormatListN< 0 > makeFormatList()
Definition: tinyformat.h:1028
TINYFORMAT_ARGTYPES
#define TINYFORMAT_ARGTYPES(n)
Definition: tinyformat.h:385
tinyformat::detail::formatTruncated
void formatTruncated(std::ostream &out, const T &value, int ntrunc)
Definition: tinyformat.h:287
tinyformat::formatValue
void formatValue(std::ostream &out, const char *, const char *fmtEnd, int ntrunc, const T &value)
Format a value into a stream, delegating to operator<< by default.
Definition: tinyformat.h:328
std::type
ElementType type
Definition: span.h:640