System.SysUtils.TStringBuilder.Replace

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Replace(const OldChar: Char; const NewChar: Char): TStringBuilder; overload;
function Replace(const OldValue: string; const NewValue: string): TStringBuilder; overload;
function Replace(const OldChar: Char; const NewChar: Char; StartIndex: Integer; Count: Integer): TStringBuilder; overload;
function Replace(const OldValue: string; const NewValue: string; StartIndex: Integer; Count: Integer): TStringBuilder; overload;

C++

TStringBuilder* __fastcall Replace(const System::WideChar OldChar, const System::WideChar NewChar)/* overload */;
TStringBuilder* __fastcall Replace(const System::UnicodeString OldValue, const System::UnicodeString NewValue)/* overload */;
TStringBuilder* __fastcall Replace(const System::WideChar OldChar, const System::WideChar NewChar, int StartIndex, int Count)/* overload */;
TStringBuilder* __fastcall Replace(const System::UnicodeString OldValue, const System::UnicodeString NewValue, int StartIndex, int Count)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

Description

Replaces all occurences of a specified string with another.

Use Replace to replace all occurences of a specified string with another. Replace can replace a single OldChar with a NewChar everywhere, an OldValue string with a NewValue string, an OldChar with a NewChar everywhere in a specified substring, or an OldValue string with a NewValue string everywhere in a specified substring.

See Also