Skip to content

TReplaceFunction

Function type for dynamic string replacement callbacks

Declaration

Source position: fpmkunit.pp line 575

type
  TReplaceFunction = function(const AName: string; const Args: string)
                             : string of object;

Arguments

Name Description
AName Name of replacement function
Args Array of string arguments passed to the replacement function

Function result

Replacement string returned by the function

Description

TReplaceFunction is a function pointer type for implementing dynamic string replacement callbacks.

Functions of this type are used in string substitution systems to provide custom replacement logic for variable expansion.

The function receives a name and arguments array, returning the replacement string value.