Show: Delphi C++
Display Preferences

System.AnsiStrings.AnsiReplaceText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiReplaceText(const AText, AFromText, AToText: AnsiString): AnsiString;

C++

extern DELPHI_PACKAGE System::AnsiString __fastcall AnsiReplaceText(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.

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.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance