TDictionary.AddFunction procedure
Adds a function replacement callback to the dictionary
Declaration
procedure AddFunction(const AName: string;
FReplacement: TReplaceFunction)Arguments
AName | Function name for substitution |
FReplacement | Function callback for dynamic value substitution |
Description
Adds a function callback with the specified name that provides dynamic value generation during string substitution. Functions can accept arguments and return computed values based on runtime conditions.
This enables advanced templating where values are calculated dynamically based on build parameters, system configuration, or package state.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
