ReplaceStr 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 sensitive.
function ReplaceStr(const AText: string; const AFromText: string; const AToText: string): string;
AnsiString ReplaceStr(const AnsiString AText, const AnsiString AFromText, const AnsiString AToText);
StrUtils
For a case insensitive replacement, use the ReplaceText routine.
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|