#include <fmt.hh>
Public Member Functions | |
HintFmt (const std::string &literal) | |
template<typename... Args> | |
HintFmt (const std::string &format, const Args &... args) | |
HintFmt (const HintFmt &hf) | |
template<typename... Args> | |
HintFmt (boost::format &&fmt, const Args &... args) | |
template<class T> | |
HintFmt & | operator% (const T &value) |
template<class T> | |
HintFmt & | operator% (const Uncolored< T > &value) |
HintFmt & | operator= (HintFmt const &rhs)=default |
std::string | str () const |
template<> | |
HintFmt & | operator% (const ValuePrinter &value) |
template<> | |
HintFmt & | operator% (const ValuePrinter &value) |
Static Public Member Functions | |
static HintFmt | fromFormatString (const std::string &format) |
A wrapper around boost::format
which colors interpolated arguments in magenta by default.
|
inline |
Format the given string literally, without interpolating format placeholders.
|
inline |
Interpolate the given arguments into the format string.
HintFmt & nix::HintFmt::operator% | ( | const ValuePrinter & | value | ) |
ValuePrinter
does its own ANSI formatting, so we don't color it magenta.