aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2011-12-27Warn on invalid unicode character and replace (fix #796).David Robillard1-7/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@279 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-26Escape non-printable ASCII characters in ASCII output (fix #795).David Robillard1-1/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@278 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25Near 100% branch coverage.David Robillard7-104/+77
git-svn-id: http://svn.drobilla.net/serd/trunk@277 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-25100% test coverage.David Robillard5-85/+62
git-svn-id: http://svn.drobilla.net/serd/trunk@276 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Remove pointless check.David Robillard2-6/+1
Gracefully handle NULL strings in serd_node_new_uri_from_string(). git-svn-id: http://svn.drobilla.net/serd/trunk@272 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Allow digit as first character of prefixed name suffix (match latest Turtle ↵David Robillard1-20/+14
spec). Improve env.c test coverage. Add test case for ticket #734. git-svn-id: http://svn.drobilla.net/serd/trunk@271 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Move serd_test.c to tests/ so it doesn't show up in test coverage output.David Robillard1-181/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@270 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Support file://localhost/foo URIs in serd_uri_to_path().David Robillard2-15/+37
Support Windows file://c:/foo URIs in serd_uri_to_path() on all platforms. 100% test coverage (by line) for uri.c. git-svn-id: http://svn.drobilla.net/serd/trunk@269 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Clean up path writing logic in serd_uri_serialise.David Robillard1-30/+26
git-svn-id: http://svn.drobilla.net/serd/trunk@268 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Separate remove_dot_segments from serd_uri_resolve.David Robillard1-62/+73
git-svn-id: http://svn.drobilla.net/serd/trunk@267 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Improve URI resolution to cover most of the abnormal cases from RFC3986.David Robillard1-9/+32
Improve test coverage of uri.c. git-svn-id: http://svn.drobilla.net/serd/trunk@266 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-24Test serd_strlen and serd_strerror.David Robillard2-0/+28
git-svn-id: http://svn.drobilla.net/serd/trunk@265 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-23Escape ASCII control characters in output (e.g. fix problems with stringDavid Robillard1-8/+9
literals that start with a backspace). git-svn-id: http://svn.drobilla.net/serd/trunk@263 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-23Add serd_file_sink for the common case of writing to a FILE* stream.David Robillard2-8/+10
git-svn-id: http://svn.drobilla.net/serd/trunk@262 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-21Remove trailing whitespace.David Robillard2-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@261 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-19Add serd_strtod(), serd_node_new_decimal(), and serd_node_new_integer() forDavid Robillard4-0/+277
locale-independent numeric node parsing/serialising. git-svn-id: http://svn.drobilla.net/serd/trunk@260 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-16Remove debug print.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@259 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-15Remove peek_string, use exactly 1 page as a read buffer.David Robillard2-108/+86
git-svn-id: http://svn.drobilla.net/serd/trunk@256 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Use memcmp instead of strcmp for serd_node_equals.David Robillard1-2/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@255 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Make bulk writer internal and inlinable to avoid function call overhead in ↵David Robillard4-151/+154
the writer. git-svn-id: http://svn.drobilla.net/serd/trunk@254 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12More parser micro-optimization.David Robillard1-47/+48
git-svn-id: http://svn.drobilla.net/serd/trunk@253 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Remove eat_byte correctness checks for known-correct bytes in optimized builds.David Robillard1-70/+77
git-svn-id: http://svn.drobilla.net/serd/trunk@252 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Remove branch for EOF detection in eat_byte.David Robillard2-10/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@251 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Use common uri_to_path code.David Robillard1-16/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@249 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Reuse write context node memory where possible.David Robillard2-34/+55
git-svn-id: http://svn.drobilla.net/serd/trunk@248 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Fix memory error introduced a few commits ago.David Robillard1-2/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@247 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-12Add serdi -f option to avoid qualifying URIs.David Robillard1-4/+15
Rename serdi -B option to -b. Only resolve URIs against base if input is Turtle. git-svn-id: http://svn.drobilla.net/serd/trunk@246 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Fix debug build without --stack-check.David Robillard1-0/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@245 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Move all #ifdef gunk to serd_internal.h.David Robillard8-53/+50
Centralise file open and buffer allocation to localize platform tweaks. git-svn-id: http://svn.drobilla.net/serd/trunk@244 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Use posix_fadvise to advise about sequential file access.David Robillard2-1/+17
git-svn-id: http://svn.drobilla.net/serd/trunk@243 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Add SerdBulkSink for writing bulk output and corresponding serdi -B option.David Robillard4-14/+119
git-svn-id: http://svn.drobilla.net/serd/trunk@242 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Fix string length calculation.David Robillard1-3/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@241 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Align read buffer to page boundary if posix_memalign is available.David Robillard1-1/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@240 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Shrink code.David Robillard1-5/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@239 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Improve write performance by doing bulk writes for unescaped substrings.David Robillard1-0/+16
git-svn-id: http://svn.drobilla.net/serd/trunk@238 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Simply reader by using a stack of SerdNode rather than weird internal types.David Robillard1-250/+204
git-svn-id: http://svn.drobilla.net/serd/trunk@237 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Better invalid string character handling.David Robillard1-10/+40
git-svn-id: http://svn.drobilla.net/serd/trunk@236 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-11Report reason for failure to open file in serdi.David Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@233 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-10Tolerate invalid characters in string literals by replacing with theDavid Robillard1-5/+28
Unicode replacement character. git-svn-id: http://svn.drobilla.net/serd/trunk@232 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-11-04Move serd_strlen and serd_strerror to string.c and document both in "String ↵David Robillard2-26/+25
Utilities" section. git-svn-id: http://svn.drobilla.net/serd/trunk@229 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-09-29Tidy.David Robillard5-54/+58
git-svn-id: http://svn.drobilla.net/serd/trunk@218 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-09-27Add serd_env_set_prefix_from_strings for convenience.David Robillard1-0/+14
Fix configure --debug. git-svn-id: http://svn.drobilla.net/serd/trunk@217 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-08-21Gracefully handle NULL reader sinks.David Robillard2-11/+51
Add serd_strerror. Fix erroneously equal SERD_ERR_BAD_SYNTAX and SERD_ERR_BAD_ARG. git-svn-id: http://svn.drobilla.net/serd/trunk@211 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-08-20Avoid writing illegal Turtle names as a result of URI qualifying (fix #734).David Robillard2-3/+40
git-svn-id: http://svn.drobilla.net/serd/trunk@210 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-07-26Fix pretty printing of successive blank descriptions, i.e. "] , [".David Robillard1-3/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@209 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-06-19Fix abbreviation flags for blank nodes within lists (fix ticket #719).David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@206 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-06-19Fix abbreviation of repeated predicates with blank objects, and abbreviation ↵David Robillard1-2/+4
memory errors (hopefully fix ticket #710). Add example test from ticket #710 (as of this revision, this graph, tests/test-blank-cont.ttl, correctly serialises with serdi -i turtle -o turtle, though the indentation is a bit off...). git-svn-id: http://svn.drobilla.net/serd/trunk@205 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24More picky URI to path conversionDavid Robillard1-1/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@193 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24Remove unused object component of write context.David Robillard1-9/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@192 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-05-24Add serd_uri_to_path to API.David Robillard2-26/+27
Remove unused SERD_ANON_END statement flag. git-svn-id: http://svn.drobilla.net/serd/trunk@191 490d8e77-9747-427b-9fa3-0b8f29cee8a0