2 * Copyright (c) 1995-2000, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.5 2000-02-29 13:44:55 adam
8 * Check for config.h (currently not generated).
10 * Revision 1.4 1999/11/30 13:47:12 adam
11 * Improved installation. Moved header files to include/yaz.
13 * Revision 1.3 1999/10/19 12:35:42 adam
14 * Minor bug fix (bug introduced by previous commit).
16 * Revision 1.2 1999/10/15 11:35:41 adam
17 * Character '.' matches any single character.
19 * Revision 1.1 1999/06/08 10:10:16 adam
20 * New sub directory zutil. Moved YAZ Compiler to be part of YAZ tree.
22 * Revision 1.7 1997/09/30 11:47:47 adam
23 * Added function 'cause checkergcc doesn't include assert handler.
25 * Revision 1.6 1997/09/04 07:54:34 adam
26 * Right hande side operand of yaz_matchstr may include a ? in
27 * which case it returns "match ok".
29 * Revision 1.5 1997/07/21 12:48:11 adam
30 * Removed windows DLL stubs.
32 * Revision 1.4 1997/05/01 15:07:55 adam
33 * Added DLL entry point routines.
35 * Revision 1.3 1996/10/29 13:36:28 adam
38 * Revision 1.2 1996/02/20 17:58:42 adam
39 * Added const to yaz_matchstr.
41 * Revision 1.1 1996/02/20 16:33:06 quinn
42 * Moved matchstr to global util
44 * Revision 1.1 1995/11/01 11:56:08 quinn
45 * Added Retrieval (data management) functions en masse.
56 #include <yaz/yaz-util.h>
59 * Match strings, independently of case and occurences of '-'.
60 * fairly inefficient - will be replaced with an indexing scheme for
61 * the various subsystems if we get a bottleneck here.
64 int yaz_matchstr(const char *s1, const char *s2)
96 void __assert_fail (const char *assertion, const char *file,
97 unsigned int line, const char *function)
99 fprintf (stderr, "%s in file %s line %d func %s\n",
100 assertion, file, line, function);