TDictionary.AddFunction¶
Adds a function replacement callback to the dictionary
Declaration¶
Source position: fpmkunit.pp line 585
public
procedure TDictionary.AddFunction(const AName: string;
FReplacement: TReplaceFunction);
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.