2 * Copyright (C) 1995-2007, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: match_glob.c,v 1.1 2007-10-24 13:50:02 adam Exp $
10 * \brief Glob expression match
19 #include <yaz/xmalloc.h>
20 #include <yaz/wrbuf.h>
21 #include <yaz/match_glob.h>
23 int yaz_match_glob(const char *glob, const char *text)
31 if (yaz_match_glob(glob+1, text))
37 if (*text && (glob[0] == '?' || glob[0] == *text))
38 return yaz_match_glob(glob+1, text+1);
45 * indent-tabs-mode: nil
47 * vim: shiftwidth=4 tabstop=8 expandtab