Replace all occurrences of the character from with to and return the resulting string.
from
to
We could use std::regex_replace(), but this will do for now.
Definition at line 115 of file pism_utilities.cc.
Referenced by pism::IceModel::process_signals(), pism::IceModel::write_extras(), and pism::IceModel::write_snapshot().