#include "common.h"
Include dependency graph for vbuf.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Data Structures | |
struct | varbuf |
struct | varstr |
Defines | |
#define | SZ_MAX 4096 |
#define | VBUF_STATIC(x, y) static vbuf *x = NULL; if(!x) x = vballoc(y); |
#define | VSTR_STATIC(x, y) static vstr *x = NULL; if(!x) x = vsalloc(y); |
Typedefs | |
typedef varbuf | vbuf |
typedef varstr | vstr |
Functions | |
int | skip_nl (char *s) |
int | find_nl (vstr *vs) |
varbuf * | vballoc (size_t len) |
void | vbfree (vbuf *vb) |
void | vbclear (vbuf *vb) |
void | vbresize (vbuf *vb, size_t len) |
size_t | vbavail (vbuf *vb) |
void | vbdump (vbuf *vb) |
void | vbgrow (vbuf *vb, size_t len) |
void | vbset (vbuf *vb, void *data, size_t len) |
void | vbskipws (vbuf *vb) |
void | vbappend (vbuf *vb, void *data, size_t length) |
void | vbskip (vbuf *vb, size_t skip) |
void | vboverwrite (vbuf *vbdest, vbuf *vbsrc) |
vstr * | vsalloc (size_t len) |
char * | vsb (vstr *vs) |
size_t | vslen (vstr *vs) |
void | vsfree (vstr *vs) |
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 | vscat (vstr *vs, char *str) |
void | vsncat (vstr *vs, char *str, size_t len) |
void | vsnprepend (vstr *vs, char *str, size_t len) |
void | vsskip (vstr *vs, size_t len) |
int | vscmp (vstr *vs, char *str) |
void | vsskipws (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) |
int | vscatprintf (vstr *vs, char *fmt,...) |
void | vsvprintf (vstr *vs, char *fmt, va_list ap) |
void | vstrunc (vstr *vs, size_t off) |
int | vslast (vstr *vs) |
void | vscharcat (vstr *vs, int ch) |
void | unicode_init () |
void | unicode_close () |
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) |
int | vb_skipline (struct varbuf *vb) |
|
|
|
|
|
Definition at line 43 of file vbuf.h. Referenced by utf16_is_terminated(). |
|
Definition at line 39 of file vbuf.h. Referenced by pst_parse_block(), vb_utf16to8(), vb_utf8to8bit(), vballoc(), vbavail(), vbcheck(), vbfree(), vbset(), vs_printf(), vs_printfa(), vsavail(), vscatprintf(), vscharcat(), vsfree(), vsgrow(), vsncat(), vsnprepend(), vsnset(), vsnset16(), vsskip(), vsskipws(), and write_body_part(). |
|
Definition at line 40 of file vbuf.h. Referenced by find_nl(), vs_printf(), vs_printfa(), vsalloc(), vsavail(), vscat(), vscatprintf(), vscharcat(), vscmp(), vsfree(), vsgrow(), vshexdump(), vslast(), vslen(), vsncat(), vsnprepend(), vsnset(), vsnset16(), vsset(), vsskip(), vsskipline(), vsskipws(), vsstr(), and vstrunc(). |
|
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 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:
|
Referenced by pst_parse_block(). |
|
Definition at line 217 of file vbuf.c. References varbuf::b, varbuf::blen, varbuf::buf, varbuf::dlen, and vbuf. |
|
|
|
|
|
Definition at line 189 of file vbuf.c. References varbuf::buf, and vbuf. Referenced by vsfree(). |
|
Referenced by vb_utf16to8(), vb_utf8to8bit(), vbappend(), vs_printfa(), vscatprintf(), vscharcat(), vsgrow(), vsncat(), and vsnprepend(). |
|
|
|
Referenced by vb_utf16to8(), vb_utf8to8bit(), vballoc(), vbclear(), vbgrow(), vboverwrite(), vbset(), vs_printf(), vsnset(), and vsnset16(). |
|
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:
|
Referenced by vsskip(), and vsskipws(). |
|
|
|
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, varbuf::blen, varstr::blen, varbuf::dlen, varstr::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, varbuf::blen, varstr::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, varbuf::b, varstr::b, varbuf::dlen, varstr::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, varbuf::b, varstr::b, varbuf::dlen, varstr::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 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 278 of file vbuf.c. References varbuf::b, varstr::b, varstr::dlen, vbskip(), vbuf, and vstr. |
Here is the call graph for this function:
|
Definition at line 598 of file vbuf.c. References varstr::b, varstr::dlen, and vstr. |
|
|