src/tokeniser/tokeniser.c
hubbub_error hubbub_tokeniser_insert_chunk(hubbub_tokeniser *tokeniser,
		const uint8_t *data, size_t len)
{
	parserutils_error perror;

	if (tokeniser == NULL || data == NULL)
		return HUBBUB_BADPARM;

	perror = parserutils_buffer_append(tokeniser->insert_buf, data, len);
	if (perror != PARSERUTILS_OK)
		return hubbub_error_from_parserutils_error(perror);

	return HUBBUB_OK;
}
/**
 * Insert a chunk of data into the input stream.
 *
 * Inserts the given data into the input stream ready for parsing but
 * does not cause any additional processing of the input.
 *
 * \param tokeniser  Tokeniser instance
 * \param data       Data to insert (UTF-8 encoded)
 * \param len        Length, in bytes, of data
 * \return HUBBUB_OK on success, appropriate error otherwise
 */
Insert a chunk of data into the input stream.
Inserts the given data into the input stream ready for parsing but
does not cause any additional processing of the input.

\param tokeniser  Tokeniser instance
\param data       Data to insert (UTF-8 encoded)
\param len        Length, in bytes, of data
\return HUBBUB_OK on success, appropriate error otherwise
Insert a chunk of data into the input stream . Inserts the given data into the input stream ready for parsing but does not cause any additional processing of the input . \ param tokeniser Tokeniser instance \ param data Data to insert ( UTF - 8 encoded ) \ param len Length in bytes of data \ return HUBBUB_OK on success appropriate error otherwise
hubbub_error hubbub_tokeniser_insert_chunk(hubbub_tokeniser *tokeniser,
		const uint8_t *data, size_t len)
{
	parserutils_error perror;
	if (tokeniser == NULL || data == NULL)
		return HUBBUB_BADPARM;
	perror = parserutils_buffer_append(tokeniser->insert_buf, data, len);
	if (perror != PARSERUTILS_OK)
		return hubbub_error_from_parserutils_error(perror);
	return HUBBUB_OK;
}
hubbub_error hubbub_tokeniser_insert_chunk ( hubbub_tokeniser * tokeniser , const uint8_t * data , size_t len ) { parserutils_error perror ; if ( tokeniser == NULL || data == NULL ) return HUBBUB_BADPARM ; perror = parserutils_buffer_append ( tokeniser -> insert_buf , data , len ) ; if ( perror != PARSERUTILS_OK ) return hubbub_error_from_parserutils_error ( perror ) ; return HUBBUB_OK ; }
Insert a chunk of data into the input stream.
Insert a chunk of data into the input stream .