PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

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