Remote ISO: Allow sharing a folder of ISOs instead of Recent.

This commit is contained in:
Henrik Rydgård committed 2023-12-29 12:55:08 +01:00
1 parent a416d94e38
commit 71f1e29513
7 files changed
+83 -16

No files matched your search

+4 -1
View File
@@ -356,12 +356,15 @@ void GetQuotedStrings(const std::string& str, std::vector<std::string> &output)
}
}
std::string ReplaceAll(std::string result, const std::string& src, const std::string& dest) {
std::string ReplaceAll(std::string_view input, std::string_view src, std::string_view dest) {
size_t pos = 0;
std::string result(input);
if (src == dest)
return result;
// TODO: Don't mutate the input, just append stuff to the output instead.
while (true) {
pos = result.find(src, pos);
if (pos == result.npos)