Replace()

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

Arguments

ParameterTypeDescription
oldValuechar_tCharacter to replace.
newValuechar_treplacement value.

Return Value

String with replacement done.

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

Arguments

ParameterTypeDescription
oldValueconst String&String to replace.
newValueconst String&replacement string.

Return Value

String with replacement done.

See Also