RAD Studio VCL Reference
StrUtils.ReplaceText Function

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.

function ReplaceText(const AText: string; const AFromText: string; const AToText: string): string;
AnsiString ReplaceText(const AnsiString AText, const AnsiString AFromText, const AnsiString AToText);

For a case sensitive replacement, use the ReplaceStr routine. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!