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");
But I would like to use the Standard C++ libraries.
How do I implement the following (Python pseudocode) in C++?
foo_value = int(argv[len('--foo='):])
(For example, if argv is --foo=98, then foo_value is 98.)
Update: I'm hesitant to look into Boost, since …