Checks for a pattern match with a string
Source position: amigados.pas line 1678
function MatchPattern( |
const pat: pCHAR; |
str: pCHAR |
):LongBool; |
const pat: pCHAR; |
str: string |
):Boolean; |
pat |
|
Special pattern string to match as returned by ParsePattern() |
str |
|
String to match against given pattern |
Success or failure of pattern match. On failure, IoErr() will return 0 or ERROR_TOO_MANY_LEVELS
pat |
|
Special pattern string to match as returned by ParsePattern() |
str |
|
String to match against given pattern |
The pattern must be a tokenized string output by ParsePattern(). This routine is case-sensitive.
NOTE: this routine is highly recursive. You must have at least 1500 free bytes of stack to call this (it will cut off it's recursion before going any deeper than that and return failure). That's currently enough for about 100 levels deep of #, (, ~, etc.
|
Create a tokenized string for MatchPattern() |
|
|
Checks for a pattern match with a string |
|
|
Finds file that matches pattern |
|
|
Finds the next file or directory that matches pattern |