有没有办法用另一个字符串替换所有出现的子字符串std::string?
std::string
例如:
void SomeFunction(std::string& str) { str = str.replace("hello", "world"); //< I'm looking for something nice like this }
c++ replace std
c++ ×1
replace ×1
std ×1