YAZ 5.37.0
tokenizer.h File Reference

Header with public definitions about YAZ' tokenizer. More...

#include <yaz/nmem.h>

Go to the source code of this file.

Macros

#define YAZ_TOK_EOF   0
#define YAZ_TOK_ERROR   (-1)
#define YAZ_TOK_STRING   (-2)
#define YAZ_TOK_QSTRING   (-3)

Typedefs

typedef struct yaz_tok_cfgyaz_tok_cfg_t
typedef struct yaz_tok_parseyaz_tok_parse_t
typedef int(* yaz_tok_get_byte_t) (void **vp)

Functions

yaz_tok_cfg_t yaz_tok_cfg_create (void)
void yaz_tok_cfg_destroy (yaz_tok_cfg_t t)
void yaz_tok_cfg_single_tokens (yaz_tok_cfg_t t, const char *simple)
yaz_tok_parse_t yaz_tok_parse_buf (yaz_tok_cfg_t t, const char *buf)
yaz_tok_parse_t yaz_tok_parse_create (yaz_tok_cfg_t t, yaz_tok_get_byte_t h, void *vp)
void yaz_tok_parse_destroy (yaz_tok_parse_t tp)
int yaz_tok_move (yaz_tok_parse_t tp)
const char * yaz_tok_parse_string (yaz_tok_parse_t tp)

Detailed Description

Header with public definitions about YAZ' tokenizer.

Definition in file tokenizer.h.

Macro Definition Documentation

◆ YAZ_TOK_EOF

#define YAZ_TOK_EOF   0

◆ YAZ_TOK_ERROR

#define YAZ_TOK_ERROR   (-1)

Definition at line 39 of file tokenizer.h.

Referenced by yaz_tok_move(), and yaz_tok_parse_create().

◆ YAZ_TOK_QSTRING

#define YAZ_TOK_QSTRING   (-3)

Definition at line 41 of file tokenizer.h.

Referenced by yaz_tok_move().

◆ YAZ_TOK_STRING

#define YAZ_TOK_STRING   (-2)

Typedef Documentation

◆ yaz_tok_cfg_t

typedef struct yaz_tok_cfg* yaz_tok_cfg_t

Definition at line 43 of file tokenizer.h.

◆ yaz_tok_get_byte_t

typedef int(* yaz_tok_get_byte_t) (void **vp)

Definition at line 46 of file tokenizer.h.

◆ yaz_tok_parse_t

typedef struct yaz_tok_parse* yaz_tok_parse_t

Definition at line 44 of file tokenizer.h.

Function Documentation

◆ yaz_tok_cfg_create()

◆ yaz_tok_cfg_destroy()

◆ yaz_tok_cfg_single_tokens()

void yaz_tok_cfg_single_tokens ( yaz_tok_cfg_t t,
const char * simple )

◆ yaz_tok_move()

◆ yaz_tok_parse_buf()

yaz_tok_parse_t yaz_tok_parse_buf ( yaz_tok_cfg_t t,
const char * buf )

◆ yaz_tok_parse_create()

◆ yaz_tok_parse_destroy()

◆ yaz_tok_parse_string()

const char * yaz_tok_parse_string ( yaz_tok_parse_t tp)