Sign in Join
FPDoc Onlineexperiment

TDictionary class

In unit fpMkUnit

String substitution dictionary for variables and functions

Declaration

pascal
TDictionary = class(TComponent)

Inheritance

  1. TDictionary
  2. TComponent
  3. TPersistent
  4. TObject

Descends from it: TPackageDictionary

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.

Methods

CreatepublicCreates a new string substitution dictionary
DestroypublicDestroys the dictionary and releases resources
AddVariablepublicAdds a variable name-value pair to the dictionary
AddFunctionpublicAdds a function replacement callback to the dictionary
RemoveItempublicRemoves a variable or function from the dictionary
GetValuepublicRetrieves substituted value for dictionary entry
ReplaceStringspublicPerforms string substitution using dictionary variables
SubstitutepublicSubstitutes macros in a string using the dictionary

Inherited

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.