diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-05-05 19:12:07 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-05-05 19:12:07 +0200 |
commit | 737263bc5a123bee889530a2623dfbeb90ee30e9 (patch) | |
tree | f1ec22cc26c7dfe86353e21e0443e0a7a74a248e /include | |
parent | a255719fa63aa52f56c4c9c7f04fb43b89b6b64c (diff) |
Fallback to backup image source if image fails to load for manganelo
Diffstat (limited to 'include')
-rw-r--r-- | include/StringUtils.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/StringUtils.hpp b/include/StringUtils.hpp index dd4b99b..b2efb1d 100644 --- a/include/StringUtils.hpp +++ b/include/StringUtils.hpp @@ -8,7 +8,8 @@ namespace QuickMedia { using StringSplitCallback = std::function<bool(const char *str, size_t size)>; void string_split(const std::string &str, char delimiter, StringSplitCallback callback_func); - void string_replace_all(std::string &str, const std::string &old_str, const std::string &new_str); + // Returns the number of replaced substrings + size_t string_replace_all(std::string &str, const std::string &old_str, const std::string &new_str); std::string strip(const std::string &str); bool string_ends_with(const std::string &str, const std::string &ends_with_str); }
\ No newline at end of file |