summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/stringutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/weblog/stringutil.h')
-rw-r--r--plugins/weblog/stringutil.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/weblog/stringutil.h b/plugins/weblog/stringutil.h
new file mode 100644
index 0000000..5110e2e
--- /dev/null
+++ b/plugins/weblog/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);