Rose::StringUtility::copyEdit¶
All overloads of Rose::StringUtility::copyEdit
Replace all occurrences of a string with another string.
Synopsis¶
Declared in <src/Rose/StringUtility/FileUtility.h>
[[visibility("default")]]
std::string
copyEdit(
std::string const& inputString,
std::string const& oldToken,
std::string const& newToken); Description¶
Finds all occurrences of the oldToken string in inputString and replaces them each with newToken, returning the result.
@{
Return Value¶
Updated string or line list.
Parameters¶
| Name | Description |
|---|---|
| inputString | Input string or line list. |
| oldToken | Token to replace. |
| newToken | Replacement value. |
Created with MrDocs