* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
- *
- * Wildcard pattern matching
*/
#include "portab.h"
-static char UNUSED id[] = "$Id: match.c,v 1.5 2006/10/06 21:23:47 fw Exp $";
+/**
+ * @file
+ * Wildcard pattern matching
+ */
#include "imp.h"
#include <assert.h>
#include "exp.h"
#include "match.h"
+#include "defines.h"
+#include "tool.h"
/*
} /* Match */
+GLOBAL bool
+MatchCaseInsensitive(const char *pattern, const char *searchme)
+{
+ char haystack[COMMAND_LEN];
+
+ strlcpy(haystack, searchme, sizeof(haystack));
+ return Match(pattern, ngt_LowerStr(haystack));
+} /* MatchCaseInsensitive */
+
+
static int
Matche( const char *p, const char *t )
{