xtd 0.2.0
Loading...
Searching...
No Matches

◆ replace() [2/2]

ustring xtd::ustring::replace ( const ustring old_string,
const ustring new_string 
) const
noexcept

Replaces all occurrences of a specified string in this string with another specified string.

Parameters
old_stringA string to be replaced.
new_stringA string to replace all occurrences of old_string.
Returns
A new string equivalent to the specified string but with all instances of old_string replaced with new_string.
Remarks
If new_string is empty, all occurrences of old_string are removed