aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
AgeCommit message (Collapse)AuthorFilesLines
2021-03-08Add support for converting literals to canonical formDavid Robillard1-1/+1
2021-03-08Fix various warnings and conversion issuesDavid Robillard1-7/+4
2021-03-08Add serd_node_compare()David Robillard1-0/+25
2021-03-08Add support for parsing variablesDavid Robillard1-1/+2
This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries.
2021-03-08WIP: Make Writer always write to a ByteSinkDavid Robillard1-0/+1
2021-03-08Make serd_uri_string_length() precise and add it to public APIDavid Robillard1-22/+8
2021-03-08Add serd_new_real_file_uri()David Robillard1-0/+47
2021-03-08Make it possible to allocate nodes with CURIE datatypesDavid Robillard1-6/+8
2021-03-08Remove double allocations in serd_env_expand()David Robillard1-17/+64
2021-03-08Move local URI utility functionsDavid Robillard1-28/+28
2021-03-08Split up serd_internal.hDavid Robillard1-0/+1
2021-03-08Align node allocationsDavid Robillard1-4/+6
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