JCL Help:StrMatches@AnsiString@AnsiString@SizeInt
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: StrMatches Function
[+] JclAnsiStrings.pas Functions
Search in JCL Help
Search in all projects
Summary
Compares two strings.
Pascal
function StrMatches(const Substr: string; const S: string; const Index: SizeInt = 1): Boolean;
function StrMatches(const Substr: AnsiString; const S: AnsiString; const Index: SizeInt = 1): Boolean;
Parameters
Parameters | Description |
const Substr: string | The sub-string to search for. May contain wildcards. |
const Index: SizeInt = 1 | The index in Str at which to start the search. |
Str | The string in which to search. |
Return Value
True if Str and Substr are equal.
Description
StrMatches compares two given strings. The search starts at the supplied index and is case-sensitive. The specified sub-string may contain wildcards. The '?' wildcard matches 1 character while the '*' wildcard matches 0 or more occurrences of a character. For example, 'J?DI' will find 'JEDI', 'JZDI' and 'JODI' (and more) while 'J*I' will find 'JEDI' and 'JI'.
See Also
About
Unit
Donator
Michael Winter
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page