From 737263bc5a123bee889530a2623dfbeb90ee30e9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 5 May 2020 19:12:07 +0200 Subject: Fallback to backup image source if image fails to load for manganelo --- include/StringUtils.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') 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; 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 -- cgit v1.2.3