aboutsummaryrefslogtreecommitdiffstats
path: root/src/tokenizers/tokenizers.h
blob: 6b4bff5e034eee4e1b36ed746494dbfbad52f793 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef TOKENIZERS_H
#define TOKENIZERS_H

#include <sys/types.h>
#include "../config.h"

#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#include "../mem_pool.h"
#include "../fstring.h"
#include "../main.h"

/* Size for features pipe */
#define FEATURE_WINDOW_SIZE 5

typedef struct token_list_s {
	uint32_t h1;
	uint32_t h2;
	struct token_list_s *next;
} token_list_t;

/* Get next word from specified f_str_t buf */
f_str_t *get_next_word (f_str_t *buf, f_str_t *token);

#endif
/*
 * vi:ts=4
 */