PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ replace_character()

std::string pism::replace_character ( const std::string &  input,
char  from,
char  to 
)

Replace all occurrences of the character from with to and return the resulting string.

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().