Skip to content

Rose::StringUtility::replaceAllCopy

Replace every occurrence of a nonempty pattern in a string.

Synopsis

Declared in <src/Rose/StringUtility/Replace.h>

[[visibility("default")]]
std::string
replaceAllCopy(
    std::string const& input,
    std::string const& search,
    std::string const& replacedWith);

Return Value

Updated string.

Parameters

Name Description
input Input string.
search Substring to replace.
replacedWith Replacement text.

Created with MrDocs