Esempio n. 1
0
bool WString::ReplaceAll(const WString &findWhat,const WString &replaceWith)
{
  WString process = *this;
  WString result;
  int pos;
  bool processed = false;
  while ((pos = process.Find(findWhat)) != -1)
  {
	result = result+process.Left(pos)+replaceWith;
	process = process.Right(pos+findWhat.GetLength());
	processed = true;
  }
  *this = result+process;
  return processed;
}