aboutsummaryrefslogtreecommitdiff
path: root/include/StringUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/StringUtils.hpp')
-rw-r--r--include/StringUtils.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/StringUtils.hpp b/include/StringUtils.hpp
new file mode 100644
index 0000000..72210c9
--- /dev/null
+++ b/include/StringUtils.hpp
@@ -0,0 +1,11 @@
+#pragma once
+
+#include <string>
+#include <functional>
+
+namespace QuickMedia {
+ // Return false to stop iterating
+ using StringSplitCallback = std::function<bool(const char *str, size_t size)>;
+
+ void string_split(const std::string &str, char delimiter, StringSplitCallback callback_func);
+} \ No newline at end of file