Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

vbuf.h File Reference

#include "common.h"

Include dependency graph for vbuf.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Data Structures

struct  pst_varbuf

Typedefs

typedef pst_varbuf pst_vbuf

Functions

pst_vbufpst_vballoc (size_t len)
void pst_vbgrow (pst_vbuf *vb, size_t len)
void pst_vbset (pst_vbuf *vb, void *data, size_t len)
 set vbuf b size=len, resize if necessary, relen = how much to over-allocate
void pst_vbappend (pst_vbuf *vb, void *data, size_t length)
 append len bytes of b to vb, resize if necessary
void pst_unicode_init ()
size_t pst_vb_utf16to8 (pst_vbuf *dest, const char *inbuf, int iblen)
size_t pst_vb_utf8to8bit (pst_vbuf *dest, const char *inbuf, int iblen, const char *charset)
size_t pst_vb_8bit2utf8 (pst_vbuf *dest, const char *inbuf, int iblen, const char *charset)


Typedef Documentation

typedef struct pst_varbuf pst_vbuf
 

Definition at line 17 of file vbuf.h.

Referenced by pst_vb_8bit2utf8(), pst_vb_utf16to8(), pst_vb_utf8to8bit(), pst_vballoc(), pst_vbappend(), pst_vbavail(), pst_vbresize(), pst_vbset(), and sbcs_conversion().


Function Documentation

void pst_unicode_init  ) 
 

Definition at line 199 of file vbuf.c.

References DEBUG_WARN, i16to8, pst_unicode_close(), and unicode_up.

Referenced by pst_open(), pst_vb_utf16to8(), and sbcs_conversion().

Here is the call graph for this function:

size_t pst_vb_8bit2utf8 pst_vbuf dest,
const char *  inbuf,
int  iblen,
const char *  charset
 

Definition at line 251 of file vbuf.c.

References open_targets(), pst_vbuf, sbcs_conversion(), and target2i8.

Here is the call graph for this function:

size_t pst_vb_utf16to8 pst_vbuf dest,
const char *  inbuf,
int  iblen
 

Definition at line 210 of file vbuf.c.

References pst_varbuf::b, pst_varbuf::blen, DEBUG_WARN, pst_varbuf::dlen, i16to8, ICONV_CONST, pst_unicode_init(), pst_vbgrow(), pst_vbresize(), pst_vbuf, and utf16_is_terminated().

Here is the call graph for this function:

size_t pst_vb_utf8to8bit pst_vbuf dest,
const char *  inbuf,
int  iblen,
const char *  charset
 

Definition at line 243 of file vbuf.c.

References i8totarget, open_targets(), pst_vbuf, and sbcs_conversion().

Here is the call graph for this function:

pst_vbuf* pst_vballoc size_t  len  ) 
 

Definition at line 127 of file vbuf.c.

References pst_varbuf::blen, pst_varbuf::buf, DIE, pst_varbuf::dlen, pst_malloc(), pst_vbresize(), and pst_vbuf.

Here is the call graph for this function:

void pst_vbappend pst_vbuf vb,
void *  data,
size_t  length
 

append len bytes of b to vb, resize if necessary

Definition at line 187 of file vbuf.c.

References pst_varbuf::b, pst_varbuf::dlen, memcpy(), pst_vbgrow(), pst_vbset(), and pst_vbuf.

Here is the call graph for this function:

void pst_vbgrow pst_vbuf vb,
size_t  len
 

Referenced by pst_vb_utf16to8(), pst_vbappend(), and sbcs_conversion().

void pst_vbset pst_vbuf vb,
void *  data,
size_t  len
 

set vbuf b size=len, resize if necessary, relen = how much to over-allocate

Definition at line 177 of file vbuf.c.

References pst_varbuf::b, pst_varbuf::dlen, memcpy(), pst_vbresize(), and pst_vbuf.

Referenced by pst_vbappend().

Here is the call graph for this function:


Generated on Fri Dec 11 08:47:00 2009 for 'LibPst' by  doxygen 1.3.9.1