22 static std::string sprintf(
const char* fmt, ...);
23 static std::string toHex(
const std::vector<uint8_t>& data);
24 static std::string toHex(
const uint8_t* data,
int len);
25 static std::string toLower(
const std::string& s);
27 static void sleepMS(
int ms);
36 static std::string
join(
const T& values,
const char* fmt,
const char* delim =
", ")
38 std::string fmtDelim = sprintf(
"%%s%s", fmt);
40 for (
typename T::const_iterator i = values.begin(); i != values.end(); i++)
42 s += sprintf(fmt, *i);
44 s += sprintf(fmtDelim.c_str(), delim, *i);
Internal class providing static utility functions for strings and whatnot.
Definition: Util.h:20
static std::string join(const T &values, const char *fmt, const char *delim=", ")
Joins an iterable containter to a delimited string.
Definition: Util.h:36
static std::string timestamp()
includes milliseconds on Windows
Definition: Util.cpp:54
Namespace encapsulating the internal implementation of WasatchVCPP; customers would not normally acce...
Definition: Driver.h:26