#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 | |
int | skip_nl (char *s) |
int | find_nl (vstr *vs) |
void | unicode_init () |
void | unicode_close () |
int | utf16_is_terminated (const char *str, int length) |
size_t | vb_utf16to8 (vbuf *dest, const char *inbuf, int iblen) |
size_t | vb_utf8to8bit (vbuf *dest, const char *inbuf, int iblen, const char *charset) |
vbuf * | vballoc (size_t len) |
void | vbcheck (vbuf *vb) |
void | vbfree (vbuf *vb) |
void | vbclear (struct varbuf *vb) |
void | vbresize (struct varbuf *vb, size_t len) |
size_t | vbavail (vbuf *vb) |
void | vbgrow (struct varbuf *vb, size_t len) |
void | vbset (vbuf *vb, void *b, size_t len) |
void | vsskipws (vstr *vs) |
void | vbappend (struct varbuf *vb, void *b, size_t len) |
void | vbskip (struct varbuf *vb, size_t skip) |
void | vboverwrite (struct varbuf *vbdest, struct varbuf *vbsrc) |
vstr * | vsalloc (size_t len) |
char * | vsstr (vstr *vs) |
size_t | vslen (vstr *vs) |
void | vsfree (vstr *vs) |
void | vscharcat (vstr *vb, int ch) |
void | vsnprepend (vstr *vb, char *str, size_t len) |
void | vsskip (vstr *vs, size_t len) |
int | vsskipline (vstr *vs) |
int | vscatprintf (vstr *vs, char *fmt,...) |
int | vslast (vstr *vs) |
void | vs_printf (vstr *vs, char *fmt,...) |
void | vs_printfa (vstr *vs, char *fmt,...) |
void | vshexdump (vstr *vs, const char *b, size_t start, size_t stop, int ascii) |
void | vsset (vstr *vs, char *s) |
void | vsnset (vstr *vs, char *s, size_t n) |
void | vsgrow (vstr *vs, size_t len) |
size_t | vsavail (vstr *vs) |
void | vsnset16 (vstr *vs, char *s, size_t len) |
void | vscat (vstr *vs, char *str) |
int | vscmp (vstr *vs, char *str) |
void | vsncat (vstr *vs, char *str, size_t len) |
void | vstrunc (vstr *v, size_t off) |
Variables | |
int | unicode_up = 0 |
iconv_t | i16to8 |
const char * | target_charset = NULL |
iconv_t | i8totarget |
|
|
|
Definition at line 20 of file vbuf.c. References varstr::b, varstr::dlen, and vstr. Referenced by vsskipline(). |
|
Definition at line 8 of file vbuf.c. Referenced by vsskipline(). |
|
Definition at line 61 of file vbuf.c. References i16to8, i8totarget, target_charset, and unicode_up. Referenced by unicode_init(). |
|
Definition at line 49 of file vbuf.c. References i16to8, unicode_close(), and unicode_up. Referenced by pst_open(), vb_utf16to8(), and vb_utf8to8bit(). |
Here is the call graph for this function:
|
Definition at line 73 of file vbuf.c. References DEBUG_WARN, vshexdump(), and VSTR_STATIC. Referenced by vb_utf16to8(). |
Here is the call graph for this function:
|
Definition at line 93 of file vbuf.c. References ASSERT, varbuf::b, varbuf::blen, DEBUG_WARN, varbuf::dlen, i16to8, unicode_init(), unicode_up, utf16_is_terminated(), vbgrow(), vbresize(), and vbuf. Referenced by pst_parse_block(). |
Here is the call graph for this function:
|
Definition at line 126 of file vbuf.c. References varbuf::b, varbuf::blen, varbuf::dlen, i8totarget, target_charset, unicode_init(), vbgrow(), vbresize(), vbuf, and WARN. Referenced by write_body_part(). |
Here is the call graph for this function:
|
Definition at line 166 of file vbuf.c. References varbuf::blen, varbuf::buf, DIE, varbuf::dlen, vbresize(), and vbuf. Referenced by pst_parse_block(), vsalloc(), and write_body_part(). |
Here is the call graph for this function:
|
Definition at line 289 of file vbuf.c. References varbuf::b, varbuf::dlen, vbgrow(), and vbset(). |
Here is the call graph for this function:
|
Definition at line 217 of file vbuf.c. References varbuf::b, varbuf::blen, varbuf::buf, varbuf::dlen, and vbuf. |
|
Definition at line 180 of file vbuf.c. References ASSERT, varbuf::b, varbuf::blen, varbuf::buf, varbuf::dlen, and vbuf. |
|
Definition at line 196 of file vbuf.c. References vbresize(). |
Here is the call graph for this function:
|
Definition at line 189 of file vbuf.c. References varbuf::buf, and vbuf. Referenced by vsfree(). |
|
Definition at line 237 of file vbuf.c. References ASSERT, varbuf::b, varbuf::blen, varbuf::buf, DIE, varbuf::dlen, vbavail(), and vbresize(). |
Here is the call graph for this function:
|
Definition at line 311 of file vbuf.c. References varbuf::b, varbuf::blen, varbuf::dlen, and vbresize(). |
Here is the call graph for this function:
|
Definition at line 202 of file vbuf.c. References varbuf::b, varbuf::blen, varbuf::buf, and varbuf::dlen. |
|
Definition at line 269 of file vbuf.c. References varbuf::b, varbuf::dlen, vbresize(), and vbuf. Referenced by pst_parse_block(), and vbappend(). |
Here is the call graph for this function:
|
Definition at line 302 of file vbuf.c. References ASSERT, varbuf::b, and varbuf::dlen. |
|
Definition at line 447 of file vbuf.c. References varbuf::b, varbuf::blen, varbuf::dlen, vbresize(), vbuf, and vstr. |
Here is the call graph for this function:
|
Definition at line 476 of file vbuf.c. References varbuf::b, varstr::blen, varbuf::blen, varstr::dlen, varbuf::dlen, vbgrow(), vbuf, and vstr. Referenced by vshexdump(). |
Here is the call graph for this function:
|
|
Here is the call graph for this function:
|
|
Here is the call graph for this function:
|
|
Here is the call graph for this function:
|
Definition at line 402 of file vbuf.c. References varstr::b, varstr::blen, varbuf::blen, varstr::dlen, vbgrow(), vbuf, vsset(), and vstr. |
Here is the call graph for this function:
|
Definition at line 346 of file vbuf.c. References varbuf::b, varbuf::dlen, vbgrow(), vbuf, and vstr. |
Here is the call graph for this function:
|
|
|
|
Here is the call graph for this function:
|
|
Here is the call graph for this function:
|
Definition at line 504 of file vbuf.c. References vs_printfa(), and vstr. Referenced by utf16_is_terminated(). |
Here is the call graph for this function:
|
Definition at line 434 of file vbuf.c. References varstr::b, varstr::dlen, and vstr. |
|
|
Here is the call graph for this function:
|
Definition at line 585 of file vbuf.c. References ASSERT, varstr::b, varbuf::b, varstr::dlen, varbuf::dlen, vbgrow(), vbuf, and vstr. Referenced by vscat(). |
Here is the call graph for this function:
|
Definition at line 356 of file vbuf.c. References ASSERT, varstr::b, varbuf::b, varstr::dlen, varbuf::dlen, vbgrow(), vbuf, and vstr. |
Here is the call graph for this function:
|
Definition at line 541 of file vbuf.c. References varbuf::b, varbuf::dlen, vbresize(), vbuf, and vstr. Referenced by vsset(). |
Here is the call graph for this function:
|
Definition at line 562 of file vbuf.c. References varbuf::b, varbuf::dlen, vbresize(), vbuf, and vstr. |
Here is the call graph for this function:
|
Definition at line 535 of file vbuf.c. References vsnset(), and vstr. Referenced by vsalloc(), and vscatprintf(). |
Here is the call graph for this function:
|
|
Here is the call graph for this function:
|
Definition at line 378 of file vbuf.c. References varstr::b, varstr::dlen, find_nl(), skip_nl(), and vstr. |
Here is the call graph for this function:
|
Definition at line 278 of file vbuf.c. References varstr::b, varbuf::b, varstr::dlen, vbskip(), vbuf, and vstr. |
Here is the call graph for this function:
|
Definition at line 328 of file vbuf.c. References varstr::b, and vstr. Referenced by vslen(). |
|
Definition at line 598 of file vbuf.c. References varstr::b, varstr::dlen, and vstr. |
|
Definition at line 44 of file vbuf.c. Referenced by unicode_close(), unicode_init(), and vb_utf16to8(). |
|
Definition at line 46 of file vbuf.c. Referenced by unicode_close(), and vb_utf8to8bit(). |
|
Definition at line 45 of file vbuf.c. Referenced by unicode_close(), and vb_utf8to8bit(). |
|
Definition at line 43 of file vbuf.c. Referenced by unicode_close(), unicode_init(), and vb_utf16to8(). |