summaryrefslogtreecommitdiffhomepage
path: root/plugins/weblog/stringutil.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-28 19:00:17 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-28 19:00:17 +0200
commit095c82585f2e4a9963c33c0988d453b0278bc0c7 (patch)
treeaf345d356a84278f4df9cf7b999871a9bfba4bd8 /plugins/weblog/stringutil.h
parent37da545bc5f1bd5c3d810699cc685c36cdcd27fa (diff)
Paged list
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);