summaryrefslogtreecommitdiff
path: root/src/input/inputstream.c
Commit message (Collapse)AuthorAgeFilesLines
* Actually handle byte order marks in streams marked as utf16 or utf32John Mark Bell2011-07-191-13/+48
| | | | svn path=/trunk/libparserutils/; revision=12608
* Internalise the internal symbol names.Daniel Silverstone2011-01-261-7/+7
| | | | svn path=/trunk/libparserutils/; revision=11493
* Fix bug where any encoding specified when creating an input stream would be ↵John Mark Bell2010-10-231-8/+18
| | | | | | | | replaced by UTF-8 if there was no charset detection callback provided, too. Tidy up the logic in this area, and add more commentary so it's clear. svn path=/trunk/libparserutils/; revision=10899
* Correctly handle case where all of the following are true:John Mark Bell2009-07-251-3/+17
| | | | | | | | | 1) There's outstanding data to be read 2) We haven't read the first chunk of data 3) We've recieved EOF 4) There's insufficient input data to detect the charset svn path=/trunk/libparserutils/; revision=8789
* Lose garbage todoJohn Mark Bell2009-04-011-3/+0
| | | | svn path=/trunk/libparserutils/; revision=7025
* Ensure that parserutils_inputstream_peek(_slow)? have API documentation.John Mark Bell2009-01-091-1/+2
| | | | svn path=/trunk/libparserutils/; revision=6008
* Silence doxygen warnings.John Mark Bell2009-01-091-1/+1
| | | | svn path=/trunk/libparserutils/; revision=6007
* Correct return value when we can't find a charset in inputstream constructor.John Mark Bell2009-01-061-14/+62
| | | | | | 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
* Change API of inputstream_peek(_slow) to return errors. Joy.John Mark Bell2009-01-061-18/+26
| | | | svn path=/trunk/libparserutils/; revision=5965
* Make input filter correctly return _BADENCODING.John Mark Bell2009-01-061-2/+1
| | | | svn path=/trunk/libparserutils/; revision=5964
* What to do with errors when reading from the buffer?John Mark Bell2008-11-091-0/+3
| | | | svn path=/trunk/libparserutils/; revision=5658
* Return errors from constructors and destructors.John Mark Bell2008-11-081-46/+57
| | | | svn path=/trunk/libparserutils/; revision=5652
* Make iconv-based filtering produce correct output when encountering encoding ↵John Mark Bell2008-06-281-1/+2
| | | | | | | | errors. Fix inputstream_peek_slow to flag OOD when the buffer fill routine produces no new data. svn path=/trunk/libparserutils/; revision=4474
* Update filter's input encoding when it's been auto-detected.John Mark Bell2008-06-281-0/+12
| | | | svn path=/trunk/libparserutils/; revision=4471
* Import parser construction utility libraryJohn Mark Bell2008-05-011-0/+477
svn path=/trunk/libparserutils/; revision=4111