ELinks 0.18.0
fastfind_index Struct Reference

#include <fastfind.h>

Collaboration diagram for fastfind_index:

Data Fields

const char * comment
 Description useful for debugging mode.
 
void(* reset )(void)
 Start over.
 
struct fastfind_key_value *(* next )(void)
 Get next struct fastfind_key_value in line.
 
void * handle
 Internal reference.
 

Related Symbols

(Note that these are not member symbols.)

struct fastfind_indexfastfind_index (struct fastfind_index *index, fastfind_flags_T flags)
 Initialize and index a list of keys.
 
void * fastfind_search (struct fastfind_index *index, const char *key, int key_len)
 Search the index for key with length key_len using the index' handle created with fastfind_index().
 
void fastfind_done (struct fastfind_index *index)
 Fastfind cleanup.
 

Friends And Related Symbol Documentation

◆ fastfind_done()

void fastfind_done ( struct fastfind_index * index)
related

Fastfind cleanup.

It frees the given index. Must be called once per list.

◆ fastfind_index()

struct fastfind_index * fastfind_index ( struct fastfind_index * index,
fastfind_flags_T flags )
related

Initialize and index a list of keys.

Keys are iterated using:

Parameters
indexindex info
flagscontrol case sensitivity, compression

This function must be called once and only once per list. Failure is not an option, so call it at startup.

◆ fastfind_search()

void * fastfind_search ( struct fastfind_index * index,
const char * key,
int key_len )
related

Search the index for key with length key_len using the index' handle created with fastfind_index().

Field Documentation

◆ comment

const char* fastfind_index::comment

Description useful for debugging mode.

◆ handle

void* fastfind_index::handle

Internal reference.

◆ next

struct fastfind_key_value *(* fastfind_index::next) (void)

Get next struct fastfind_key_value in line.

◆ reset

void(* fastfind_index::reset) (void)

Start over.


The documentation for this struct was generated from the following file: