TAdvancedConsoleInputParser

TAdvancedConsoleInputParser is class derived from TSimpleConsoleInputParser which provides advanced parsing functionality. It interprets blanks (spaces) as a parameter separator only if they are not within quotation marks (" or '); "echo 'foo bar'" will be interpreted as the command "echo" with only one parameter (foo bar).

Available functionality (users)

No user functionality available. See TCustomConsoleInputParser for further information.

Available functionality (developers)


FSummarizeQuotedParameters

procedure FSummarizeQuotedParameters(AQuoteChar: Char);

This function searches for AQuoteChar (p.e. ") within the beginng and end of parameters and extracts separated parameters (which were originally between quotation marks) to one single parameter and moves further parameters backwards.


FParse

procedure FParse;

This FParse function uses the parsing results of TSimpleConsoleInputParser and summarizes parameters which were originally under quotation marks (see FSummarizeQuotedParameters).