aboutsummaryrefslogtreecommitdiff
path: root/include/StringUtils.hpp
blob: 72210c93d55c9f5597a2bd3afe82484f10472210 (plain)
1
2
3
4
5
6
7
8
9
10
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);
}