aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Clean up base64 node construction and access APIDavid Robillard1-0/+29
2023-12-02Clean up numeric node construction and access APIDavid Robillard3-14/+111
2023-12-02[WIP] Use exess for reading and writing numeric and binary literalsDavid Robillard4-275/+96
2023-12-02Move syntax name/extension utilities to public APIDavid Robillard2-50/+64
2023-12-02Improve reader error handlingDavid Robillard3-137/+167
2023-12-02Set flags directly when reading literal nodesDavid Robillard1-64/+43
2023-12-02Add debug checks for node paddingDavid Robillard2-13/+37
2023-12-02Zero node padding before passing to reader sinksDavid Robillard5-2/+41
2023-12-02Remove datatype and language from reader contextDavid Robillard2-40/+32
2023-12-02Simplify stack management by popping in bulk at higher levelsDavid Robillard4-139/+55
Since all memory used by the reader is POD in the stack, there is no benefit to forcing code to explicitly pop everything pushed to the stack, since any function can record an offset and pop back down to it regardless of what its callers pushed if it knows that it does not need those items. This is slightly more efficient (due to avoiding many pop calls), but also more resilient since "leaks" at deeper levels of recursion get nuked by some caller regardless of what was pushed. This should help prevent future regressions like f6437f606 (Fix memory consumption when reading documents).
2023-12-02Use a fixed-size reader stackDavid Robillard8-199/+273
2023-12-02Simplify reader interfaceDavid Robillard5-189/+106
2023-12-02Add SerdSink interface and hide implementationsDavid Robillard7-81/+179
2023-12-02Bring read/write interface closer to the C standardDavid Robillard8-57/+66
2023-12-02Add serd_new_boolean()David Robillard1-0/+8
2023-12-02Simplify literal construction APIDavid Robillard1-31/+61
2023-12-02Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-30/+68
2023-12-02Simplify node construction APIDavid Robillard5-158/+171
2023-12-02Merge datatype/language into nodeDavid Robillard5-73/+171
This moves closer to the sord API, and is more convenient in most cases.
2023-12-02Simplify URI API and implementationDavid Robillard8-267/+259
2023-12-02Add serd_node_uri_view()David Robillard1-0/+12
2023-12-02Add serd_node_string_view()David Robillard1-0/+9
2023-12-02Align node allocationsDavid Robillard3-6/+46
2023-12-02Make nodes opaqueDavid Robillard9-315/+363
2023-12-02Add node accessor APIDavid Robillard1-0/+24
2023-12-02Shorten node constructor namesDavid Robillard3-29/+27
2023-12-02Rename string view fieldsDavid Robillard5-72/+72
2023-12-02Use more human-readable status codesDavid Robillard10-121/+129
2023-12-02Add version constants to public headerDavid Robillard2-4/+7
2023-12-02Split up public API headerDavid Robillard20-47/+66
2023-12-02Remove "get" from accessor namesDavid Robillard3-6/+6
2023-12-02Rename function types for consistencyDavid Robillard7-36/+36
2023-12-02Rename SerdStyle to SerdWriterFlagsDavid Robillard2-38/+38
2023-12-02Rename SerdType to SerdNodeTypeDavid Robillard4-21/+24
The old name will be even more ambiguous with the increased scope.
2023-12-02Rename SerdURI to SerdURIViewDavid Robillard6-64/+66
2023-12-02Rename SerdChunk to SerdStringViewDavid Robillard4-15/+15
2023-12-02Add SerdBuffer type for mutable buffersDavid Robillard3-22/+20
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2023-12-02Use char* for strings in public APIDavid Robillard16-252/+228
The constant casting just makes user code a mess, for no benefit.
2023-12-02Remove support for reading Turtle named inline nodes extensionDavid Robillard1-20/+0
2023-12-02Remove escape parameter from serd_node_new_file_uriDavid Robillard2-4/+3
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2023-12-02Remove useless character countingDavid Robillard7-79/+43
2023-12-02Remove serd_uri_to_path()David Robillard2-27/+2
2023-10-22Serd 0.32.0v0.32.0David Robillard1-1/+1
2023-09-22Fix potential realloc leaksDavid Robillard2-6/+12
2023-09-22Remove unused includeDavid Robillard1-1/+0
2023-05-08Avoid use of strtoul()David Robillard3-9/+16
This function is overkill for the simple cases actually needed here, and pretty slow anyway.
2023-05-04Fix whitespaceDavid Robillard1-2/+2
2023-05-03Make serd_reader_read_chunk() work with NQuadsDavid Robillard3-2/+7
2023-05-03Factor out read_nquads_statement()David Robillard1-42/+54
2023-05-03Remove redundant wrapper functionDavid Robillard1-7/+1