diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-10-15 19:57:24 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2019-10-15 19:57:27 +0200 |
commit | 56acc142c6ef9a65147acdea6737acbfaeb7eca4 (patch) | |
tree | 1b9a955bec7ed74c16e3cf663b9acca5aef8c19e /include/StringUtils.hpp | |
parent | 2ba21aa9aa91b975fe0c8be630dde05d0d9b5366 (diff) |
Add tor support
Diffstat (limited to 'include/StringUtils.hpp')
-rw-r--r-- | include/StringUtils.hpp | 11 |
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 |