aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
AgeCommit message (Collapse)AuthorFilesLines
2019-01-05Add serd_new_boolean()David Robillard1-0/+7
2018-12-31WIP: Add modelDavid Robillard1-0/+7
2018-12-31Rename SerdType to SerdNodeTypeDavid Robillard1-3/+3
The old name has become ambiguous with the expanded scope of serd.
2018-12-31Add serd_node_compare()David Robillard1-0/+28
2018-12-31Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-4/+12
2018-12-31Add SerdNodes class for storing a cache of nodesDavid Robillard1-1/+1
2018-12-31Remove escape parameter from serd_new_file_uriDavid Robillard1-2/+2
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2018-12-31Shorten node constructor namesDavid Robillard1-62/+75
2018-12-31Add debug checks for node paddingDavid Robillard1-8/+40
2018-12-31Zero node padding before passing to reader sinksDavid Robillard1-0/+25
2018-12-30Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-26/+65
2018-12-30Separate base64 implementationDavid Robillard1-34/+6
2018-12-30Clean up node construction APIDavid Robillard1-65/+81
2018-12-30Clean up includes and improve source file separationDavid Robillard1-3/+6
2018-12-30Add blank node APIDavid Robillard1-0/+14
2018-12-30Make serd_node_new_literal take datatype as a nodeDavid Robillard1-6/+8
2018-12-30Bring read/write interface closer to C standardDavid Robillard1-8/+8
2018-12-30Clean up and separate internal headersDavid Robillard1-6/+4
2018-12-30Merge datatype and/or language into nodeDavid Robillard1-11/+118
This moves closer to the sord API, and is more convenient in most cases.
2018-12-30Make nodes opaqueDavid Robillard1-71/+101
2018-12-30Use opaque node APIDavid Robillard1-4/+11
2018-12-30Add node accessor APIDavid Robillard1-0/+24
2018-12-30Use char* for strings in public APIDavid Robillard1-29/+28
The constant casting just makes user code a mess, for no benefit.
2018-12-30Remove useless character countingDavid Robillard1-20/+14
2018-12-30Use SerdBuffer for mutable buffersDavid Robillard1-8/+9
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2018-12-30Use lround() instead of sketchy offset and castDavid Robillard1-1/+1
2018-12-30Fix unsorted includesDavid Robillard1-3/+2
2018-09-30Fix calloc argument orderDavid Robillard1-1/+1
2018-07-14Fix length of base64 encoded nodesDavid Robillard1-1/+1
2018-06-15Remove redundant SERD_API declarationsDavid Robillard1-13/+0
2017-07-09Add serd_node_from_substring()David Robillard1-1/+17
This allows creating nodes in-place from substrings of other strings to allow zero-copy serialization from existing delimited buffers.
2017-06-30Fix various clang-tidy issuesDavid Robillard1-4/+4
2016-07-31Fix compilation with mingwDavid Robillard1-2/+6
2016-07-10Add serd_node_new_relative_uri()David Robillard1-0/+26
2016-07-10Shrink codeDavid Robillard1-5/+3
2016-07-09Fix construction of URIs with UTF-8 charactersDavid Robillard1-7/+5
2015-10-07Update copyright datesDavid Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@500 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2015-04-04Fix serializing fractional decimals that would round up.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@489 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-10-03Remove dependence on fmax() to avoid portability issues.David Robillard1-2/+9
git-svn-id: http://svn.drobilla.net/serd/trunk@476 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-08-08Update copyright dates.David Robillard1-1/+1
git-svn-id: http://svn.drobilla.net/serd/trunk@467 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2014-04-11Minor hardening.David Robillard1-3/+7
git-svn-id: http://svn.drobilla.net/serd/trunk@459 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-12-23Windows compatibility fixes.David Robillard1-0/+5
git-svn-id: http://svn.drobilla.net/serd/trunk@405 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-12-21Fix crash when serd_node_new_decimal is called with infinity or NaN.David Robillard1-0/+4
git-svn-id: http://svn.drobilla.net/serd/trunk@401 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-08-08Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes ↵David Robillard1-7/+7
-Wmissing-prototypes. git-svn-id: http://svn.drobilla.net/serd/trunk@374 490d8e77-9747-427b-9fa3-0b8f29cee8a0
2012-03-10Add serd_writer_set_root_uri(), root parameter toDavid Robillard1-1/+1
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 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 Robillard1-0/+62
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-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