Bitcoin ABC 0.30.7
P2P Digital Currency
|
#include <algorithm>
#include <cstdint>
#include <iostream>
#include <sstream>
#include <stdexcept>
#include <cassert>
Go to the source code of this file.
Classes | |
class | tinyformat::format_error |
struct | tinyformat::detail::is_convertible< T1, T2 > |
struct | tinyformat::detail::is_convertible< T1, T2 >::fail |
struct | tinyformat::detail::is_convertible< T1, T2 >::succeed |
struct | tinyformat::detail::is_wchar< T > |
struct | tinyformat::detail::is_wchar< 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[n]> |
struct | tinyformat::detail::formatValueAsType< T, fmtT, convertible > |
struct | tinyformat::detail::formatValueAsType< T, fmtT, true > |
struct | tinyformat::detail::convertToInt< T, convertible > |
struct | tinyformat::detail::convertToInt< T, true > |
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 > |
Namespaces | |
namespace | tinyformat |
namespace | tinyformat::detail |
Macros | |
#define | TINYFORMAT_ERROR(reasonString) throw tinyformat::format_error(reasonString) |
#define | TINYFORMAT_USE_VARIADIC_TEMPLATES |
#define | TINYFORMAT_ASSERT(cond) assert(cond) |
#define | TINYFORMAT_HIDDEN |
#define | TINYFORMAT_DEFINE_FORMAT_TRUNCATED_CSTR(type) |
#define | TINYFORMAT_DEFINE_FORMATVALUE_CHAR(charType) |
#define | TINYFORMAT_ARGTYPES(n) TINYFORMAT_ARGTYPES_##n |
#define | TINYFORMAT_VARARGS(n) TINYFORMAT_VARARGS_##n |
#define | TINYFORMAT_PASSARGS(n) TINYFORMAT_PASSARGS_##n |
#define | TINYFORMAT_PASSARGS_TAIL(n) TINYFORMAT_PASSARGS_TAIL_##n |
#define | TINYFORMAT_ARGTYPES_1 class T1 |
#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 |
#define | TINYFORMAT_ARGTYPES_9 |
#define | TINYFORMAT_ARGTYPES_10 |
#define | TINYFORMAT_ARGTYPES_11 |
#define | TINYFORMAT_ARGTYPES_12 |
#define | TINYFORMAT_ARGTYPES_13 |
#define | TINYFORMAT_ARGTYPES_14 |
#define | TINYFORMAT_ARGTYPES_15 |
#define | TINYFORMAT_ARGTYPES_16 |
#define | TINYFORMAT_VARARGS_1 const T1 &v1 |
#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 |
#define | TINYFORMAT_VARARGS_7 |
#define | TINYFORMAT_VARARGS_8 |
#define | TINYFORMAT_VARARGS_9 |
#define | TINYFORMAT_VARARGS_10 |
#define | TINYFORMAT_VARARGS_11 |
#define | TINYFORMAT_VARARGS_12 |
#define | TINYFORMAT_VARARGS_13 |
#define | TINYFORMAT_VARARGS_14 |
#define | TINYFORMAT_VARARGS_15 |
#define | TINYFORMAT_VARARGS_16 |
#define | TINYFORMAT_PASSARGS_1 v1 |
#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_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_TAIL_1 |
#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_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_FOREACH_ARGNUM(m) |
#define | strprintf tfm::format |
Format arguments and return the string or write to given std::ostream (see tinyformat::format doc for details) More... | |
Typedefs | |
typedef const FormatList & | tinyformat::FormatListRef |
Reference to type-opaque format list for passing to vformat() More... | |
Functions | |
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... | |
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) |
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::detail::formatImpl (std::ostream &out, const char *fmt, const detail::FormatArg *args, int numArgs) |
template<typename... Args> | |
detail::FormatListN< sizeof...(Args)> | tinyformat::makeFormatList (const Args &...args) |
Make type-agnostic format list from list of template arguments. More... | |
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... | |
template<typename... Args> | |
void | tinyformat::format (std::ostream &out, const char *fmt, const Args &...args) |
Format list of arguments to the stream according to given format string. More... | |
template<typename... Args> | |
std::string | tinyformat::format (const char *fmt, const Args &...args) |
Format list of arguments according to the given format string and return the result as a string. More... | |
template<typename... Args> | |
void | tinyformat::printf (const char *fmt, const Args &...args) |
Format list of arguments to std::cout, according to the given format string. More... | |
template<typename... Args> | |
void | tinyformat::printfln (const char *fmt, const Args &...args) |
template<typename... Args> | |
std::string | tinyformat::format (const std::string &fmt, const Args &...args) |
#define strprintf tfm::format |
Format arguments and return the string or write to given std::ostream (see tinyformat::format doc for details)
Definition at line 1202 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES | ( | n | ) | TINYFORMAT_ARGTYPES_##n |
Definition at line 389 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_1 class T1 |
Definition at line 430 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_10 |
Definition at line 445 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_11 |
Definition at line 448 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_12 |
Definition at line 451 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_13 |
Definition at line 454 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_14 |
Definition at line 457 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_15 |
Definition at line 461 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_16 |
Definition at line 465 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_2 class T1, class T2 |
Definition at line 431 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_3 class T1, class T2, class T3 |
Definition at line 432 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_4 class T1, class T2, class T3, class T4 |
Definition at line 433 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_5 class T1, class T2, class T3, class T4, class T5 |
Definition at line 434 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_6 class T1, class T2, class T3, class T4, class T5, class T6 |
Definition at line 435 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_7 class T1, class T2, class T3, class T4, class T5, class T6, class T7 |
Definition at line 437 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_8 |
Definition at line 439 of file tinyformat.h.
#define TINYFORMAT_ARGTYPES_9 |
Definition at line 442 of file tinyformat.h.
#define TINYFORMAT_ASSERT | ( | cond | ) | assert(cond) |
Definition at line 153 of file tinyformat.h.
#define TINYFORMAT_DEFINE_FORMAT_TRUNCATED_CSTR | ( | type | ) |
Definition at line 296 of file tinyformat.h.
#define TINYFORMAT_DEFINE_FORMATVALUE_CHAR | ( | charType | ) |
Definition at line 361 of file tinyformat.h.
#define TINYFORMAT_ERROR | ( | reasonString | ) | throw tinyformat::format_error(reasonString) |
Definition at line 136 of file tinyformat.h.
#define TINYFORMAT_FOREACH_ARGNUM | ( | m | ) |
Definition at line 563 of file tinyformat.h.
#define TINYFORMAT_HIDDEN |
Definition at line 179 of file tinyformat.h.
#define TINYFORMAT_PASSARGS | ( | n | ) | TINYFORMAT_PASSARGS_##n |
Definition at line 391 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_1 v1 |
Definition at line 520 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_10 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10 |
Definition at line 529 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_11 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11 |
Definition at line 530 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_12 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12 |
Definition at line 531 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_13 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13 |
Definition at line 532 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_14 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14 |
Definition at line 534 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_15 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 |
Definition at line 536 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_16 v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16 |
Definition at line 538 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_2 v1, v2 |
Definition at line 521 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_3 v1, v2, v3 |
Definition at line 522 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_4 v1, v2, v3, v4 |
Definition at line 523 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_5 v1, v2, v3, v4, v5 |
Definition at line 524 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_6 v1, v2, v3, v4, v5, v6 |
Definition at line 525 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_7 v1, v2, v3, v4, v5, v6, v7 |
Definition at line 526 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_8 v1, v2, v3, v4, v5, v6, v7, v8 |
Definition at line 527 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_9 v1, v2, v3, v4, v5, v6, v7, v8, v9 |
Definition at line 528 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL | ( | n | ) | TINYFORMAT_PASSARGS_TAIL_##n |
Definition at line 392 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_1 |
Definition at line 541 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_10 , v2, v3, v4, v5, v6, v7, v8, v9, v10 |
Definition at line 550 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_11 , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11 |
Definition at line 551 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_12 , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12 |
Definition at line 552 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_13 , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13 |
Definition at line 554 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_14 , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14 |
Definition at line 556 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_15 , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 |
Definition at line 558 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_16 , v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16 |
Definition at line 560 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_2 , v2 |
Definition at line 542 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_3 , v2, v3 |
Definition at line 543 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_4 , v2, v3, v4 |
Definition at line 544 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_5 , v2, v3, v4, v5 |
Definition at line 545 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_6 , v2, v3, v4, v5, v6 |
Definition at line 546 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_7 , v2, v3, v4, v5, v6, v7 |
Definition at line 547 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_8 , v2, v3, v4, v5, v6, v7, v8 |
Definition at line 548 of file tinyformat.h.
#define TINYFORMAT_PASSARGS_TAIL_9 , v2, v3, v4, v5, v6, v7, v8, v9 |
Definition at line 549 of file tinyformat.h.
#define TINYFORMAT_USE_VARIADIC_TEMPLATES |
Definition at line 141 of file tinyformat.h.
#define TINYFORMAT_VARARGS | ( | n | ) | TINYFORMAT_VARARGS_##n |
Definition at line 390 of file tinyformat.h.
#define TINYFORMAT_VARARGS_1 const T1 &v1 |
Definition at line 470 of file tinyformat.h.
#define TINYFORMAT_VARARGS_10 |
Definition at line 489 of file tinyformat.h.
#define TINYFORMAT_VARARGS_11 |
Definition at line 492 of file tinyformat.h.
#define TINYFORMAT_VARARGS_12 |
Definition at line 496 of file tinyformat.h.
#define TINYFORMAT_VARARGS_13 |
Definition at line 500 of file tinyformat.h.
#define TINYFORMAT_VARARGS_14 |
Definition at line 504 of file tinyformat.h.
#define TINYFORMAT_VARARGS_15 |
Definition at line 509 of file tinyformat.h.
#define TINYFORMAT_VARARGS_16 |
Definition at line 514 of file tinyformat.h.
#define TINYFORMAT_VARARGS_2 const T1 &v1, const T2 &v2 |
Definition at line 471 of file tinyformat.h.
#define TINYFORMAT_VARARGS_3 const T1 &v1, const T2 &v2, const T3 &v3 |
Definition at line 472 of file tinyformat.h.
#define TINYFORMAT_VARARGS_4 const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4 |
Definition at line 473 of file tinyformat.h.
#define TINYFORMAT_VARARGS_5 const T1 &v1, const T2 &v2, const T3 &v3, const T4 &v4, const T5 &v5 |
Definition at line 475 of file tinyformat.h.
#define TINYFORMAT_VARARGS_6 |
Definition at line 477 of file tinyformat.h.
#define TINYFORMAT_VARARGS_7 |
Definition at line 480 of file tinyformat.h.
#define TINYFORMAT_VARARGS_8 |
Definition at line 483 of file tinyformat.h.
#define TINYFORMAT_VARARGS_9 |
Definition at line 486 of file tinyformat.h.