RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.ReplaceText Function

Replace all occurrences of a substring.

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

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

This function is the same as AnsiReplaceText

Use ReplaceStr 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!