15 const char* special =
nullptr);
20 const std::vector<T>& s,
21 const char* special =
nullptr)
31 const char* special =
nullptr);
34 std::ostream&
str_escape(std::ostream& os,
char c,
35 const char* special =
nullptr);
40 const char* special =
nullptr)
48 template <
typename... Args>
53 using swallow =
int[];
56 (
str_escape(o, std::forward<Args>(args),
"\""), 0)...
std::ostream & str_escape(std::ostream &os, const std::string &str, const char *special=nullptr)
Output a string, escaping special characters.
std::ostringstream os
The output stream: the corresponding C++ snippet to compile.
std::string str_quote(Args &&... args)
Convert to a string, in quotes.