2 * Copyright (c) 1995-2004, Index Data.
3 * See the file LICENSE for details.
5 * $Id: matchstr.c,v 1.2 2004-10-15 00:19:00 adam Exp $
10 * \brief Implements loose string matching
21 #include <yaz/yaz-util.h>
24 * Match strings, independently of case and occurences of '-'.
25 * fairly inefficient - will be replaced with an indexing scheme for
26 * the various subsystems if we get a bottleneck here.
29 int yaz_matchstr(const char *s1, const char *s2)
59 int yaz_strcmp_del(const char *a, const char *b, const char *b_del)
68 if (b_del && strchr(b_del, *b))
75 void __assert_fail (const char *assertion, const char *file,
76 unsigned int line, const char *function)
78 fprintf (stderr, "%s in file %s line %d func %s\n",
79 assertion, file, line, function);