Replace()
Contents
[
Hide
]StringBuilder::Replace(const String&, const String&) method
Replaces substring through the builder.
StringBuilder * System::Text::StringBuilder::Replace(const String &oldString, const String &newString)
Arguments
Parameter | Type | Description |
---|---|---|
oldString | const String& | String to replace. |
newString | const String& | Replacement string. |
Return Value
This pointer.
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)
Arguments
Parameter | Type | Description |
---|---|---|
oldString | const String& | String to replace. |
newString | const String& | Replacement string. |
position | int | Builder’s replacement range beginning position. |
count | int | Builder’s replacement range length. |
Return Value
This pointer.
StringBuilder::Replace(char_t, char_t) method
Replaces character through the builder.
StringBuilder * System::Text::StringBuilder::Replace(char_t oldChar, char_t newChar)
Arguments
Parameter | Type | Description |
---|---|---|
oldChar | char_t | Character to replace. |
newChar | char_t | Replacement character. |
Return Value
This pointer.
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)
Arguments
Parameter | Type | Description |
---|---|---|
oldChar | char_t | Character to replace. |
newChar | char_t | Replacement character. |
startIndex | int | Builder’s replacement range beginning position. |
count | int | Builder’s replacement range length. |
Return Value
This pointer.
See Also
- Class StringBuilder
- Class String
- Namespace System::Text
- Library Aspose.Slides