Related questions
Check if a string contains a string in C++
I have a variable of type std::string. I want to check if it contains a certain std::string. How would I do that?
Is there a function that returns true if the string is found, and false if it …
Replace part of a string with another string
Is it possible in C++ to replace part of a string with another string?
Basically, I would like to do this:
QString string("hello $name");
string.replace("$name", "Somename");
But I would like to use the Standard C++ libraries.