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

TDictionary.Substitute

Substitutes macros in a string using the dictionary

Declaration

Source position: fpmkunit.pp line 586

public function TDictionary.Substitute(

  const Source: string;

  const Macros: array of string

):string; virtual;

Arguments

Source

  

Source string containing macro patterns

Macros

  

Additional macros for substitution

Function result

String with all macro substitutions performed

Description

Substitute performs macro expansion and variable substitution on the input string using dictionary entries.

This method processes macro syntax patterns and replaces them with corresponding values from variables and function callbacks.

The substitution supports both simple variable expansion and complex function calls with parameter passing.


Documentation generated on: Dec 15 2025