diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-12 22:20:33 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-12 22:20:33 +0200 |
commit | 4732dc63657f4c6fc342f7674f7dc7c666b293dc (patch) | |
tree | da91a5dbbd62982284435d252dd89ac963952ee9 /plugins/webbox/stringutil.h | |
parent | 3f778eecc705990598f1033e6245522f42e2fcb5 (diff) |
webbox (WIP)
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); |