Preprocessor identifiers |
Top Previous Next |
User interface > Translation options > Substitution options > Unification of upper and lower case > Preprocessor identifiers The "Preprocessor identifiers" field on the substitution options displays the path to a simple text file containing a list of identifiers. The "..." button on the right edge of the edit field opens a file selection box, where you can select the file on the disk. The preprocessor takes the upper and lower case defined in the list of identifiers as template for the capitalization of the according identifiers in the code. If the path to the list is saved as part of the options, the list is loaded at the same time as the options are loaded.
If the outdated option to unify all cases is enabled, then this list will be very large. It should then also contain, for example, all identifiers from the interface sections of the RTL. If, however, the preferred option is enabled, that the spelling of identifiers shall match the declaration case, then replacements according to the list are rarely needed and the list will be very short.
Your can edit such a list in an external editor or even create such a list by hand Every line has to consist in just one identifier. E.g.
... SetLength Setscrollinfo SetSelection ...
If you change "Setscrollinfo" to "SetScrollInfo", all appearances of this identifier will be unified to the second form. If the same identifiers occurs more than one time in the list, the latest occurrence will be taken.
If you edit the list in an external editor, you have to reload the list by the button Reload identifiers, otherwise the changes will not have an effect in the current session.
Tip:
If you have a second list whose spellings should replace those in the first, you can append the second list to the first. If the first list is now used in the project options, the first spelling will be overwritten by the second when the list is read in. The list can now be saved with the changed spellings sorted.
|
This page belongs to the Delphi2Cpp Documentation |
Delphi2Cpp home Content |