Function replaceAll

Function Documentation

void replaceAll(std::string &str, const std::string &from, const std::string &to)

function that replaces all the occurences of a string with another string

Parameters:
  • str – string to be modified passed by reference

  • from – original string to be replaced

  • to – new string to replace the original string