System.StrUtils.ReplaceText
Delphi
function ReplaceText(const AText, AFromText, AToText: string): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall ReplaceText(const System::UnicodeString AText, const System::UnicodeString AFromText, const System::UnicodeString AToText)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
ReplaceText replaces all instances of string AFromText to string AToText in the source string AText and returns this value as the result. The replacement is case insensitive.
For a case sensitive replacement, use the ReplaceStr routine.