System::String::Replace method

String::Replace(char_t, char_t) const method

Replaces all occurrences of character in the string.

String System::String::Replace(char_t oldValue, char_t newValue) const
ParameterTypeDescription
oldValuechar_tCharacter to replace.
newValuechar_treplacement value.

ReturnValue

String with replacement done.

See Also

String::Replace(const String&, const String&) const method

Replaces all occurrences of lookup in this string.

String System::String::Replace(const String &oldValue, const String &newValue) const
ParameterTypeDescription
oldValueconst String&String to replace.
newValueconst String&replacement string.

ReturnValue

String with replacement done.

See Also