Unit 'amigados' Package
[Overview][Constants][Types][Procedures and functions][Index] [#amunits]

MatchPatternNoCase

Checks for a pattern match with a string

Declaration

Source position: amigados.pas line 1679

function MatchPatternNoCase(

  const pat: pCHAR;

  str: pCHAR

):LongBool;

function MatchPatternNoCase(

  const pat: pCHAR;

  str: string

):Boolean;

Arguments

pat

  

Special pattern string to match as returned by ParsePattern()

str

  

String to match against given pattern

Function result

Success or failure of pattern match. On failure, IoErr() will return 0 or ERROR_TOO_MANY_LEVELS

Arguments

pat

  

Special pattern string to match as returned by ParsePattern()

str

  

String to match against given pattern

Description

The pattern must be a tokenized string output by ParsePattern(). This routine is case-insensitive.

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.

See also

ParsePattern

  

Create a tokenized string for MatchPattern()

MatchPattern

  

Checks for a pattern match with a string

MatchFirst

  

Finds file that matches pattern

MatchNext

  

Finds the next file or directory that matches pattern


Documentation generated on: 2021-07-30