X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fdict.h;h=ed1e61f87e3b1c4b0e9dfbbfb9fcd2f981574324;hb=886253fb90810e512cacf4f02694645ead7a22e0;hp=b7c10c078737b5a660c39b79bc32719a17fbe1ee;hpb=4ed5fbcd29d2a98b048d1d94510b262d352b4f7c;p=idzebra-moved-to-github.git diff --git a/include/dict.h b/include/dict.h index b7c10c0..ed1e61f 100644 --- a/include/dict.h +++ b/include/dict.h @@ -1,10 +1,16 @@ /* - * Copyright (C) 1994-1999, Index Data + * Copyright (C) 1994-2000, Index Data * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * * $Log: dict.h,v $ - * Revision 1.29 1999-05-15 14:36:37 adam + * Revision 1.31 2000-12-05 09:59:10 adam + * Work on dict_delete_subtree. + * + * Revision 1.30 1999/11/30 13:48:03 adam + * Improved installation. Updated for inclusion of YAZ header files. + * + * Revision 1.29 1999/05/15 14:36:37 adam * Updated dictionary. Implemented "compression" of dictionary. * * Revision 1.28 1999/03/09 13:07:06 adam @@ -107,7 +113,7 @@ #define DICT_H #include -#include +#include #ifdef __cplusplus extern "C" { @@ -178,6 +184,8 @@ Dict dict_open (BFiles bfs, const char *name, int cache, int rw, int dict_close (Dict dict); int dict_insert (Dict dict, const char *p, int userlen, void *userinfo); int dict_delete (Dict dict, const char *p); +int dict_delete_subtree (Dict dict, const char *p, void *client, + int (*f)(const char *info, void *client)); char *dict_lookup (Dict dict, const char *p); int dict_lookup_ec (Dict dict, char *p, int range, int (*f)(char *name)); @@ -186,6 +194,7 @@ int dict_lookup_grep (Dict dict, const char *p, int range, void *client, int (*f)(char *name, const char *info, void *client)); int dict_strcmp (const Dict_char *s1, const Dict_char *s2); +int dict_strncmp (const Dict_char *s1, const Dict_char *s2, size_t n); int dict_strlen (const Dict_char *s); int dict_scan (Dict dict, char *str, int *before, int *after, void *client,