![]() |
Bitcoin Core 31.0.0
P2P Digital Currency
|
#include <algorithm>#include <attributes.h>#include <iostream>#include <sstream>#include <stdexcept>#include <util/string.h>#include <cassert>Go to the source code of this file.
Namespaces | |
| namespace | tinyformat |
| namespace | tinyformat::detail |
Typedefs | |
| typedef const FormatList & | tinyformat::FormatListRef |
| Reference to type-opaque format list for passing to vformat() | |
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. | |
| 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. | |
| void | tinyformat::vformat (std::ostream &out, const char *fmt, FormatListRef list) |
| Format list of arguments to the stream according to the given format string. | |
| template<typename... Args> | |
| void | tinyformat::format (std::ostream &out, FormatStringCheck< sizeof...(Args)> fmt, const Args &... args) |
| Format list of arguments to the stream according to given format string. | |
| template<typename... Args> | |
| std::string | tinyformat::format (FormatStringCheck< sizeof...(Args)> fmt, const Args &... args) |
| Format list of arguments according to the given format string and return the result as a string. | |
| template<typename... Args> | |
| void | tinyformat::printf (FormatStringCheck< sizeof...(Args)> fmt, const Args &... args) |
| Format list of arguments to std::cout, according to the given format string. | |
| template<typename... Args> | |
| void | tinyformat::printfln (FormatStringCheck< sizeof...(Args)> 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 1172 of file tinyformat.h.
| #define TINYFORMAT_ARGTYPES | ( | n | ) | TINYFORMAT_ARGTYPES_ ## n |
Definition at line 406 of file tinyformat.h.
Definition at line 447 of file tinyformat.h.
| #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 456 of file tinyformat.h.
| #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 457 of file tinyformat.h.
| #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 458 of file tinyformat.h.
| #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 459 of file tinyformat.h.
| #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 460 of file tinyformat.h.
| #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 461 of file tinyformat.h.
| #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 462 of file tinyformat.h.
Definition at line 449 of file tinyformat.h.
Definition at line 450 of file tinyformat.h.
Definition at line 451 of file tinyformat.h.
Definition at line 452 of file tinyformat.h.
Definition at line 453 of file tinyformat.h.
| #define TINYFORMAT_ARGTYPES_8 class T1, class T2, class T3, class T4, class T5, class T6, class T7, class T8 |
Definition at line 454 of file tinyformat.h.
| #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 455 of file tinyformat.h.
Definition at line 153 of file tinyformat.h.
| #define TINYFORMAT_DEFINE_FORMAT_TRUNCATED_CSTR | ( | type | ) |
Definition at line 315 of file tinyformat.h.
Definition at line 383 of file tinyformat.h.
| #define TINYFORMAT_ERROR | ( | reasonString | ) | throw tinyformat::format_error(reasonString) |
Definition at line 135 of file tinyformat.h.
| #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 515 of file tinyformat.h.
| #define TINYFORMAT_HIDDEN |
Definition at line 178 of file tinyformat.h.
| #define TINYFORMAT_PASSARGS | ( | n | ) | TINYFORMAT_PASSARGS_ ## n |
Definition at line 408 of file tinyformat.h.
| #define TINYFORMAT_PASSARGS_1 v1 |
Definition at line 481 of file tinyformat.h.
Definition at line 490 of file tinyformat.h.
Definition at line 491 of file tinyformat.h.
Definition at line 492 of file tinyformat.h.
Definition at line 493 of file tinyformat.h.
Definition at line 494 of file tinyformat.h.
Definition at line 495 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 496 of file tinyformat.h.
| #define TINYFORMAT_PASSARGS_2 v1, v2 |
Definition at line 482 of file tinyformat.h.
Definition at line 483 of file tinyformat.h.
Definition at line 484 of file tinyformat.h.
Definition at line 487 of file tinyformat.h.
Definition at line 488 of file tinyformat.h.
Definition at line 489 of file tinyformat.h.
| #define TINYFORMAT_PASSARGS_TAIL | ( | n | ) | TINYFORMAT_PASSARGS_TAIL_ ## n |
Definition at line 409 of file tinyformat.h.
| #define TINYFORMAT_PASSARGS_TAIL_1 |
Definition at line 498 of file tinyformat.h.
Definition at line 507 of file tinyformat.h.
Definition at line 508 of file tinyformat.h.
Definition at line 509 of file tinyformat.h.
Definition at line 510 of file tinyformat.h.
Definition at line 511 of file tinyformat.h.
Definition at line 512 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 513 of file tinyformat.h.
| #define TINYFORMAT_PASSARGS_TAIL_2 , v2 |
Definition at line 499 of file tinyformat.h.
Definition at line 500 of file tinyformat.h.
Definition at line 501 of file tinyformat.h.
Definition at line 503 of file tinyformat.h.
Definition at line 504 of file tinyformat.h.
Definition at line 505 of file tinyformat.h.
Definition at line 506 of file tinyformat.h.
| #define TINYFORMAT_USE_VARIADIC_TEMPLATES |
Definition at line 139 of file tinyformat.h.
| #define TINYFORMAT_VARARGS | ( | n | ) | TINYFORMAT_VARARGS_ ## n |
Definition at line 407 of file tinyformat.h.
Definition at line 464 of file tinyformat.h.
| #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 473 of file tinyformat.h.
| #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 474 of file tinyformat.h.
| #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 475 of file tinyformat.h.
| #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 476 of file tinyformat.h.
| #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 477 of file tinyformat.h.
| #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 478 of file tinyformat.h.
| #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 479 of file tinyformat.h.
Definition at line 465 of file tinyformat.h.
Definition at line 466 of file tinyformat.h.
Definition at line 467 of file tinyformat.h.
Definition at line 468 of file tinyformat.h.
| #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 469 of file tinyformat.h.
| #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 470 of file tinyformat.h.
| #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 471 of file tinyformat.h.