29 #include <boost/algorithm/string.hpp> 36 #undef ELECTRONEUM_DEFAULT_LOG_CATEGORY 37 #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "notify" 51 boost::split(args, spec, boost::is_any_of(
" \t"), boost::token_compress_on);
53 if (strchr(spec,
'\'') || strchr(spec,
'\"') || strchr(spec,
'\\'))
54 MWARNING(
"A notification spec contains a quote or backslash: note that these are handled verbatim, which may not be the intent");
59 static void replace(std::vector<std::string> &v,
const char *tag,
const char *s)
62 boost::replace_all(str, tag, s);
67 std::vector<std::string> margs = args;
69 replace(margs, tag, s);
73 while ((tag = va_arg(ap,
const char*)))
75 s = va_arg(ap,
const char*);
76 replace(margs, tag, s);
#define CHECK_AND_ASSERT_THROW_MES(expr, message)
bool is_file_exist(const std::string &path)