Skip to content

TDictionary.ReplaceStrings

Performs string substitution using dictionary variables

Declaration

Source position: fpmkunit.pp line 589

public 
function TDictionary.ReplaceStrings(const ASource: string; 
                                   const MaxDepth: Integer=10) : string
                                   ;  virtual;

Description

ReplaceStrings processes a source string and replaces all variable and function references with their resolved values.

The method supports nested substitutions up to the specified maximum depth to prevent infinite recursion.

Variable references use $(name) syntax, and function calls use $(name:arg1:arg2) format for parameter passing.