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

◆ replace() [1/2]

ustring xtd::ustring::replace ( value_type  old_char,
value_type  new_char 
) const
noexcept

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

Parameters
old_charA char_t to be replaced.
new_charA char_t to replace all occurrences of old_char.
Returns
A new string equivalent to the specified string but with all instances of old_char replaced with new_char.
Examples
file_info_replace.cpp.