Function cif::replace_all

Function Documentation

void cif::replace_all(std::string &s, std::string_view what, std::string_view with = {})

Replace all occurrences of what in string s with the string with.

The string with may be empty in which case each occurrence of what is simply deleted.