diff options
Diffstat (limited to 'plugins/webbox/stringutil.h')
-rw-r--r-- | plugins/webbox/stringutil.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/webbox/stringutil.h b/plugins/webbox/stringutil.h new file mode 100644 index 0000000..5110e2e --- /dev/null +++ b/plugins/webbox/stringutil.h @@ -0,0 +1,10 @@ +#pragma once + +#include <string> +#include <vector> + +std::string strfmt(const char* fmt, ...); + +std::vector<std::string> split(std::string value, const std::string separators = "\r\n "); +std::string join(std::vector<std::string> vs, std::string separator = "\n"); +bool startsWithAnyOfLower(const std::string &s, const std::vector<std::string> &list); |