
6 Mar
2012
6 Mar
'12
5:07 p.m.
Is it possible search and replace or delete a character in a piece of string delimited by 2 positions found by the method find() (find() return position (size_t) and not an iterator) using some function of boost?
I'm not sure what you mean by "delimited by 2 positions" (could you give an example?), but note that you can easily (and efficiently) convert the result of find() to an iterator like this: string::const_iterator it = s.begin() + s.find("something"); Regards, Nate