aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2012-03-29Don't break relative URIs with up-references when parsing a document with no ↵David Robillard2-7/+9
base URI. git-svn-id: http://svn.drobilla.net/serd/trunk@342 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-28Strip duplicate blank lines.David Robillard1-1/+0
git-svn-id: http://svn.drobilla.net/serd/trunk@341 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-27Delete trailing whitespace.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@340 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-27Don't emit a ; at the end of anonymous descriptions.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@339 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-18Add serd_reader_set_default_graph() for reading a file as a named graph.David Robillard1-1/+17
git-svn-id: http://svn.drobilla.net/serd/trunk@338 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-18Tolerate NULL URI parameter in serd_env_get_base_uri().David Robillard1-1/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@337 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Add serd_writer_set_root_uri(), root parameter toDavid Robillard5-115/+188
serd_uri_serialise_relative(), and -r option to serdi, to enable writing URIs with up references (../) within a parent namespace. Resolve dot segments in serd_uri_resolve() instead of at write time. git-svn-id: http://svn.drobilla.net/serd/trunk@336 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Trim redundant case.David Robillard1-3/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@335 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Fix compilation in VC++.David Robillard2-4/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@334 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add escape parameter to serd_node_new_file_uri().David Robillard1-2/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@333 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Make serd_node_from_string tolerate NULL.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@332 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08serd_node_new_uri_from_path => serd_node_new_file_uri.David Robillard1-3/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@331 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-08Add serd_writer_get_env().David Robillard5-96/+313
Add serd_node_new_uri_from_path() and serd_file_uri_parse() and implement proper URI to/from path hex escaping, etc. Add serd_uri_serialise_relative() for making URIs relative to a base where possible (by chopping a common prefix and adding dot segments). Make URIs serialised by the writer properly escape characters. git-svn-id: http://svn.drobilla.net/serd/trunk@330 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-03Add serd_chunk_sink for easy writing to a string.David Robillard1-0/+19
git-svn-id: http://svn.drobilla.net/serd/trunk@329 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-03Fix reading of empty files (e.g. /dev/null) test case.David Robillard2-8/+8
git-svn-id: http://svn.drobilla.net/serd/trunk@328 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-01Tolerate NULL endptr in serd_strtod.David Robillard1-1/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@327 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-29Handle files and strings that start with a UTF-8 Byte Order Mark (fix #814).David Robillard1-1/+15
git-svn-id: http://svn.drobilla.net/serd/trunk@326 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-28Fix serialisation of decimals like 10.0, 20.0, etc.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@325 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Add prefix to generated node IDs as well, to avoid clashing when reading ↵David Robillard1-8/+13
multiple documents into one model. git-svn-id: http://svn.drobilla.net/serd/trunk@324 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Trim code.David Robillard1-4/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@322 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Report read error if both "genid" and "docid" IDs are found in the same ↵David Robillard1-7/+13
document, to prevent silent merging of distinct blank nodes. git-svn-id: http://svn.drobilla.net/serd/trunk@320 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Make -p actually work as advertised.David Robillard1-17/+13
git-svn-id: http://svn.drobilla.net/serd/trunk@319 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Remove dead code.David Robillard1-8/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@318 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Trim code.David Robillard1-16/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@317 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Further isolate collection writing stuff.David Robillard1-34/+24
Trim code. git-svn-id: http://svn.drobilla.net/serd/trunk@316 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Avoid comparing against NS_XSD several times per node.David Robillard1-6/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@315 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Tidy.David Robillard1-7/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@314 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Print command name in serdi error messages.David Robillard3-51/+33
Trim code. git-svn-id: http://svn.drobilla.net/serd/trunk@313 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Remove odd assertion.David Robillard1-2/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@312 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Trim some fat by taking advantage of ReadContext for statement emission.David Robillard1-16/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@310 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Fix collection parsing code to not leak stack space.David Robillard4-183/+151
Collection parsing now truly uses O(1) memory. Trim some fat. git-svn-id: http://svn.drobilla.net/serd/trunk@309 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Fix collection writing memory leaks.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@308 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Break collection writing out into a simple separate case to avoid confusing ↵David Robillard1-22/+24
the triple writing code. git-svn-id: http://svn.drobilla.net/serd/trunk@307 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Use iterative algorithm for collection parsing.David Robillard1-59/+52
git-svn-id: http://svn.drobilla.net/serd/trunk@306 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-20Implement pretty-printing for collections.David Robillard2-94/+203
git-svn-id: http://svn.drobilla.net/serd/trunk@305 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-05Update to r65/autowaf and waf-1.6.10.David Robillard1-2/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@302 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-01Fix jumps past variable initialization.David Robillard1-4/+6
git-svn-id: http://svn.drobilla.net/serd/trunk@299 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-18Use consistent *_config.h rather than *-config.h.David Robillard1-1/+1
Fix amalgamation. git-svn-id: http://svn.drobilla.net/serd/trunk@298 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-18Make serd_node_new_integer take int64_t instead of long.David Robillard2-6/+6
Turns out long is sometimes 32-bits even on modern 64-bit machines on certain insane Operating Systems... git-svn-id: http://svn.drobilla.net/serd/trunk@297 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Avoid non-portable %zu (offset is of dubious value in this case anyway).David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@295 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Fix compilation on sane platforms.David Robillard3-5/+7
git-svn-id: http://svn.drobilla.net/serd/trunk@292 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Support compilation as C++ under MSVC++David Robillard8-46/+60
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Update copyright dates.David Robillard8-9/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@285 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-14Lint.David Robillard4-10/+10
git-svn-id: http://svn.drobilla.net/serd/trunk@283 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-08Update man page.David Robillard1-4/+4
Sort command line options in help and man page. Fix doxygen warnings about undocumented parameters. git-svn-id: http://svn.drobilla.net/serd/trunk@282 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-06Remove unused parameter.David Robillard1-7/+7
git-svn-id: http://svn.drobilla.net/serd/trunk@281 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2011-12-30Add serd_node_new_blob and serd_base64_decode for handling arbitrary binaryDavid Robillard3-0/+94
data via base64 encoding. git-svn-id: http://svn.drobilla.net/serd/trunk@280 490d8e77-9747-427b-9fa3-0b8f29cee8a0
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