[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'LazFileUtils' (#lazutils)

MergeCmdLineParams

Generates a string with the specified list of parameters.

Declaration

Source position: lazfileutils.pas line 180

function MergeCmdLineParams(

  ParamList: TStrings

):string;

Arguments

ParamList

  

TStrings instance with the parameter values handled in the function.

Function result

String representation for the list of parameters.

Description

MergeCmdLineParams is a String function used to convert parameter values in the ParamList argument to a normalized string using the quoting needed for the parameter values.

MergeCmdLineParams iterates over the string values in ParamList, and calls StrToCmdLineParam to normalize the whitespace and quoting in each value. The sanitized parameters values are concatenated together, using the Space (' ') as the delimiter between the parameter values, and used as the return value for the function.

No actions are performed in the routine when ParamList is unassigned (Nil) or its Count property is 0 (zero).

See also

StrToCmdLineParam

  

Ensures that whitespace and quoting in the specified string are valid for use in command line parameters.


Version 3.2 Generated 2024-02-25 Home