summaryrefslogtreecommitdiffhomepage
path: root/libcommon/stringutil.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-05-11 12:24:04 +0200
committerRoland Reichwein <mail@reichwein.it>2020-05-11 12:24:04 +0200
commit5bc1f7bed536e0e936fd13fad45c49392b0bfff4 (patch)
tree67d4b63e38c6799d63ae4f78168d6838c4e13906 /libcommon/stringutil.h
parent2715d8e5910304d89a5a1666726aac3b777ad16c (diff)
Separated out routines to libcommon
Diffstat (limited to 'libcommon/stringutil.h')
-rw-r--r--libcommon/stringutil.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcommon/stringutil.h b/libcommon/stringutil.h
new file mode 100644
index 0000000..5110e2e
--- /dev/null
+++ b/libcommon/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);