24 #include <yaz/wrbuf.h>
30 WRBUF w = wrbuf_alloc();
37 wrbuf_write(w, pref, len);
51 int userlen,
void *userinfo)
54 int r =
dict_insert(d, wrbuf_cstr(w), userlen, userinfo);
68 int (*f)(
const char *info,
void *client))
char * dict_lookup(Dict dict, const char *p)
lookup item in dictionary
int dict_delete(Dict dict, const char *p)
deletes item from dictionary
int dict_delete_subtree(Dict dict, const char *p, void *client, int(*f)(const char *info, void *client))
delete items with a given prefix from dictionary
int dict_insert(Dict dict, const char *p, int userlen, void *userinfo)
insert item into dictionary
int key_SU_encode(int ch, char *out)
int dict_delete_subtree_ord(Dict d, int ord, void *client, int(*f)(const char *info, void *client))
char * dict_lookup_ord(Dict d, int ord, const char *str)
int dict_insert_ord(Dict d, int ord, const char *p, int userlen, void *userinfo)
WRBUF zebra_mk_ord_str(int ord, const char *str)
int dict_delete_ord(Dict d, int ord, const char *p)