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

TDictionary.ReplaceStrings

Performs string substitution using dictionary variables

Declaration

Source position: fpmkunit.pp line 585

public function TDictionary.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.


Documentation generated on: Dec 15 2025