This unit contains classes for mask matching. Compare case sensitive. Disable set processing. "[" and "]" are treated as literal characters. The TMask class represents a mask.

A mask is a compare pattern build of wildcards, sets and literal characters.

Each literal character must match a single character in the string. Case sensitivity depends on the option moCaseSensitive.
A set starts with "[" and ends with "]". Each element of a set is a literal character and or a range. A range is defined as first-last literal charcter. One character of a set must match a single character in the string. A set [!...] matches if the character is not in the set. The option moDisableSets disables set processing.
Wildcards are * and ?. An asterisk matches any number of characters. A question mark matches a single character.

'Hello world' matches to the mask 'H?ll[xoy] w*d'.

Creates new mask for matching. Creates new mask for matching. Test if a filename matches the mask. Test if a filename matches the mask. Implements some special rules for a Windows© filesystem comparison. The TParseStringList class is used to parse text into the list of strings. Creates new string list by parsing passed text according to separators. The TMaskList class represents a list of masks. Creates new list of masks from passed value, each item is separated by the parameter Separator. Test if the file name matches at least one of mask list items. Test if the file name matches at least one of mask list items. Implements some special rules for a Windows© filesystem comparison. The count of mask list items. The items of mask list. Test if the file name matches the passed mask. Test if the file name matches the passed mask. Implements some special rules for a Windows© filesystem comparison. Test if the file name matches at least one of passed masks separated by the parameter Separator. Test if the file name matches at least one of passed masks separated by the parameter Separator. Implements some special rules for a Windows© filesystem comparison.