added "jammod" command and "genman" module
[k8jam.git] / src / matchglob.h
blob3d19eb8cdb3157a9166ea2b9e1a39c160cb1586f
1 /*
2 * Copyright 1994 Christopher Seiwald. All rights reserved.
3 * This file is part of Jam - see jam.c for Copyright information.
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 * matchglob.h - match a string against a simple pattern
21 * Understands the following patterns:
23 * * any number of characters
24 * ? any single character
25 * [a-z] any single character in the range a-z
26 * [^a-z] any single character not in the range a-z
27 * \x match x
29 #ifndef JAMH_MATCHGLOB_H
30 #define JAMH_MATCHGLOB_H
33 /* returns 0 on success */
34 extern int matchglob (const char *pat, const char *str);
35 extern int matchglobex (const char *pat, const char *str, int casesens);
38 #endif