util.h File Reference

#include "sgmldefs.h"
#include <sys/types.h>

Data Structures

struct  icharbuf
struct  ocharbuf

Defines

#define add_icharbuf(buf, chr)
#define add_ocharbuf(buf, chr)
#define istrlen(s1)   strlen((char const *)(s1))
#define istreq(s1, s2)   (strcmp((char const *)(s1),(char const *)(s2))==0)

Functions

int istrlen (const ichar *s)
icharistrdup (const ichar *s)
icharistrcpy (ichar *d, const ichar *s)
icharistrupper (ichar *s)
icharistrlower (ichar *s)
int istrprefix (const ichar *pref, const ichar *s)
int istreq (const ichar *s1, const ichar *s2)
int istrcaseeq (const ichar *s1, const ichar *s2)
int istrncaseeq (const ichar *s1, const ichar *s2, int len)
int istrhash (const ichar *t, int tsize)
int istrcasehash (const ichar *t, int tsize)
icharistrchr (const ichar *s, int c)
int istrtol (const ichar *s, long *val)
void * sgml_malloc (size_t size)
void * sgml_calloc (size_t n, size_t size)
void sgml_free (void *mem)
void * sgml_realloc (void *old, size_t size)
void sgml_nomem (void)
int check_for_error_socket ()
icharbufnew_icharbuf (void)
void free_icharbuf (icharbuf *buf)
void __add_icharbuf (icharbuf *buf, int chr)
void del_icharbuf (icharbuf *buf)
void terminate_icharbuf (icharbuf *buf)
void empty_icharbuf (icharbuf *buf)
int ostrlen (const ochar *s)
ocharostrdup (const ochar *s)
ocharbufnew_ocharbuf (void)
void free_ocharbuf (ocharbuf *buf)
void __add_ocharbuf (ocharbuf *buf, int chr)
void del_ocharbuf (ocharbuf *buf)
void terminate_ocharbuf (ocharbuf *buf)
void empty_ocharbuf (ocharbuf *buf)
const char * str_summary (const char *s, int len)
char * str2ring (const char *in)
char * ringallo (size_t)
icharload_sgml_file_to_charp (const char *file, int normalise_rsre, int *len)

Define Documentation

#define add_icharbuf buf,
chr   ) 
 

Value:

do { if ( buf->size < buf->allocated ) \
               buf->data[buf->size++] = chr; \
             else \
               __add_icharbuf(buf, chr); \
           } while(0)

#define add_ocharbuf buf,
chr   ) 
 

Value:

do { if ( buf->size < buf->allocated ) \
               buf->data[buf->size++] = chr; \
             else \
               __add_ocharbuf(buf, chr); \
           } while(0)

#define istreq s1,
s2   )     (strcmp((char const *)(s1),(char const *)(s2))==0)
 

#define istrlen s1   )     strlen((char const *)(s1))
 


Function Documentation

void __add_icharbuf icharbuf buf,
int  chr
 

void __add_ocharbuf ocharbuf buf,
int  chr
 

int check_for_error_socket  ) 
 

void del_icharbuf icharbuf buf  ) 
 

void del_ocharbuf ocharbuf buf  ) 
 

void empty_icharbuf icharbuf buf  ) 
 

void empty_ocharbuf ocharbuf buf  ) 
 

void free_icharbuf icharbuf buf  ) 
 

void free_ocharbuf ocharbuf buf  ) 
 

int istrcaseeq const ichar s1,
const ichar s2
 

int istrcasehash const ichar t,
int  tsize
 

ichar* istrchr const ichar s,
int  c
 

ichar* istrcpy ichar d,
const ichar s
 

ichar* istrdup const ichar s  ) 
 

int istreq const ichar s1,
const ichar s2
 

int istrhash const ichar t,
int  tsize
 

int istrlen const ichar s  ) 
 

ichar* istrlower ichar s  ) 
 

int istrncaseeq const ichar s1,
const ichar s2,
int  len
 

int istrprefix const ichar pref,
const ichar s
 

int istrtol const ichar s,
long *  val
 

ichar* istrupper ichar s  ) 
 

ichar* load_sgml_file_to_charp const char *  file,
int  normalise_rsre,
int len
 

icharbuf* new_icharbuf void   ) 
 

ocharbuf* new_ocharbuf void   ) 
 

ochar* ostrdup const ochar s  ) 
 

int ostrlen const ochar s  ) 
 

char* ringallo size_t   ) 
 

void* sgml_calloc size_t  n,
size_t  size
 

void sgml_free void *  mem  ) 
 

void* sgml_malloc size_t  size  ) 
 

void sgml_nomem void   ) 
 

void* sgml_realloc void *  old,
size_t  size
 

char* str2ring const char *  in  ) 
 

const char* str_summary const char *  s,
int  len
 

void terminate_icharbuf icharbuf buf  ) 
 

void terminate_ocharbuf ocharbuf buf  ) 
 


Generated on Wed Jul 26 13:26:56 2006 for XSB by  doxygen 1.4.5