System::Text::StringBuilder::Replace method

StringBuilder::Replace(char_t, char_t) method

Replaces character through the builder.

StringBuilder * System::Text::StringBuilder::Replace(char_t oldChar, char_t newChar)
ParameterTypeDescription
oldCharchar_tCharacter to replace.
newCharchar_tReplacement character.

ReturnValue

This pointer.

See Also

StringBuilder::Replace(char_t, char_t, int, int) method

Replaces character through the builder’s range.

StringBuilder * System::Text::StringBuilder::Replace(char_t oldChar, char_t newChar, int startIndex, int count)
ParameterTypeDescription
oldCharchar_tCharacter to replace.
newCharchar_tReplacement character.
startIndexintBuilder’s replacement range beginning position.
countintBuilder’s replacement range length.

ReturnValue

This pointer.

See Also

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

Replaces substring through the builder.

StringBuilder * System::Text::StringBuilder::Replace(const String &oldString, const String &newString)
ParameterTypeDescription
oldStringconst String&String to replace.
newStringconst String&Replacement string.

ReturnValue

This pointer.

See Also

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

Replaces substring through the builder’s range.

StringBuilder * System::Text::StringBuilder::Replace(const String &oldString, const String &newString, int position, int count)
ParameterTypeDescription
oldStringconst String&String to replace.
newStringconst String&Replacement string.
positionintBuilder’s replacement range beginning position.
countintBuilder’s replacement range length.

ReturnValue

This pointer.

See Also