PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ 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 110 of file pism_utilities.cc.

Referenced by pism::IceModel::process_signals(), pism::IceModel::write_snapshot(), and pism::IceModel::write_spatial_diagnostics().