Skip to main content
Table of Contents

TTMSFNCUtils.Matches Method

Compares a null-terminated string with a wildcard pattern.

API unit family: TMSFNCUtils Declaring type: TTMSFNCUtils

Overloads

Overload 1

Compares a null-terminated string with a wildcard pattern.

FMX.TMSFNCUtils.hppPascalC++
class function Matches(s0a, s1a: PChar): Boolean; overload;
__classmethod bool __fastcall Matches(System::WideChar * s0a, System::WideChar * s1a)/* overload */;

Parameters

Name Description
s0a Wildcard pattern.
s1a Value to compare.

Returns

True when the value matches the pattern.

Overload 2

Compares a string with a wildcard pattern.

FMX.TMSFNCUtils.hppPascalC++
class function Matches(s0a, s1a: string): Boolean; overload;
__classmethod bool __fastcall Matches(System::UnicodeString s0a, System::UnicodeString s1a)/* overload */;

Parameters

Name Description
s0a Wildcard pattern.
s1a Value to compare.

Returns

True when the value matches the pattern.