2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
8 #include <exec/memory.h>
9 #include <proto/exec.h>
10 #include <dos/dosextens.h>
11 #include <dos/dosasl.h>
12 #include "dos_intern.h"
14 /*****************************************************************************
17 #include <proto/dos.h>
19 AROS_LH2(BOOL
, MatchPattern
,
22 AROS_LHA(CONST_STRPTR
, pat
, D1
),
23 AROS_LHA(CONST_STRPTR
, str
, D2
),
26 struct DosLibrary
*, DOSBase
, 141, Dos
)
30 Check if a string matches a pattern. The pattern must be a pattern as
31 output by ParsePattern(). Note that this routine is case sensitive.
35 pat -- Pattern string (as returned by ParsePattern())
36 str -- The string to match against the pattern 'pat'
40 Boolean telling whether the string matched the pattern.
50 ParsePattern(), MatchPatternNoCase(), MatchFirst(), MatchNext()
54 *****************************************************************************/
58 return patternMatch(pat
, str
, TRUE
, DOSBase
);