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

TDictionary

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

String substitution dictionary for variables and functions

Declaration

Source position: fpmkunit.pp line 573

type TDictionary = class(TComponent)

public

  constructor Create(); override;

  

Creates a new string substitution dictionary

  destructor Destroy; override;

  

Destroys the dictionary and releases resources

  procedure AddVariable();

  

Adds a variable name-value pair to the dictionary

  procedure AddFunction();

  

Adds a function replacement callback to the dictionary

  procedure RemoveItem();

  

Removes a variable or function from the dictionary

  function GetValue();

  

Retrieves substituted value for dictionary entry

  function ReplaceStrings(); virtual;

  

Performs string substitution using dictionary variables

  function Substitute(); virtual;

  

Substitutes macros in a string using the dictionary

end;

Inheritance

TDictionary

  

String substitution dictionary for variables and functions

|

TComponent

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

Description

TDictionary provides a string substitution system for variable and function expansion.

This class manages both static variable assignments and dynamic function callbacks for resolving configuration values.

The dictionary is used extensively throughout the build system to resolve paths, variables, and configuration parameters.


Documentation generated on: Dec 15 2025