Indentation fix, cleanup.
[AROS.git] / rom / dos / matchpattern.c
blob1450daed7e60ef6208b550bf8efce3bdb45b13f2
1 /*
2 Copyright © 1995-2013, 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
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.
32 INPUTS
33 pat - Pattern string (as returned by ParsePattern())
34 str - The string to match against the pattern 'pat'
36 RESULT
37 Boolean telling whether the string matched the pattern.
39 NOTES
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 ParsePattern(), MatchPatternNoCase(), MatchFirst(), MatchNext()
48 INTERNALS
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 return patternMatch(pat, str, TRUE, DOSBase);
56 AROS_LIBFUNC_EXIT
57 } /* MatchPattern */