From 039bf2e7e5b8e0a35867b6f00641a351a95d4fbc Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Tue, 6 Jan 2009 16:57:35 +0000 Subject: Correct return value when we can't find a charset in inputstream constructor. Add new API to enable on-the-fly changing of the input charset. This is only possible if no data has been read from the stream. svn path=/trunk/libparserutils/; revision=5969 --- include/parserutils/input/inputstream.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/parserutils/input') diff --git a/include/parserutils/input/inputstream.h b/include/parserutils/input/inputstream.h index 9c0be7d..fe67aeb 100644 --- a/include/parserutils/input/inputstream.h +++ b/include/parserutils/input/inputstream.h @@ -169,6 +169,10 @@ static inline void parserutils_inputstream_advance( /* Read the document charset */ const char *parserutils_inputstream_read_charset( parserutils_inputstream *stream, uint32_t *source); +/* Change the document charset */ +parserutils_error parserutils_inputstream_change_charset( + parserutils_inputstream *stream, + const char *enc, uint32_t source); #endif -- cgit v1.2.3