TMaskUTF8.Matches function
Indicates whether the specified value is a match for the Mask expression.
Declaration
function Matches(const aStringToMatch: string): Boolean; virtualArguments
aStringToMatch | Value to compare to the Mask expression. |
Function result
True when the specified value matches the Mask expression.Description
Matches calls Compile if the MaskOpCodes have not been compiled for the Mask expression, or when one the configuration parameters has been changed for the class instance. When CaseSensitive is set to False, the value in aStringToMatch is converted to a lowercase UTF-8 codepoint for the comparison.
Matches calls the IntfMatches method to implement the comparison between the specified value using the MaskOpCodes for the class instance. The return value is True if the call to IntfMatches is successful. It is False if either the Mask expression or the compared value is too long or too short.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
