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 page specifies the path to a text file containing a list of identifiers. The “...” button to the right of the field opens a file selection dialog in which you can select the file.

 

For every matching identifier in the source code, the preprocessor uses the capitalization specified in this list. If the path is stored as part of the options, the identifier list is loaded automatically when the options are loaded.

 

Before Delphi2C# 2.5.0, this list was used to normalize the capitalization of identifiers. Since version 2.5.0, identifiers are normally written using the capitalization of their declarations. Entries in the list are therefore required only in exceptional cases, and the list will usually be short.

 

IdentifierList

 

 

You can edit the list in an external text editor or create it manually. Each line must contain exactly one identifier. For example:

 

...

SetLength

Setscrollinfo

SetSelection

...

 

If you change Setscrollinfo to SetScrollInfo, every matching occurrence of this identifier will use the latter capitalization.

 

Identifier matching is case-insensitive. If the same identifier occurs more than once in the list, the last occurrence takes precedence.

 

After editing the file in an external editor, click “Reload identifiers” to reload it. Otherwise, the changes will not take effect during the current session.

 

 

 

 

 

 



This page belongs to the Delphi2C# Documentation

Delphi2C# home  Content