System.StrUtils.AnsiReplaceText
Delphi
function AnsiReplaceText(const AText, AFromText, AToText: string): string;
C++
extern DELPHI_PACKAGE System::UnicodeString __fastcall AnsiReplaceText(const System::UnicodeString AText, const System::UnicodeString AFromText, const System::UnicodeString AToText)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
Replaces all case-insensitive matches of a substring with another string.
Call AnsiReplaceText to scan the string specified by AText and replace all occurrences of the string specified by AFromText with the string specified by AToText. Occurrences of AFromText are identified by a case-insensitive comparison that uses the current system locale. The identification of substrings is not recursive: if the substitution of AToText results in a new match for AFromText, that match is not replaced.