/* Returns the position of first occurrence of the pattern or UINT_MAX if no occurrence was found.  */
unsigned int textsearch_find_continuous(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)
/* Returns the position of first occurrence of the pattern or UINT_MAX if no occurrence was found.  */
unsigned int textsearch_find_continuous(struct ts_config *conf, struct ts_state *state, const void *data, unsigned int len)
{
	struct ts_linear_state *st = (struct ts_linear_state *) state->cb;
	conf->get_next_block = get_linear_data;
	st->data = data;
	st->len = len;
	return textsearch_find(conf, state);
}