IDZEBRA 2.2.11
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.

Functions

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

Function Documentation

◆ dict_look()

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

Definition at line 32 of file lookup.c.

References dict, dict_bf_readp(), DICT_bsize, DICT_EOS, DICT_nodir, dict_strcmp(), and dict_strlen().

Referenced by dict_lookup().

◆ dict_lookup()

char * dict_lookup ( Dict dict,
const char * p )

lookup item in dictionary

Parameters
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, and dict_look().

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().