RAD Studio VCL Reference
|
Replaces all occurrences of a substring within a string, using case-sensitive search.
function AnsiReplaceStr(const AText: AnsiString; const AFromText: AnsiString; const AToText: AnsiString): AnsiString; overload;
AnsiString AnsiReplaceStr(const AnsiString AText, const AnsiString AFromText, const AnsiString AToText);
Use AnsiReplaceStr to replace all occurrences of the substring AFromText with the string AToText, within the string AText. AnsiReplaceStr returns the string obtained after replacement.
Use AnsiReplaceText to do a case-insensitive replacement.
The StringReplace function is a more general replacement routine, giving case-sensitivity options, as well as the option to decide whether to replace all occurrences or the first occurrence of the substring in the string.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|