/
Kirilla39
/
minefetch
Обзор
Документация
Войти
/
Kirilla39
/
minefetch
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/utils.cpp
13 строк
351 B
Kirilla39
Added output
08 ноя 2025, 00:45
08 ноя 2025, 00:45
f785eca
Код
Авторство
О чём код?
#include <algorithm> #include <cstddef> #include <minefetch/utils.hpp> #include <string> std::string Utils::replaceAll(std::string &str, std::string substr, std::string replacement){ std::size_t pos = str.find(substr); while(pos != std::string::npos){ str.replace(pos,substr.length(),replacement); pos = str.find(substr); } return str; }