TTMSFNCUtils.MatchStrEx Method
Compares a value with an expression or wildcard pattern.
API unit family: TMSFNCUtils
Declaring type: TTMSFNCUtils
Overloads
Overload 1
Compares a value with an expression or wildcard pattern.
class function MatchStrEx(AValue1, AValue2: string; ACaseSensitive: Boolean): Boolean; overload;
Parameters
| Name | Description |
|---|---|
AValue1 |
Expression or wildcard pattern. |
AValue2 |
Value to compare against the expression. |
ACaseSensitive |
When True, comparison preserves case. |
Returns
True when the value matches the expression.
Overload 2
Checks whether a value matches any value in an array.
class function MatchStrEx(AValue: string; AArray: array of string; ACaseSensitive: Boolean; AExpression: Boolean = True): Boolean; overload;
Parameters
| Name | Description |
|---|---|
AValue |
Value to find. |
AArray |
Candidate values or expressions. |
ACaseSensitive |
When True, comparison preserves case. |
AExpression |
When True, array items are treated as match expressions; otherwise exact comparison is used. |
Returns
True when a match is found.