Source Statistics Wizard

Source Statistics Wizard

This wizard can Calculate the lines of Pascal/C++ codes in Delphi and C++Builder IDE. It can do the statistics works from several methods as below:

- Calculate current unit.

- Calculate all files in current project.

- Calculate all files in current projectgroup.

- Calculate all opened files in IDE.

- Calculate files in a directory with extensoin filtering.

When user click 'Source Statistics...' in 'CnPack' menu, a statistics dialog appears as below to let user choose count mode:

After user click 'Calculate' button, this wizard can analysis selected files and give the results in the statistics result window.

- To single file, the results include bytes, lines, lines of comments, lines of codes, effective lines, blank lines, bytes of codes, bytes of comments and blocks of comments.
- To project or projectgroup, this wizards can give all the above results to all files.
- Delphi's projectgroup source file and C++Builder's project or projectgroup source file are not valid source codes, so they're not calculated into results.

The result window of this wizard is as below:

The statusbar displays file counts, summary bytes and effective lines of all calculated files. Here 'effective lines' means none-blank lines. If one lines contains both code and comment, it will be counted both into lines of codes and lines of comments.

Note: {$...} in Pascal codes will be treated as comments, while #... in C++ as codes.

Other Introduction

The result window provides some functions to process the statistics results. Also, statistics dialog can be shown again to select what to calcuate and re-calclate them.

You can double click a file in tree list to open it in IDE. Statistic results can be save to TXT file or CSV file seperated by comma or Tab.

If there were many files in statistices, you can use 'Search File...' to search the file and locate it.

Links

Basic Operation

CnWizards Settings

About CnWizards

Copyrights 2001-2016 CnPack Team