¶std::string replace_all(
const std::string_view& input,
const std::string_view& pattern,
const std::string_view& replacement)
std::string replace_all(
const std::string_view& input,
const std::string_view& pattern,
const std::string_view& replacement)
Description
Replaces all occurrences of pattern
in in
with with
. If pattern
is empty, returns the input string unchanged.
Parameters
- const std::string_view& input
- const std::string_view& pattern
- const std::string_view& replacement