RAD Studio VCL Reference
|
Replaces all occurences of a specified string with another.
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;
__fastcall TStringBuilder Replace(const Char OldChar, const Char NewChar); __fastcall TStringBuilder Replace(const AnsiString OldValue, const AnsiString NewValue); __fastcall TStringBuilder Replace(const Char OldChar, const Char NewChar, int StartIndex, int Count); __fastcall TStringBuilder Replace(const AnsiString OldValue, const AnsiString NewValue, int StartIndex, int Count);
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.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|