git/wildmatch.c

/*
**  Do shell-style pattern matching for ?, \, [], and * characters.
**  It is 8bit clean.
**
**  Written by Rich $alz, mirror!rs, Wed Nov 26 19:03:17 EST 1986.
**  Rich $alz is now <[email protected]>.
**
**  Modified by Wayne Davison to special-case '/' matching, to make '**'
**  work differently than '*', and to fix the character-class code.
*/

#include "git-compat-util.h"
#include "wildmatch.h"

uchar;

/* Internal return values */
#define WM_ABORT_ALL
#define WM_ABORT_TO_STARSTAR

/* What character marks an inverted character class? */
#define NEGATE_CLASS
#define NEGATE_CLASS2

#define CC_EQ(class, len, litmatch)

#if defined STDC_HEADERS || !defined isascii
#define ISASCII
#else
#define ISASCII(c)
#endif

#ifdef isblank
#define ISBLANK
#else
#define ISBLANK(c)
#endif

#ifdef isgraph
#define ISGRAPH
#else
#define ISGRAPH(c)
#endif

#define ISPRINT(c)
#define ISDIGIT(c)
#define ISALNUM(c)
#define ISALPHA(c)
#define ISCNTRL(c)
#define ISLOWER(c)
#define ISPUNCT(c)
#define ISSPACE(c)
#define ISUPPER(c)
#define ISXDIGIT(c)

/* Match pattern "p" against "text" */
static int dowild(const uchar *p, const uchar *text, unsigned int flags)
{}

/* Match the "pattern" against the "text" string. */
int wildmatch(const char *pattern, const char *text, unsigned int flags)
{}