2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: matchstr.c,v 1.5 2005-06-25 15:46:04 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)
33 unsigned char c1 = *s1;
34 unsigned char c2 = *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);
87 * indent-tabs-mode: nil
89 * vim: shiftwidth=4 tabstop=8 expandtab