2 Copyright © 1995-2013, 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
)
29 Check if a string matches a pattern. The pattern must be a pattern as
30 output by ParsePattern(). Note that this routine is case sensitive.
33 pat - Pattern string (as returned by ParsePattern())
34 str - The string to match against the pattern 'pat'
37 Boolean telling whether the string matched the pattern.
46 ParsePattern(), MatchPatternNoCase(), MatchFirst(), MatchNext()
50 *****************************************************************************/
54 return patternMatch(pat
, str
, TRUE
, DOSBase
);