diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-11-12 19:05:13 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-11-12 19:05:13 +0100 |
commit | 01f23292bf2451a0c7b9ada88c6314dcb09509b1 (patch) | |
tree | 2423c0abecd39f314f3475b2288d68a702fd6344 /include/StringUtils.hpp | |
parent | 224a5f3b2ed2141a94940fe73fc8ccb4b2f8d962 (diff) |
Matrix: add option to silence invites without declining them or hiding them (ignore)
Diffstat (limited to 'include/StringUtils.hpp')
-rw-r--r-- | include/StringUtils.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/StringUtils.hpp b/include/StringUtils.hpp index fb16d7a..2a01f54 100644 --- a/include/StringUtils.hpp +++ b/include/StringUtils.hpp @@ -7,8 +7,8 @@ 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, const std::string &delimiter, StringSplitCallback callback_func); - void string_split(const std::string &str, char delimiter, StringSplitCallback callback_func); + void string_split(const std::string &str, const std::string &delimiter, StringSplitCallback callback_func, bool include_empty = true); + void string_split(const std::string &str, char delimiter, StringSplitCallback callback_func, bool include_empty = true); // Returns the number of replaced substrings size_t string_replace_all(std::string &str, char old_char, char new_char); // Returns the number of replaced substrings |