Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

tinyformat.h File Reference
#include <algorithm>
#include <cassert>
#include <iostream>
#include <sstream>
#include <stdexcept>
+ 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.

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

 tinyformat
 
 tinyformat::detail
 

Macros

#define TINYFORMAT_ERROR(reasonString)   throw tinyformat::format_error(reasonString)
 
#define TINYFORMAT_USE_VARIADIC_TEMPLATES
 
#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   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_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_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   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
 
#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_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)   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 strprintf   tinyformat::format
 

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)
 
const char * tinyformat::detail::printFormatStringLiteral (std::ostream &out, const char *fmt)
 
const char * tinyformat::detail::streamStateFromFormat (std::ostream &out, bool &spacePadPositive, int &ntrunc, const char *fmtStart, const detail::FormatArg *formatters, int &argIndex, int numFormatters)
 
void tinyformat::detail::formatImpl (std::ostream &out, const char *fmt, const detail::FormatArg *formatters, int numFormatters)
 
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)
 

Macro Definition Documentation

◆ strprintf

#define strprintf   tinyformat::format

Definition at line 1066 of file tinyformat.h.

Referenced by CChainState::AcceptBlock(), CConnman::AcceptConnection(), AcceptToMemoryPoolWorker(), CDeterministicMNList::AddMN(), llmq::CLLMQUtils::AddQuorumProbeConnections(), AddrToPubKey(), AddTimeData(), AmountErrMsg(), AmountHighWarn(), AppInit(), AppInitMain(), AppInitParameterInteraction(), AppInitRawTx(), AppInitRPC(), AppInitSanityChecks(), CDeterministicMNList::ApplyDiff(), TorController::auth_cb(), CWallet::AutoBackupWallet(), CBatchedLogger::Batch(), BerkeleyBatch::BerkeleyBatch(), CConnman::BindListenPort(), blockheaderToJSON(), blockToJSON(), bls_fromsecret(), BOOST_FIXTURE_TEST_CASE(), BuildSimplifiedMNListDiff(), CTxMemPool::CalculateMemPoolAncestors(), CallRPC(), CPrivateSendClientManager::CheckAutomaticBackup(), CheckBlock(), CheckInputs(), Consensus::CheckTxInputs(), llmq::CSigSharesManager::Cleanup(), combinerawtransaction(), CTransactionBuilder::Commit(), ConnectThroughProxy(), ContextualCheckBlockHeader(), CopyrightHolders(), CreateBaseChainParams(), CreateChainParams(), createmultisig(), CreateMultisigRedeemscript(), BlockAssembler::CreateNewBlock(), CWallet::CreateWalletFromFile(), CKeePassIntegrator::doHTTPPost(), dumpwallet(), llmq::CLLMQUtils::EnsureQuorumConnections(), CBatchedLogger::Flush(), GUIUtil::fontFamilyFromString(), FormatMoney(), FormatScript(), FormatStateMessage(), FormatVersion(), fundrawtransaction(), getblockheaders(), GetBlockPosFilename(), getblockstats(), getblocktemplate(), CInv::GetCommand(), GetCrashInfoFromException(), GetCrashInfoStr(), GetCrashInfoStrNoDebugInfo(), WalletInit::GetHelpString(), GetHelpString(), GetImportTimestamp(), CHDPubKey::GetKeyPath(), CNode::GetLogString(), getmerkleblocks(), getnetworkinfo(), getpeerinfo(), CPrivateSendClientSession::GetStatus(), getwalletinfo(), gobject_vote_conf(), HandlePosixSignal(), CRPCTable::help(), HelpExampleRpc(), HelpMessage(), HelpMessageCli(), HelpMessageDialog::HelpMessageDialog(), i64tostr(), importmulti(), InitHTTPAllowList(), NetworkStyle::instantiate(), IsBlockValueValid(), CGovernanceObject::IsCollateralValid(), IsOldBudgetBlockValueValid(), CGovernanceObject::IsValidLocally(), itostr(), LicenseInfo(), listunspent(), GUIUtil::loadStyleSheet(), LockDataDirectory(), LogThreadNameStr(), LogTimestampStr(), BerkeleyEnvironment::MakeMock(), CProRegTx::MakeSignString(), masternode_connect(), masternode_count(), masternode_winners(), MutateTxAddOutMultiSig(), MutateTxAddOutScript(), NetworkErrorString(), BerkeleyEnvironment::Open(), WalletInit::ParameterInteraction(), ParseBlock(), ParseBLSPubKey(), ParseBLSSecretKey(), ParseConfirmTarget(), ParseHashV(), ParsePrivKey(), ParsePubKeyIDFromAddress(), CProposalValidator::ParseStrHexData(), CDeterministicMNList::PoSeDecrease(), CDeterministicMNList::PoSePunish(), PrintExceptionContinue(), CPrivateSendServer::ProcessMessage(), CPrivateSendClientSession::ProcessMessage(), CPrivateSendClientManager::ProcessMessage(), CGovernanceManager::ProcessMessage(), ProcessMessage(), CPrivateSendClientSession::ProcessPoolStateUpdate(), CSporkManager::ProcessSpork(), CMasternodeSync::ProcessTick(), protx_info(), ArgsManager::ReadConfigFile(), ReadKeyValue(), BerkeleyBatch::Recover(), CGovernanceObject::RemoveInvalidVotes(), CDeterministicMNList::RemoveMN(), RenameThreadPool(), ResolveErrMsg(), rest_getutxos(), RPCTypeCheckArgument(), RPCTypeCheckObj(), ScriptToAsmStr(), CWallet::SelectCoinsGroupedByAddresses(), SendBlockTransactions(), sendmany(), SendMoney(), sendrawtransaction(), CWalletTx::SerializationOp(), CBLSId::SetInt(), ShowProgress(), llmq::CDKGSessionHandler::StartThread(), strings_2_strptintf(), terminate_handler(), CConnman::ThreadDNSAddressSeed(), CWallet::TopUpKeyPool(), CCbTx::ToString(), llmq::CChainLockSig::ToString(), CFeeRate::ToString(), COutPoint::ToString(), CProRegTx::ToString(), CBlockFileInfo::ToString(), CSimplifiedMNListEntry::ToString(), llmq::CSigSesAnn::ToString(), CDeterministicMNState::ToString(), CDiskBlockPos::ToString(), CProUpServTx::ToString(), CBlock::ToString(), CTransactionBuilder::ToString(), CSubNet::ToString(), llmq::CSigSharesInv::ToString(), CTxIn::ToString(), CProUpRegTx::ToString(), CTxOut::ToString(), CProUpRevTx::ToString(), CDeterministicMN::ToString(), CPrivateSendQueue::ToString(), CTransaction::ToString(), CSporkManager::ToString(), CGovernanceManager::ToString(), CBlockIndex::ToString(), CMutableTransaction::ToString(), CDiskBlockIndex::ToString(), CInv::ToString(), COutput::ToString(), CNetAddr::ToStringIP(), CService::ToStringPort(), COutPoint::ToStringShort(), UndoSpecialTxsInBlock(), CDeterministicMNList::UpdateMN(), TransactionRecord::updateStatus(), UpdateTip(), CDeterministicMNManager::UpgradeDiff(), CProposalValidator::ValidateName(), ValueFromAmount(), WalletInit::Verify(), CWallet::Verify(), verifychain(), BerkeleyBatch::VerifyDatabaseFile(), BerkeleyBatch::VerifyEnvironment(), CHashSigner::VerifyHash(), VoteWithMasternodes(), and walletpassphrase().

◆ TINYFORMAT_ARGTYPES

#define TINYFORMAT_ARGTYPES (   n)    TINYFORMAT_ARGTYPES_ ## n

Definition at line 374 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_1

#define TINYFORMAT_ARGTYPES_1   class T1

Definition at line 415 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 424 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 425 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 426 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 427 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 428 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 429 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 430 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_2

#define TINYFORMAT_ARGTYPES_2   class T1, class T2

Definition at line 416 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_3

#define TINYFORMAT_ARGTYPES_3   class T1, class T2, class T3

Definition at line 417 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_4

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

Definition at line 418 of file tinyformat.h.

◆ TINYFORMAT_ARGTYPES_5

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

Definition at line 419 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 420 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 421 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 422 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 423 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); \
}
void formatTruncated(std::ostream &out, const T &value, int ntrunc)
Definition: tinyformat.h:274

Definition at line 281 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; \
} \
}
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:315

Definition at line 350 of file tinyformat.h.

◆ TINYFORMAT_ERROR

#define TINYFORMAT_ERROR (   reasonString)    throw tinyformat::format_error(reasonString)

◆ 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 483 of file tinyformat.h.

◆ TINYFORMAT_HIDDEN

#define TINYFORMAT_HIDDEN

Definition at line 162 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS

#define TINYFORMAT_PASSARGS (   n)    TINYFORMAT_PASSARGS_ ## n

Definition at line 376 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_1

#define TINYFORMAT_PASSARGS_1   v1

Definition at line 449 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_10

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

Definition at line 458 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 459 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 460 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 461 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 462 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 463 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 464 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_2

#define TINYFORMAT_PASSARGS_2   v1, v2

Definition at line 450 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_3

#define TINYFORMAT_PASSARGS_3   v1, v2, v3

Definition at line 451 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_4

#define TINYFORMAT_PASSARGS_4   v1, v2, v3, v4

Definition at line 452 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_5

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

Definition at line 453 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_6

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

Definition at line 454 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_7

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

Definition at line 455 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_8

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

Definition at line 456 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_9

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

Definition at line 457 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL

#define TINYFORMAT_PASSARGS_TAIL (   n)    TINYFORMAT_PASSARGS_TAIL_ ## n

Definition at line 377 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_1

#define TINYFORMAT_PASSARGS_TAIL_1

Definition at line 466 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 475 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 476 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 477 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 478 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 479 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 480 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 481 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_2

#define TINYFORMAT_PASSARGS_TAIL_2   , v2

Definition at line 467 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_3

#define TINYFORMAT_PASSARGS_TAIL_3   , v2, v3

Definition at line 468 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_4

#define TINYFORMAT_PASSARGS_TAIL_4   , v2, v3, v4

Definition at line 469 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_5

#define TINYFORMAT_PASSARGS_TAIL_5   , v2, v3, v4, v5

Definition at line 470 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_6

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

Definition at line 471 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_7

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

Definition at line 472 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_8

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

Definition at line 473 of file tinyformat.h.

◆ TINYFORMAT_PASSARGS_TAIL_9

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

Definition at line 474 of file tinyformat.h.

◆ TINYFORMAT_USE_VARIADIC_TEMPLATES

#define TINYFORMAT_USE_VARIADIC_TEMPLATES

Definition at line 130 of file tinyformat.h.

◆ TINYFORMAT_VARARGS

#define TINYFORMAT_VARARGS (   n)    TINYFORMAT_VARARGS_ ## n

Definition at line 375 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_1

#define TINYFORMAT_VARARGS_1   const T1& v1

Definition at line 432 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 441 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 442 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 443 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 444 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 445 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 446 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 447 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_2

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

Definition at line 433 of file tinyformat.h.

◆ TINYFORMAT_VARARGS_3

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

Definition at line 434 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 435 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 436 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 437 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 438 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 439 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 440 of file tinyformat.h.

Released under the MIT license