aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Add SerdCursor to public APIDavid Robillard1-8/+11
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard1-1/+1
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2020-10-27Shorten node constructor namesDavid Robillard1-3/+3
2020-10-27Move syntax name/extension utilities to public APIDavid Robillard1-50/+5
2020-10-27Use a fixed-size reader stackDavid Robillard1-2/+17
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2020-10-27Clean up node construction APIDavid Robillard1-7/+4
2020-10-27Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-80/+19
2020-10-27Add SerdWorld for shared library stateDavid Robillard1-6/+8
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard1-6/+2
2020-10-27Bring read/write interface closer to C standardDavid Robillard1-4/+7
2020-10-27Simplify reader interfaceDavid Robillard1-8/+31
2020-10-27Remove serd_uri_to_path()David Robillard1-2/+8
2020-10-27Make nodes opaqueDavid Robillard1-6/+7
2020-10-27Use char* for strings in public APIDavid Robillard1-14/+13
The constant casting just makes user code a mess, for no benefit.
2020-09-27Update stale copyright datesDavid Robillard1-1/+1
2020-08-16Use conventional short variable name for statusDavid Robillard1-8/+8
2020-08-14Avoid absurd Windows warnings about "deprecated" POSIX functionsDavid Robillard1-2/+2
2020-08-14Clean up and separate internal headersDavid Robillard1-1/+24
2020-07-06Fix spurious semicolon warningsDavid Robillard1-2/+2
2020-06-21Clean up includesDavid Robillard1-4/+7
2019-03-16Set stdin and stdout to binary mode on Windows to preserve newlinesDavid Robillard1-0/+10
2019-01-05Fix unused parameter warningsDavid Robillard1-0/+2
2018-01-04Open files in binary mode to preserve line endings on WindowsDavid Robillard1-1/+1
2017-12-29Don't force ASCII for NQuadsDavid Robillard1-2/+1
2017-12-29Add serdi option to write ASCII outputDavid Robillard1-1/+6
2017-09-24Make serdi guess input syntax from extension if unspecifiedDavid Robillard1-2/+27
2017-09-24Make serdi syntax options case-insensitiveDavid Robillard1-20/+28
2017-02-07Remove comment fragment cruftDavid Robillard1-6/+1
2017-01-06Add support for reading TriGDavid Robillard1-5/+8
2017-01-05Add support for NQuadsDavid Robillard1-4/+6
2017-01-03Always escape file URIsDavid Robillard1-1/+1
2016-09-18Update copyright datesDavid Robillard1-2/+2
2016-05-29Fix handling of file I/O errorsDavid Robillard1-4/+8
2015-10-08Update copyright datesDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@505 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2015-10-07Update copyright datesDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@500 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2015-10-03Show serdi errors in standard formatDavid Robillard1-13/+21
git-svn-id: http://svn.drobilla.net/serd/trunk@493 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-12-10Configurable strict parsing to tolerate invalid URIs.David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@480 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-08-08Update copyright dates.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@467 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2013-03-30Add more tests from the new W3C Turtle test suite.David Robillard1-3/+3
Support crazy escaped NULL characters in literals. Fix incorrect round-trip serialization test command. git-svn-id: http://svn.drobilla.net/serd/trunk@446 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-08-08Fix incorrect prototype.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@373 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-07-05Add error callback to reader and writer for custom error reporting.David Robillard1-0/+15
Add -q option to serdi to suppress all non-data output, e.g. errors. Resolves #815. git-svn-id: http://svn.drobilla.net/serd/trunk@354 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-05-08Add incremental read interface suitable for reading from infinite streams.David Robillard1-3/+16
git-svn-id: http://svn.drobilla.net/serd/trunk@350 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-29Don't break relative URIs with up-references when parsing a document with no ↵David Robillard1-1/+1
base URI. git-svn-id: http://svn.drobilla.net/serd/trunk@342 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Add serd_writer_set_root_uri(), root parameter toDavid Robillard1-18/+23
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-08Add serd_writer_get_env().David Robillard1-1/+2
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-03Fix reading of empty files (e.g. /dev/null) test case.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@328 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-02-21Print command name in serdi error messages.David Robillard1-35/+25
Trim code. git-svn-id: http://svn.drobilla.net/serd/trunk@313 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Support compilation as C++ under MSVC++David Robillard1-2/+3
git-svn-id: http://svn.drobilla.net/serd/trunk@291 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-01-16Update copyright dates.David Robillard1-2/+2
git-svn-id: http://svn.drobilla.net/serd/trunk@285 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