diff options
author | Roland Reichwein <mail@reichwein.it> | 2020-04-04 20:09:04 +0200 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2020-04-04 20:09:04 +0200 |
commit | cbfc28a946ded64e9402e1e6d32511150339ec72 (patch) | |
tree | bec1e30fdd97e99e88a7b168f3cad7278b59157e /stringutil.h | |
parent | 1fcaed7a34cce8e55bb071d503bb583f715e7d37 (diff) |
Prepare DocRoot(), WIP
Diffstat (limited to 'stringutil.h')
-rw-r--r-- | stringutil.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stringutil.h b/stringutil.h new file mode 100644 index 0000000..5110e2e --- /dev/null +++ b/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); |