73 const char *cp = *(
const char **) vp;
78 *(
const char **)vp = cp;
141 else if (strchr(t->
comment, ch))
150 while (ch && ch != end_ch)
char * quote_tokens_begin
yaz_tok_get_byte_t get_byte_func
yaz_tok_parse_t yaz_tok_parse_buf(yaz_tok_cfg_t t, const char *buf)
yaz_tok_cfg_t yaz_tok_cfg_create(void)
static void unget_byte(yaz_tok_parse_t tp, int ch)
const char * yaz_tok_parse_string(yaz_tok_parse_t tp)
static int get_byte(yaz_tok_parse_t tp)
static int read_buf(void **vp)
void yaz_tok_parse_destroy(yaz_tok_parse_t tp)
void yaz_tok_cfg_single_tokens(yaz_tok_cfg_t t, const char *simple)
void yaz_tok_cfg_destroy(yaz_tok_cfg_t t)
int yaz_tok_move(yaz_tok_parse_t tp)
yaz_tok_parse_t yaz_tok_parse_create(yaz_tok_cfg_t t, yaz_tok_get_byte_t h, void *vp)
Header with public definitions about YAZ' tokenizer.
struct yaz_tok_parse * yaz_tok_parse_t
struct yaz_tok_cfg * yaz_tok_cfg_t
int(* yaz_tok_get_byte_t)(void **vp)
void wrbuf_destroy(WRBUF b)
destroy WRBUF and its buffer
void wrbuf_rewind(WRBUF b)
empty WRBUF content (length of buffer set to 0)
WRBUF wrbuf_alloc(void)
construct WRBUF
const char * wrbuf_cstr(WRBUF b)
returns WRBUF content as C-string
Header for WRBUF (growing buffer)
#define xstrdup(s)
utility macro which calls xstrdup_f
#define xfree(x)
utility macro which calls xfree_f
#define xmalloc(x)
utility macro which calls malloc_f