TDictionary.Substitute function
Substitutes macros in a string using the dictionary
Declaration
function Substitute(const Source: string;
const Macros: Array of string = string): string
; virtualArguments
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.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
