summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Make sure we elide trailing non-characters when matching aliasesDaniel Silverstone2010-12-041-0/+4
| | | | svn path=/trunk/libparserutils/; revision=10973
* Remove init/final code and turn aliases into static data structure. r=vinceDaniel Silverstone2010-12-047-537/+80
| | | | svn path=/trunk/libparserutils/; revision=10961
* 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
* Ensure we use the canonical charset name when invoking iconv_open()John Mark Bell2009-10-121-1/+2
| | | | svn path=/trunk/libparserutils/; revision=9628
* 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
* Make magic static.John Mark Bell2009-07-251-1/+1
| | | | svn path=/trunk/libparserutils/; revision=8788
* Less brain-dead constant for the benefit of ARM platforms.John Mark Bell2009-07-021-2/+2
| | | | svn path=/trunk/libparserutils/; revision=8268
* Remove dependency on a library providing ntohl/htonl.John Mark Bell2009-07-026-60/+60
| | | | svn path=/trunk/libparserutils/; revision=8267
* Inevitably, Windows requires winsock.h instead of the BSD stack headers.John Mark Bell2009-07-025-0/+20
| | | | svn path=/trunk/libparserutils/; revision=8263
* Reasons I hate TCPIPLibs:John Mark Bell2009-06-205-86/+96
| | | | | | | | | | | | 1) You need to include sys/types.h yourself 2) You need to ensure that netinet/in.h is included before arpa/inet.h 3) Neither arpa/inet.h nor netinet/in.h define htonl/ntohl -- it's in machine/endian.h which, fortunately, is included from sys/types.h Add a bunch of explicit casts to uint32_t to the results of calls to ntohl/htonl to appease Norcroft's "implicit narrowing cast" warning. svn path=/trunk/libparserutils/; revision=7891
* Lose dead codeJohn Mark Bell2009-05-271-5/+0
| | | | svn path=/trunk/libparserutils/; revision=7579
* Lose a bunch of trailing commas.John Mark Bell2009-04-151-1/+1
| | | | | | GCC 2.95 compatibility. svn path=/trunk/libparserutils/; revision=7094
* Remove chunkarray implementation. It's unused.John Mark Bell2009-04-153-261/+1
| | | | svn path=/trunk/libparserutils/; revision=7093
* Lose garbage todoJohn Mark Bell2009-04-011-3/+0
| | | | svn path=/trunk/libparserutils/; revision=7025
* Port to new buildsystemJohn Mark Bell2009-03-246-273/+13
| | | | svn path=/trunk/libparserutils/; revision=6854
* Add ability to retrieve vector length. Fix missing note in iteration apiDaniel Silverstone2009-02-151-0/+23
| | | | svn path=/trunk/libparserutils/; revision=6527
* Remove dict, hash and rbtree from libparserutilsDaniel Silverstone2009-02-145-1383/+1
| | | | svn path=/trunk/libparserutils/; revision=6512
* 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-095-5/+9
| | | | 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-062-18/+31
| | | | svn path=/trunk/libparserutils/; revision=5965
* Make input filter correctly return _BADENCODING.John Mark Bell2009-01-062-5/+6
| | | | svn path=/trunk/libparserutils/; revision=5964
* C89François Revel2008-12-221-2/+3
| | | | svn path=/trunk/libparserutils/; revision=5920
* Fix build on 32bit platforms.John Mark Bell2008-12-021-2/+2
| | | | svn path=/trunk/libparserutils/; revision=5868
* Chunked arrays: Pack length of entries into array as a prefix to the data.John Mark Bell2008-12-014-55/+53
| | | | | | Limit maximum length of data items stored in hash/chunked array to 2^16-1. svn path=/trunk/libparserutils/; revision=5858
* Make things clearer through use of temporary variablesJohn Mark Bell2008-11-301-15/+19
| | | | svn path=/trunk/libparserutils/; revision=5853
* New datastructures:John Mark Bell2008-11-305-2/+581
| | | | | | | | | + Chunked array + Hash table (open addressing) Constify parameter to parserutils_stack_push svn path=/trunk/libparserutils/; revision=5850
* Pedantic whitespace changesJohn Mark Bell2008-11-305-12/+8
| | | | svn path=/trunk/libparserutils/; revision=5842
* C89François Revel2008-11-291-5/+6
| | | | svn path=/trunk/libparserutils/; revision=5840
* C89François Revel2008-11-296-19/+33
| | | | svn path=/trunk/libparserutils/; revision=5839
* C89François Revel2008-11-295-8/+23
| | | | svn path=/trunk/libparserutils/; revision=5838
* Return errors from dictionary constructor/destructorJohn Mark Bell2008-11-091-12/+21
| | | | svn path=/trunk/libparserutils/; revision=5673
* Fix build when iconv filter is enabledJohn Mark Bell2008-11-091-2/+2
| | | | svn path=/trunk/libparserutils/; revision=5661
* What to do with errors when reading from the buffer?John Mark Bell2008-11-091-0/+3
| | | | svn path=/trunk/libparserutils/; revision=5658
* Fix double free of filter read codec when resetting to an unsupported encoding.John Mark Bell2008-11-091-6/+19
| | | | svn path=/trunk/libparserutils/; revision=5657
* Return errors from constructors and destructors.John Mark Bell2008-11-0817-299/+431
| | | | svn path=/trunk/libparserutils/; revision=5652
* Add API to vector to permit peeking.John Mark Bell2008-10-181-0/+20
| | | | svn path=/trunk/libparserutils/; revision=5596
* ASCII charset codec.John Mark Bell2008-09-243-1/+529
| | | | svn path=/trunk/libparserutils/; revision=5429
* Purge remaining traces of iconv codec.John Mark Bell2008-09-071-7/+0
| | | | svn path=/trunk/libparserutils/; revision=5284
* Tidy up CFLAGS/LDFLAGSJohn Mark Bell2008-09-053-3/+3
| | | | svn path=/trunk/libparserutils/; revision=5249
* Remove the iconv codec. It serves no purpose.John Mark Bell2008-09-052-684/+1
| | | | svn path=/trunk/libparserutils/; revision=5248
* Fix encoding. Sigh.John Mark Bell2008-09-052-4/+6
| | | | svn path=/trunk/libparserutils/; revision=5241
* Fix stupid.John Mark Bell2008-09-042-4/+4
| | | | | | Testcase for cp1252. Currently fails because of spurious nonsense at the end of the output. May be a test driver bug. svn path=/trunk/libparserutils/; revision=5237
* Fix bugs.John Mark Bell2008-09-042-2/+2
| | | | svn path=/trunk/libparserutils/; revision=5236
* Extended 8bit coded. Mostly for Windows-125n support. Also needs testing.John Mark Bell2008-09-044-1/+765
| | | | svn path=/trunk/libparserutils/; revision=5235
* ISO-8859-n codec. This needs some testing.John Mark Bell2008-09-045-1/+831
| | | | svn path=/trunk/libparserutils/; revision=5233
* Move the location of the utf8 buffer every time we're asked for a character ↵John Mark Bell2008-08-131-0/+24
| | | | | | | | in debug mode. This leaks memory lots, deliberately. svn path=/trunk/libparserutils/; revision=5081
* Fix valgrind's aliascmp() warning.Andrew Sidwell2008-08-111-3/+4
| | | | svn path=/trunk/libparserutils/; revision=5026
* Add parenthesesJohn Mark Bell2008-08-111-5/+5
| | | | svn path=/trunk/libparserutils/; revision=5025
* Fix a logic error, and make a test clearer & more efficient as per jmb's review.Andrew Sidwell2008-08-091-5/+3
| | | | svn path=/trunk/libparserutils/; revision=4973