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