SyntaxFix
Write A Post
Hire A Developer
Questions
std::string has a replace method, is that what you are looking for?
std::string
replace
You could try:
s.replace(s.find("$name"), sizeof("$name") - 1, "Somename");
I haven't tried myself, just read the documentation on find() and replace().
find()
replace()