Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TReplaceFunction

Function type for dynamic string replacement callbacks

Declaration

Source position: fpmkunit.pp line 571

type TReplaceFunction = function(

  const AName: string;

  const Args: string

):string of object;

Arguments

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.


Documentation generated on: Dec 15 2025