Sign in Join
FPDoc Onlineexperiment

ReplaceText function

In unit StrUtils

Replace strings case-insensitively.

Declaration

pascal
function ReplaceText(const AText: string; const AFromText: string; 
 const AToText: string): string

Description

ReplaceText is a utility function that scans AText and replaces all occurrences of AFromText (case insensitive) with AToTextand returns the resulting string. It simply calls StringReplace with the appropriate options.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.