Identifiers in external text files




Instructions for use of lists–entries:

Ctrl + Enter insertion of a new line
Strg + A selection of all entries
Ctrl + Tab activates or deactivates a single list item

Deactivated entries are shown indented
and will be ignored in subsequent program flow.


Sometimes identifiers, that are declared in the VBA project, are also used in
external text files and have to be camouflaged in the same way (e.g. in INI–files).

You can compile a list of text files where all the words, that are identical
to identifiers, will be replaced by the corresponding code names
(CrunchCode can process only plain text files).

In addition, it is possible based on text patterns to define
in which lines of the text files the replacement should occur
or in which lines it should be prevented.

List on the left ("Only in lines with..."):

Only lines that contain the specified strings are processed.
If the list is empty, all lines are processed.

List on the right ("But NOT in lines with..."):

Any lines selected by the left list,
that contain one of the strings specified here will NOT be processed.

Hints:

– In the lists, preferably only use separators and punctuations,
  no letters or numerals, which also occur in identifier names

– The right–hand list is applied after the left list.
  Make sure that the entries here
  do not contradict entries in the left list
  or else neither will be effective.

Before processing each text file a backup is created.

Notes for the lists:

– Should an identifier–word be camouflaged only if it appears BEFORE OR BEHIND a character string,
  then use the wildcard "..." (three dots).
  This represents the part of the line in which the identifier–word appears.

  It may be used only once per list entry and must
  always occur at the beginning or the end.

  Example: ...= only processes lines that contain an equal sign
and only processes the part BEFORE the equal sign.
An identifier–word AFTER an equal sign will NOT be camouflaged.

– If a string should be effective alone, it must stand ALONE in a line.

– if there are MULTIPLE strings in a row,
  they act in exactly the manner and order as specified.

– The entries are not case sensitive

– wildcards (such as "*" or "?") are ineffective