From: http://www.martinbroadhurst.com/replacing-all-occurrences-of-a-character-in-a-stdstring.html This can be done using the standard library or Boost. The advantage of using Boost is that you get Boost ranges, which mean that you don’t need to spec…