Detabbed
[AROS.git] / rom / dos / matchpattern.c
blob9a79d0207cf0f4a4f1bf2610c2d29466e6830b34
1 /*
2 Copyright © 1995-2008, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
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 /*****************************************************************************
16 NAME */
17 #include <proto/dos.h>
19 AROS_LH2(BOOL, MatchPattern,
21 /* SYNOPSIS */
22 AROS_LHA(CONST_STRPTR, pat, D1),
23 AROS_LHA(CONST_STRPTR, str, D2),
25 /* LOCATION */
26 struct DosLibrary *, DOSBase, 141, Dos)
28 /* FUNCTION
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.
33 INPUTS
35 pat -- Pattern string (as returned by ParsePattern())
36 str -- The string to match against the pattern 'pat'
38 RESULT
40 Boolean telling whether the string matched the pattern.
42 NOTES
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 ParsePattern(), MatchPatternNoCase(), MatchFirst(), MatchNext()
52 INTERNALS
54 *****************************************************************************/
56 AROS_LIBFUNC_INIT
58 return patternMatch(pat, str, TRUE, DOSBase);
60 AROS_LIBFUNC_EXIT
61 } /* MatchPattern */