BCS Tidy Uses Section Delphi XE8


The BCS Tidy project as the name implies Tidy’s up the Delphi XE8 source code.
This project is major so we will begin with restructuring the uses section of the interfaces portion of the Delphi XE8 source code.
tidyuses
What this BCS Tidy Uses Delphi XE8 application does:

  • Reads the source code into a string collection.
  • Once in the string collection the application finds the uses statements (interface section only).
  • The unit names are extrapolated and sorted using an additional sorted string collection.
  • The program up to and including the uses statement is stored in another string collection.
  • The source code after the uses statement is stored in yet another string collection.
  • The units are then formatted after they are sorted in ascending alphabetical sequence.
  • Finally the Delphi XE8 source code is assembled and stored in its original location.

As previously stated this is a rather large undertaking and will be approached in sections. When all the sections are functional finalization of the application will commence.
The source code can be found by clicking here.
The component documentation can be found by clicking here.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

1 comment
Leave a Reply

Your email address will not be published. Required fields are marked *