All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
strpool.h File Reference
This graph shows which files directly or indirectly include this file:

Data Structures

struct  strpool_s


typedef struct strpool_s strpool_t


const char * html_string (const char *str)
const char * make_string (char *token, char **end)
const char * quote_string (const char *str)
const char * save_string (const char *str)
 Smart strdup. More...
int strpool_addstr (strpool_t *strpool, const char *str)
strpool_tstrpool_build (const char *strings, int size)
void strpool_delete (strpool_t *strpool)
strpool_tstrpool_new (void)

Typedef Documentation

typedef struct strpool_s strpool_t

Function Documentation

const char* html_string ( const char *  str)
const char* make_string ( char *  token,
char **  end 
const char* quote_string ( const char *  str)
const char* save_string ( const char *  str)

Smart strdup.

Create a unique copy of a string. If the same string has been seen before, does not create a new copy but rather returns the previously seen string.

strThe string to copy.
The unique copy of the string.
int strpool_addstr ( strpool_t strpool,
const char *  str 
strpool_t* strpool_build ( const char *  strings,
int  size 
void strpool_delete ( strpool_t strpool)
strpool_t* strpool_new ( void  )