Ignore:
Timestamp:
Jan 4, 2007, 8:58:09 PM (19 years ago)
Author:
RBRi
Message:

+ store the raw filenames (including quotes) also to allow sime more intelligent parameter handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/CmdLineParameterUnit.pas

    r42 r45  
    4848       windowTitle : string;
    4949       fileNames : string;
     50       fileNamesRaw : string;
    5051       searchText : string;
    5152
     
    6970       PROPERTY getWindowTitle : string read windowTitle;
    7071       PROPERTY getFileNames : string read fileNames;
     72       PROPERTY getFileNamesRaw : string read fileNamesRaw;
    7173       PROPERTY getSearchText : string read searchText;
    7274
     
    111113     windowTitle := '';
    112114     searchText := '';
    113      filenames := '';
     115     fileNames := '';
     116     fileNamesRaw := '';
    114117
    115118     try
     
    140143                 FILENAME_QUOTE :
    141144                 begin
    142                    filenames := filenames + tmpCurrentChar;
     145                   fileNames := fileNames + tmpCurrentChar;
     146                   fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    143147                   inc(currentParsePosition);
    144148                 end;
     
    168172                   else
    169173                   begin
    170                      filenames := filenames + tmpCurrentChar;
     174                     fileNames := fileNames + tmpCurrentChar;
     175                     fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    171176                     inc(currentParsePosition);
    172177                   end;
     
    174179                 FILENAME_QUOTE :
    175180                 begin
    176                    filenames := filenames + tmpCurrentChar;
     181                   fileNames := fileNames + tmpCurrentChar;
     182                   fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    177183                   inc(currentParsePosition);
    178184                 end;
     
    196202                 begin
    197203                   tmpState := FILENAME_QUOTE;
     204                   fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    198205                   inc(currentParsePosition);
    199206                 end;
     
    201208                 begin
    202209                   tmpState := FILENAME;
     210                   fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    203211                   inc(currentParsePosition);
    204212                 end;
     
    222230                 begin
    223231                   fileNames := fileNames + tmpCurrentChar;
     232                   fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    224233                   inc(currentParsePosition);
    225234                 end;
    226235                 FILENAME_QUOTE :
    227236                 begin
    228                    filenames := filenames + tmpCurrentChar;
     237                   fileNames := fileNames + tmpCurrentChar;
     238                   fileNamesRaw := fileNamesRaw + tmpCurrentChar;
    229239                   inc(currentParsePosition);
    230240                 end;
Note: See TracChangeset for help on using the changeset viewer.