summaryrefslogtreecommitdiff
path: root/src/utils/split.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/split.hpp')
-rw-r--r--src/utils/split.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/utils/split.hpp b/src/utils/split.hpp
new file mode 100644
index 0000000..3755ef8
--- /dev/null
+++ b/src/utils/split.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+
+#include <string>
+#include <vector>
+
+namespace utils
+{
+ std::vector<std::string> split(const std::string &s, const char delim, const bool allow_empty=true);
+}
+
+