aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
AgeCommit message (Collapse)AuthorFilesLines
2019-04-13Fix integer conversion warningsDavid Robillard1-6/+7
2019-04-13Suppress spurious floating point conversion warningDavid Robillard1-10/+4
This is defined by the standard to work with floating point expressions, the warning is a quirk of glibc.
2019-04-13Add serd_new_boolean()David Robillard1-0/+7
2019-04-13WIP: Add modelDavid Robillard1-0/+7
2019-04-13Rename SerdType to SerdNodeTypeDavid Robillard1-3/+3
The old name has become ambiguous with the expanded scope of serd.
2019-04-13Clean up and expose base64 implementationDavid Robillard1-2/+1
2019-04-13Add serd_node_compare()David Robillard1-0/+25
2019-04-13Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-4/+12
2019-04-13Add SerdNodes class for storing a cache of nodesDavid Robillard1-1/+1
2019-04-13Remove 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.
2019-04-13Shorten node constructor namesDavid Robillard1-62/+75
2019-04-13Add debug checks for node paddingDavid Robillard1-8/+40
2019-04-13Zero node padding before passing to reader sinksDavid Robillard1-0/+25
2019-04-13Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-26/+65
2019-04-13Separate base64 implementationDavid Robillard1-34/+6
2019-04-13Clean up node construction APIDavid Robillard1-65/+81
2019-04-13Clean up includes and improve source file separationDavid Robillard1-3/+6
2019-04-13Add blank node APIDavid Robillard1-0/+14
2019-04-13Make serd_node_new_literal take datatype as a nodeDavid Robillard1-6/+8
2019-04-13Bring read/write interface closer to C standardDavid Robillard1-8/+8
2019-04-13Clean up and separate internal headersDavid Robillard1-6/+4
2019-04-13Merge datatype and/or language into nodeDavid Robillard1-11/+118
This moves closer to the sord API, and is more convenient in most cases.
2019-04-13Make nodes opaqueDavid Robillard1-71/+101
2019-04-13Use opaque node APIDavid Robillard1-4/+11
2019-04-13Add node accessor APIDavid Robillard1-0/+24
2019-04-13Use char* for strings in public APIDavid Robillard1-29/+28
The constant casting just makes user code a mess, for no benefit.
2019-04-13Remove useless character countingDavid Robillard1-20/+14
2019-04-13Use SerdBuffer for mutable buffersDavid Robillard1-8/+9
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2019-01-06Fix serd_node_new_decimal() on WindowsDavid Robillard1-1/+1
2019-01-05Use lround() instead of sketchy offset and castDavid Robillard1-1/+1
2019-01-05Fix 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