ExtractIdentifiers

Top  Previous  Next

Tools > ExtractIdentifiers

The ExtractIdentifiers tool can be used to create or correct identifier lists by extracting identifiers from individual files or groups of files. ExtractIdentifiers is a command

ExtractIdentifiers is a command line tool. It can be called with the following parameters:

 

ExtractIdentifiers -a or -c -i identifer file -f folder [-m Filemask] 

 

 

Parameter

Name

Meaning

 

 

 

-c

correct

Correct all identifiers with identifier notation in the scanned files. the last found notation will correct the previous

-a

add

Add all identifiers which were not in the identifier file before. If parameter c is not set the first found notation will be added, otherwise the last one

-i

identifier list

File path to the identifier file. If it doesn't exist, it will be created.

-s

source

A single source file or a source directory of files which recursively will be scanned for identifiers.

-m

mask

Optional file mask like \"*.pas;*.cs\", if not specified, all files are processed

-/

C++ comments

Skip C++ comments instead of Delphi comments

 

 

 

The a- or c- parameter have to be set, otherwise the program will do nothing. The parameters can be passed in any order. Paths may be absolute or relative. Line comments are skipped as well as strings and Delphi comments per default if not changed by -/ parameter

 

For example the following commands will extract all Delphi identifiers from the Delphi RTL in .\Source\Rtl and correct and supplement the resulting list in RTL_7.txt with the identifiers from the fie CorrectIdentifiers.txt

 

ExtractIdentifiers.exe -a -i RTL_7.txt -s ..\Source\Rtl\Common -m *.pas;*.inc

ExtractIdentifiers.exe -a -i RTL_7.txt -s ..\Source\Rtl\Sys -m *.pas;*.inc

ExtractIdentifiers.exe -a -i RTL_7.txt -s ..\Source\Rtl\Win -m *.pas;*.inc

ExtractIdentifiers.exe -a -i RTL_7.txt -s ..\Source\Rtl\Bde -m *.int

ExtractIdentifiers.exe -c -a -i RTL_7.txt -s CorrectIdentifiers.txt

 

 

 

 



This page belongs to the Delphi2Cpp Documentation

Delphi2Cpp home  Content