RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.AnsiReplaceText Function

Replace all occurrences of a substring.

Pascal
function AnsiReplaceText(const AText: AnsiString; const AFromText: AnsiString; const AToText: AnsiString): AnsiString; overload;
C++
AnsiString AnsiReplaceText(const AnsiString AText, const AnsiString AFromText, const AnsiString AToText);

AnsiReplaceText replaces all occurrences of a substring with another substring without case-sensitivity. This function supports multi-byte character strings (MBCS) AnsiStrings

Use AnsiReplaceStr to make this replacement with case-sensitivity.

Note: Recursion substring replacement is not supported.
 

 

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