IDZEBRA  2.1.3
lookup.c File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "dict-p.h"

Go to the source code of this file.


static char * dict_look (Dict dict, const Dict_char *str, Dict_ptr ptr)
char * dict_lookup (Dict dict, const char *p)
 lookup item in dictionary More...

Function Documentation

static char* dict_look ( Dict  dict,
const Dict_char str,
Dict_ptr  ptr 

Definition at line 32 of file lookup.c.

References Dict_struct::dbf, dict_bf_readp(), DICT_bsize, DICT_EOS, DICT_nodir, dict_strcmp(), and dict_strlen().

Referenced by dict_lookup().

char* dict_lookup ( Dict  dict,
const char *  p 

lookup item in dictionary

dictdictionary handle
pstring-z with lookup string
Return values
NULLnot found
valuewhere value[0]=userlen, value[1..userlen] is userinfo data

Definition at line 100 of file lookup.c.

References dict_look(), Dict_struct::head, Dict_struct::no_lookup, and Dict_head::root.

Referenced by dict_lookup_ord(), dirs_fopen(), freq_term(), heap_inpb(), heap_inpc(), heap_inps(), index_block_flush(), main(), search_group(), search_position(), zebra_recid_to_sysno(), and zebra_record_check().