Replace all subFrom with subTo within src.
00209 {
00210 String::size_type subFromSize = subFrom.size();
00211 String::size_type subToSize = subTo.size();
00212 String::size_type start = src.find(subFrom, startPos);
00213 while (start != String::npos)
00214 {
00215 src = src.replace(start, subFromSize, subTo);
00216 start = src.find(subFrom, recursive ? startPos : start + subToSize);
00217 }
00218 return src;
00219 }