Mercurial > hg > forks > gldragon
comparison dmutil.h @ 47:9909014498f0
Add helper functions dmError() and dmMsg() and use them.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 05 Dec 2019 23:52:45 +0200 |
parents | 03b86b9c2f29 |
children | 03aa729a9e90 |
comparison
equal
deleted
inserted
replaced
46:0c75c5f5c6b6 | 47:9909014498f0 |
---|---|
11 | 11 |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 #include <cstdio> | 14 #include <cstdio> |
15 #include <iostream> | 15 #include <iostream> |
16 #include <cstdarg> | |
16 | 17 |
17 | 18 |
18 #define DMUTIL_WHITESPACE "\t\n\v\f\r " | 19 #define DMUTIL_WHITESPACE "\t\n\v\f\r " |
20 | |
21 | |
22 void dmMsg_V(const char *fmt, va_list ap); | |
23 void dmMsg(const char *fmt, ...); | |
24 void dmError_V(const char *fmt, va_list ap); | |
25 void dmError(const char *fmt, ...); | |
19 | 26 |
20 | 27 |
21 std::string dmStrLTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE); | 28 std::string dmStrLTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE); |
22 std::string dmStrRTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE); | 29 std::string dmStrRTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE); |
23 std::string dmStrTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE); | 30 std::string dmStrTrim(const std::string& str, const std::string& delim = DMUTIL_WHITESPACE); |