fehQlibs 27
Qlibs
Loading...
Searching...
No Matches
constmap.c File Reference

constant hash table More...

#include "constmap.h"
#include "alloc.h"
#include "case.h"
Include dependency graph for constmap.c:

Go to the source code of this file.

Functions

int constmap_index (struct constmap *cm, const char *s, int len)
 
char * constmap_get (struct constmap *cm, int idx)
 
char * constmap (struct constmap *cm, const char *s, int len)
 
int constmap_init (struct constmap *cm, const char *s, int len, int flagcolon)
 
int constmap_init_char (struct constmap *cm, const char *s, int len, int flagcolon, char flagchar)
 
void constmap_free (struct constmap *cm)
 

Detailed Description

constant hash table

Author
djb qmail

Attention! constmap is both function and struct

Definition in file constmap.c.

Function Documentation

◆ constmap()

char * constmap ( struct constmap * cm,
const char * s,
int len )

Definition at line 65 of file constmap.c.

Here is the call graph for this function:

◆ constmap_free()

void constmap_free ( struct constmap * cm)

Definition at line 208 of file constmap.c.

Here is the call graph for this function:

◆ constmap_get()

char * constmap_get ( struct constmap * cm,
int idx )

Definition at line 57 of file constmap.c.

◆ constmap_index()

int constmap_index ( struct constmap * cm,
const char * s,
int len )

Definition at line 35 of file constmap.c.

Here is the call graph for this function:

◆ constmap_init()

int constmap_init ( struct constmap * cm,
const char * s,
int len,
int flagcolon )

Definition at line 81 of file constmap.c.

Here is the call graph for this function:

◆ constmap_init_char()

int constmap_init_char ( struct constmap * cm,
const char * s,
int len,
int flagcolon,
char flagchar )

Definition at line 142 of file constmap.c.

Here is the call graph for this function: