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

SplitCmdLineParams

Splits command line parameters separated by whitespace characters into the specified TStrings instance.

Declaration

Source position: lazfileutils.pas line 177

procedure SplitCmdLineParams(

  const Params: string;

  ParamList: TStrings;

  ReadBackslash: Boolean = False

);

Arguments

Params

  

Whitespace-delimited list of parameters handled in the routine.

ParamList

  

List where the separates parameters are stored.

ReadBackslash

  

Indicates if backslash characters are consumed and removed in the routine.

Description

Parameters are separated by one or more whitespace characters (#9,#10,#13,#32). Quoted values are parsed as a single parameter. If ReadBackslash contains True, then \" is replaced with " and not treated as a quoted value. #0 is always treated as the end of the Parameters value.


Version 3.2 Generated 2024-02-25 Home