VHISTlib
1.84.0.3018
|
A class which parses an argfile and returns a list of argument strings. More...
#include <argfileparser.h>
Public Member Functions | |
ArgfileParser () | |
Creates a new ArgfileParser object. | |
~ArgfileParser () | |
Destroys the ArfileParser object. | |
QStringList | parseArgfile (const QString &content, const Environment *env=NULL) |
Parses the given argfile and returns a list of string arguments similar to argv. | |
TokenList | getHighlighterList (const QString &content) |
A class which parses an argfile and returns a list of argument strings.
Variables used in the argfile are replaced using an environment hashtable.
QStringList ArgfileParser::parseArgfile | ( | const QString & | content, |
const Environment * | env = NULL |
||
) |
Parses the given argfile and returns a list of string arguments similar to argv.
content | The content of an argfile, which should be parsed. |
env | An optional Environment containing variable names and values. Variables used inside the argfile are replaced by the values from the Environment. If a variable does not appear within the Environment, it is replaced by an empty string. If env is NULL , no variables are replaced. |
$
signs inside an argfile are used to indicate variables, literal $
signs within the argfile are represented by two $
signs in the argument list returned by parseArgfile().