From 6f42ed9547b0ac665dd74fdd9e90edf87326aa58 Mon Sep 17 00:00:00 2001 From: bart <9132501-flyingsheep@users.noreply.gitlab.com> Date: Fri, 3 Apr 2020 15:35:15 +0000 Subject: [PATCH] Docs: document TMaskOptions. Patch by Rolf Wetjen. git-svn-id: trunk@62874 - --- docs/xml/lazutils/masks.xml | 87 +++++++++++++++++++++++++++++++++---- 1 file changed, 78 insertions(+), 9 deletions(-) diff --git a/docs/xml/lazutils/masks.xml b/docs/xml/lazutils/masks.xml index d3a24e36de..47427fa60d 100644 --- a/docs/xml/lazutils/masks.xml +++ b/docs/xml/lazutils/masks.xml @@ -41,6 +41,22 @@ + + + + + + + + Compare case sensitive. + + Disable set processing. "[" and "]" are treated as literal characters. + + + + + + @@ -104,7 +120,12 @@ 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'.

+
@@ -117,9 +138,7 @@ Creates new mask for matching. - -

Creates new mask for matching. Matching is case-insensitive. The mask consist of literal elements such as:

-
+ Creates new mask for matching.
@@ -134,7 +153,7 @@
- If the file name matches the mask. + Test if a filename matches the mask. @@ -143,6 +162,17 @@ + + + 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. @@ -196,7 +226,7 @@ - Creates new list of masks from passed value, each item is separated by separator. + Creates new list of masks from passed value, each item is separated by the parameter Separator. @@ -214,7 +244,7 @@ - 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. @@ -223,6 +253,17 @@ + + + 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. @@ -239,7 +280,7 @@ - If the file name matches the passed mask. + Test if the file name matches the passed mask. @@ -251,8 +292,21 @@ + + Test if the file name matches the passed mask. Implements some special rules for a Windows© filesystem comparison. + + + + + + + + + + + - If the file name matches at least one of passed masks separated by separator. + Test if the file name matches at least one of passed masks separated by the parameter Separator. @@ -265,6 +319,21 @@ + + + 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. + + + + + + + + + + + +