souffle
2.0.2-371-g6315b36
|
Namespaces | |
detail | |
Data Structures | |
class | FormatList |
List of template arguments format(), held in a type-opaque way. More... | |
Typedefs | |
using | FormatListRef = const FormatList & |
Reference to type-opaque format list for passing to vformat() More... | |
Functions | |
std::string | format (const char *fmt) |
void | format (std::ostream &out, const char *fmt) |
template<typename T > | |
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. More... | |
detail::FormatListN< 0 > | makeFormatList () |
void | printf (const char *fmt) |
void | printfln (const char *fmt) |
void | vformat (std::ostream &out, const char *fmt, FormatListRef list) |
Format list of arguments to the stream according to the given format string. More... | |
using tinyformat::FormatListRef = typedef const FormatList & |
Reference to type-opaque format list for passing to vformat()
Definition at line 956 of file tinyformat.h.
|
inline |
Definition at line 1094 of file tinyformat.h.
References format().
|
inline |
Definition at line 1089 of file tinyformat.h.
References makeFormatList(), and vformat().
Referenced by souffle::ParserDriver::addDeprecatedTag(), souffle::ParserDriver::addTag(), souffle::ast::transform::SemanticCheckerImpl::checkBranchInits(), format(), souffle::isA(), souffle::ast::analysis::AlgebraicDataType::Branch::print(), printf(), and printfln().
|
inline |
Format a value into a stream, delegating to operator<< by default.
Users may override this for their own types. When this function is called, the stream flags will have been modified according to the format string. The format specification is provided in the range [fmtBegin, fmtEnd). For truncating conversions, ntrunc is set to the desired maximum number of characters, for example "%.7s" calls formatValue with ntrunc = 7.
By default, formatValue() uses the usual stream insertion operator operator<< to format the type T, with special cases for the c and p conversions.
Definition at line 328 of file tinyformat.h.
References tinyformat::detail::formatTruncated().
Referenced by tinyformat::detail::FormatArg::formatImpl().
|
inline |
Definition at line 1028 of file tinyformat.h.
Referenced by format().
|
inline |
Definition at line 1101 of file tinyformat.h.
References format().
Referenced by configuration(), graphBySize(), graphByTime(), help(), id(), iterRel(), iterRul(), memoryUsage(), rel(), relRul(), rul(), souffle::profile::Tui::runCommand(), top(), usage(), verAtoms(), verGraph(), and verRul().
|
inline |
Definition at line 1106 of file tinyformat.h.
References format().
|
inline |
Format list of arguments to the stream according to the given format string.
The name vformat() is chosen for the semantic similarity to vprintf(): the list of format arguments is held in a single function argument.
Definition at line 1047 of file tinyformat.h.
References tinyformat::detail::formatImpl(), tinyformat::FormatList::m_args, and tinyformat::FormatList::m_N.
Referenced by format().