2 * Copyright (c) 1995-2003, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
6 * $Id: matchstr.c,v 1.7 2003-02-12 21:34:57 adam Exp $
16 #include <yaz/yaz-util.h>
19 * Match strings, independently of case and occurences of '-'.
20 * fairly inefficient - will be replaced with an indexing scheme for
21 * the various subsystems if we get a bottleneck here.
24 int yaz_matchstr(const char *s1, const char *s2)
54 int yaz_strcmp_del(const char *a, const char *b, const char *b_del)
63 if (b_del && strchr(b_del, *b))
70 void __assert_fail (const char *assertion, const char *file,
71 unsigned int line, const char *function)
73 fprintf (stderr, "%s in file %s line %d func %s\n",
74 assertion, file, line, function);