1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2010 Index Data
3 * See the file LICENSE for details.
8 * \brief Glob expression match
17 #include <yaz/xmalloc.h>
18 #include <yaz/wrbuf.h>
19 #include <yaz/match_glob.h>
21 int yaz_match_glob(const char *glob, const char *text)
29 if (yaz_match_glob(glob+1, text))
35 if (*text && (glob[0] == '?' || glob[0] == *text))
36 return yaz_match_glob(glob+1, text+1);
43 * c-file-style: "Stroustrup"
44 * indent-tabs-mode: nil
46 * vim: shiftwidth=4 tabstop=8 expandtab