#include "define.h"
Include dependency graph for vbuf.c:
Go to the source code of this file.
Defines | |
#define | ASSERT(x,) { if( !(x) ) DIE(( __VA_ARGS__)); } |
Functions | |
void | pst_vbresize (pst_vbuf *vb, size_t len) |
DESTRUCTIVELY grow or shrink buffer. | |
size_t | pst_vbavail (pst_vbuf *vb) |
void | open_targets (const char *charset) |
size_t | sbcs_conversion (pst_vbuf *dest, const char *inbuf, int iblen, iconv_t conversion) |
void | pst_unicode_close () |
int | utf16_is_terminated (const char *str, int length) |
pst_vbuf * | pst_vballoc (size_t len) |
void | pst_vbset (pst_vbuf *vb, void *b, size_t len) |
set vbuf b size=len, resize if necessary, relen = how much to over-allocate | |
void | pst_vbappend (pst_vbuf *vb, void *b, size_t len) |
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) |
Variables | |
int | unicode_up = 0 |
iconv_t | i16to8 |
const char * | target_charset = NULL |
int | target_open_from = 0 |
int | target_open_to = 0 |
iconv_t | i8totarget = (iconv_t)-1 |
iconv_t | target2i8 = (iconv_t)-1 |
|
|
|
Definition at line 42 of file vbuf.c. References DEBUG_WARN, i8totarget, target2i8, target_charset, target_open_from, and target_open_to. Referenced by pst_vb_8bit2utf8(), and pst_vb_utf8to8bit(). |
|
Definition at line 95 of file vbuf.c. References i16to8, i8totarget, target2i8, target_charset, target_open_from, target_open_to, and unicode_up. Referenced by 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:
|
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:
|
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:
|
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:
|
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:
|
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:
|
Definition at line 35 of file vbuf.c. References pst_varbuf::b, pst_varbuf::blen, pst_varbuf::buf, pst_varbuf::dlen, and pst_vbuf. |
|
DESTRUCTIVELY grow or shrink buffer.
Definition at line 19 of file vbuf.c. References pst_varbuf::b, pst_varbuf::blen, pst_varbuf::buf, pst_varbuf::dlen, and pst_vbuf. Referenced by pst_vb_utf16to8(), pst_vballoc(), pst_vbset(), and sbcs_conversion(). |
|
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:
|
Definition at line 66 of file vbuf.c. References pst_varbuf::b, pst_varbuf::blen, conversion, DEBUG_WARN, pst_varbuf::dlen, ICONV_CONST, pst_unicode_init(), pst_vbgrow(), pst_vbresize(), and pst_vbuf. Referenced by pst_vb_8bit2utf8(), and pst_vb_utf8to8bit(). |
Here is the call graph for this function:
|
Definition at line 109 of file vbuf.c. References DEBUG_WARN. Referenced by pst_vb_utf16to8(). |
|
Definition at line 5 of file vbuf.c. Referenced by pst_unicode_close(), pst_unicode_init(), and pst_vb_utf16to8(). |
|
Definition at line 9 of file vbuf.c. Referenced by open_targets(), pst_unicode_close(), and pst_vb_utf8to8bit(). |
|
Definition at line 10 of file vbuf.c. Referenced by open_targets(), pst_unicode_close(), and pst_vb_8bit2utf8(). |
|
Definition at line 6 of file vbuf.c. Referenced by open_targets(), and pst_unicode_close(). |
|
Definition at line 7 of file vbuf.c. Referenced by open_targets(), and pst_unicode_close(). |
|
Definition at line 8 of file vbuf.c. Referenced by open_targets(), and pst_unicode_close(). |
|
Definition at line 4 of file vbuf.c. Referenced by pst_unicode_close(), and pst_unicode_init(). |