ZEDA  1.6.18
Data Structures | Macros | Typedefs | Functions
zeda_strlist.h File Reference
#include <zeda/zeda_list.h>
#include <zeda/zeda_string.h>
Include dependency graph for zeda_strlist.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __zStrListCell
 
struct  __zStrList
 

Macros

#define zStrListPrint(l)   zStrListFPrint( stdout, (l) )
 
#define zStrAddrListDestroy(l)   zListDestroy( zStrAddrListCell, l )
 destroy a list of addresses of strings. More...
 
#define zStrAddrListGetPtr   zStrListGetPtr
 get pointers to strings of a list. More...
 
#define zStrAddrListFPrint   zStrListFPrint
 print a list of strings to a file. More...
 
#define zStrAddrListPrint   zStrListPrint
 

Typedefs

typedef struct __zStrListCell zStrListCell
 
typedef struct __zStrList zStrList
 
typedef zStrList zStrAddrList
 list of addresses of strings. More...
 
typedef zStrListCell zStrAddrListCell
 

Functions

zStrListCellzStrListAdd (zStrList *list, char *str)
 add a string to the head of a list of strings. More...
 
void zStrListCellFree (zStrListCell *cell)
 free a cell of a list of strings. More...
 
void zStrListDestroy (zStrList *list)
 destroy a list of strings. More...
 
void zStrListGetPtr (zStrList *strlist, int n,...)
 get pointers to strings of a list. More...
 
zStrListCellzStrListFind (zStrList *list, char *str)
 find a string in a list of strings. More...
 
zStrListCellzStrListFindAndAdd (zStrList *list, char *str)
 find a string in a list or strings, and if not found, add it to the head of the list. More...
 
void zStrListFPrint (FILE *fp, zStrList *list)
 print a list of strings to a file. More...
 
zStrAddrListCellzStrAddrListAdd (zStrAddrList *list, char *str)
 add an address of a string to a list from the tail. More...
 

Macro Definition Documentation

◆ zStrListPrint

#define zStrListPrint (   l)    zStrListFPrint( stdout, (l) )

◆ zStrAddrListDestroy

#define zStrAddrListDestroy (   l)    zListDestroy( zStrAddrListCell, l )

destroy a list of addresses of strings.

◆ zStrAddrListGetPtr

#define zStrAddrListGetPtr   zStrListGetPtr

get pointers to strings of a list.

◆ zStrAddrListFPrint

#define zStrAddrListFPrint   zStrListFPrint

print a list of strings to a file.

◆ zStrAddrListPrint

#define zStrAddrListPrint   zStrListPrint

Typedef Documentation

◆ zStrListCell

typedef struct __zStrListCell zStrListCell

◆ zStrList

typedef struct __zStrList zStrList

◆ zStrAddrList

list of addresses of strings.

Each cell of a list of this class only stores addresses of the specified strings that is allocated elsewhere in the memory space.

◆ zStrAddrListCell

Function Documentation

◆ zStrListAdd()

zStrListCell* zStrListAdd ( zStrList list,
char *  str 
)

add a string to the head of a list of strings.

◆ zStrListCellFree()

void zStrListCellFree ( zStrListCell cell)

free a cell of a list of strings.

◆ zStrListDestroy()

void zStrListDestroy ( zStrList list)

destroy a list of strings.

◆ zStrListGetPtr()

void zStrListGetPtr ( zStrList strlist,
int  n,
  ... 
)

get pointers to strings of a list.

◆ zStrListFind()

zStrListCell* zStrListFind ( zStrList list,
char *  str 
)

find a string in a list of strings.

◆ zStrListFindAndAdd()

zStrListCell* zStrListFindAndAdd ( zStrList list,
char *  str 
)

find a string in a list or strings, and if not found, add it to the head of the list.

◆ zStrListFPrint()

void zStrListFPrint ( FILE *  fp,
zStrList list 
)

print a list of strings to a file.

◆ zStrAddrListAdd()

zStrAddrListCell* zStrAddrListAdd ( zStrAddrList list,
char *  str 
)

add an address of a string to a list from the tail.