Sign in Join
FPDoc Onlineexperiment

TDictionary.ReplaceStrings function

Member of TDictionarypublicIn unit fpMkUnit

Performs string substitution using dictionary variables

Declaration

pascal
function ReplaceStrings(const ASource: string; 
 const MaxDepth: Integer=10): string; virtual

Arguments

ASource

Source string containing substitution patterns

MaxDepth

Maximum recursion depth for nested substitutions

Function result

String with all substitutions applied

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.

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