System.AnsiStrings.ReplaceText
Delphi
function ReplaceText(const AText, AFromText, AToText: AnsiString): AnsiString;
C++
extern DELPHI_PACKAGE System::AnsiString __fastcall ReplaceText(const System::AnsiString AText, const System::AnsiString AFromText, const System::AnsiString AToText)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Replace all occurrences of a substring.
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.