aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Add SerdNodes class for storing a cache of nodesDavid Robillard1-1/+0
2021-03-08Add numeric node construction and access APIDavid Robillard1-1/+63
2021-03-08Add serd_new_float() and serd_new_double()David Robillard1-0/+26
2021-03-08Add serd_new_boolean()David Robillard1-0/+8
2021-03-08Remove serd_node_align constantDavid Robillard1-10/+8
2021-03-08WIP: Use exess for reading and writing numeric and binary literalsDavid Robillard1-108/+82
2021-03-08Simplify literal construction APIDavid Robillard1-37/+74
2021-03-08Add debug checks for node paddingDavid Robillard1-8/+36
2021-03-08Zero node padding before passing to reader sinksDavid Robillard1-1/+29
2021-03-07Bring read/write interface closer to C standardDavid Robillard1-8/+8
2021-03-07Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-28/+54
2021-03-07Simplify node construction APIDavid Robillard1-65/+87
2021-03-07Simplify URI API and implementationDavid Robillard1-70/+51
2021-03-07Add serd_node_uri_view()David Robillard1-0/+12
2021-03-07Add serd_node_string_view()David Robillard1-0/+8
2021-03-07Merge datatype/language into nodeDavid Robillard1-17/+132
This moves closer to the sord API, and is more convenient in most cases.
2021-03-07Make nodes opaqueDavid Robillard1-74/+98
2021-03-07Add node accessor APIDavid Robillard1-0/+24
2021-03-07Shorten node constructor namesDavid Robillard1-20/+18
2021-03-07Rename SerdType to SerdNodeTypeDavid Robillard1-2/+2
The old name will be even more ambiguous with the increased scope.
2021-03-07Rename SerdURI to SerdURIViewDavid Robillard1-15/+17
2021-03-07Use char* for strings in public APIDavid Robillard1-28/+25
The constant casting just makes user code a mess, for no benefit.
2021-03-07Remove escape parameter from serd_node_new_file_uriDavid Robillard1-3/+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.
2021-03-07Remove useless character countingDavid Robillard1-22/+14
2021-03-07Add SerdBuffer type for mutable buffersDavid Robillard1-9/+9
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2021-01-10Avoid use of strcpyDavid Robillard1-3/+3
Again, really just skirting around warnings here, but this is faster anyway since we know what we're doing here and doing require any fine-grained null termination.
2021-01-09Avoid GCC warning about printed string overflowDavid Robillard1-9/+14
GCC seems to think there was a potential overflow here, but I don't see it. I think it just can't figure out that the printed text and the size both depend on the same variable. In any case, avoiding formatting functions here avoids the warning, and is probably faster anyway.
2021-01-09Avoid GCC warning about potential signed overflowDavid Robillard1-1/+1
2021-01-02Use email address instead of website for attributionDavid Robillard1-1/+1
2020-12-31Format all code with clang-formatDavid Robillard1-237/+256
2020-08-14Separate base64 implementationDavid Robillard1-33/+4
2020-08-14Use SerdNodeFlags type everywhereDavid Robillard1-7/+7
2020-08-14Clean up and separate internal headersDavid Robillard1-0/+3
2020-07-06Fix spurious semicolon warningsDavid Robillard1-5/+5
2020-07-06Fix format conversion warningsDavid Robillard1-1/+4
2020-06-21Clean up includesDavid Robillard1-1/+7
2019-10-27Fix integer conversion warningsDavid Robillard1-8/+8
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