Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

hi_util_kmap.h File Reference

Go to the source code of this file.

Defines

#define ALPHABET_SIZE   256
#define inline

Typedefs

typedef _keynode KEYNODE
typedef _kmapnode KMAPNODE
typedef _kmap KMAP

Functions

KMAPKMapNew (void(*userfree)(void *p))
void KMapSetNoCase (KMAP *km, int flag)
int KMapAdd (KMAP *km, void *key, int ksize, void *userdata)
void * KMapFind (KMAP *km, void *key, int ksize)
void * KMapFindFirst (KMAP *km)
void * KMapFindNext (KMAP *km)
KEYNODEKMapFindFirstKey (KMAP *km)
KEYNODEKMapFindNextKey (KMAP *km)
void KMapDelete (KMAP *km)


Define Documentation

#define ALPHABET_SIZE   256
 

Definition at line 13 of file hi_util_kmap.h.

Referenced by acsmCompile(), Build_NFA(), and Convert_NFA_To_DFA().

#define inline
 

Definition at line 24 of file hi_util_kmap.h.


Typedef Documentation

typedef struct _keynode KEYNODE
 

typedef struct _kmap KMAP
 

typedef struct _kmapnode KMAPNODE
 


Function Documentation

int KMapAdd KMAP km,
void *  key,
int  ksize,
void *  userdata
 

Definition at line 205 of file hi_util_kmap.c.

References _kmapnode::child, KMapAddKeyNode(), KMapCreateNode(), _kmapnode::knode, LOWERCASE, _kmap::nocase, _kmapnode::nodechar, _kmap::root, and _kmapnode::sibling.

Referenced by hi_ui_server_lookup_add().

void KMapDelete KMAP km  ) 
 

Definition at line 123 of file hi_util_kmap.c.

References KMapFreeNode(), KMapFreeNodeList(), _kmap::root, and s_free().

void* KMapFind KMAP km,
void *  key,
int  ksize
 

Definition at line 349 of file hi_util_kmap.c.

References _kmapnode::child, _kmapnode::knode, LOWERCASE, _kmap::nocase, _kmapnode::nodechar, NULL, _kmap::root, _kmapnode::sibling, and _keynode::userdata.

Referenced by hi_ui_server_lookup_find().

void* KMapFindFirst KMAP km  ) 
 

Definition at line 429 of file hi_util_kmap.c.

References _kmap::keylist, _kmap::keynext, NULL, and _keynode::userdata.

Referenced by hi_ui_server_lookup_first().

KEYNODE* KMapFindFirstKey KMAP km  ) 
 

Definition at line 415 of file hi_util_kmap.c.

References _kmap::keylist, _kmap::keynext, and NULL.

void* KMapFindNext KMAP km  ) 
 

Definition at line 458 of file hi_util_kmap.c.

References _kmap::keynext, _keynode::next, and _keynode::userdata.

Referenced by hi_ui_server_lookup_next().

KEYNODE* KMapFindNextKey KMAP km  ) 
 

Definition at line 443 of file hi_util_kmap.c.

References _kmap::keynext, and _keynode::next.

KMAP* KMapNew void(*)(void *p)  userfree  ) 
 

Definition at line 59 of file hi_util_kmap.c.

References memset, s_malloc(), and _kmap::userfree.

Referenced by hi_ui_server_lookup_init().

void KMapSetNoCase KMAP km,
int  flag
 

Definition at line 74 of file hi_util_kmap.c.

References _kmap::nocase.


Generated on Sun May 14 14:51:24 2006 by  doxygen 1.4.2