Unit 'AmigaDOS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

MatchPatternNoCase

Checks for a pattern match with a string

Declaration

Source position: amigados.pas line 2266

function MatchPatternNoCase(

  pat: PChar;

  str: PChar

):LongBool;

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

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