Inno Setup Preprocessor: Find flags

Description

One of the following four values must be specified:

FIND_MATCH (0) means that the line must match the search string.

FIND_BEGINS (1) means that the line must start with the search string.

FIND_ENDS (2) means that the line must end with the search string.

FIND_CONTAINS (3) means that the line must contain (that is, it also can match, begin, or end with) the search string.

Any of the following modifiers may be combined with one of the previous using bitwise OR operator (|):

FIND_CASESENSITIVE (4) means that comparison must be case-sensitive.

FIND_AND (0) means that this criterion (the pair of parameters in Find function) must be met as well as previous criteria. Has no effect for the first criterion.

FIND_OR (8) means that it is allowed that this criterion is tested even if previous criteria were not met. Has no effect for the first criterion.

FIND_NOT (16) means that this criterion must not be met.

FIND_AND and FIND_OR are mutually exclusive. If both are specified, FIND_OR takes precedence.

Special flags:

FIND_TRIM (32) means that leading and trailing whitespace must be stripped from the line prior to testing it against all the criteria. This flag can only be used for the first criterion, and has no effect if used for the others. It is not mutually exclusive with any of the previously mentioned flags.