aboutsummaryrefslogtreecommitdiffstats
path: root/src/node.c
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Remove datatype arguments from integer and base64 constructorsDavid Robillard1-9/+11
2023-12-02Make SerdBuffer an output streamDavid Robillard1-3/+3
2023-12-02Factor out and expose serd_write_file_uri()David Robillard1-82/+3
2023-12-02Use Zix attributes directlyDavid Robillard1-7/+7
2023-12-02Add assertions for all non-null pointers in the public APIDavid Robillard1-2/+24
2023-12-02Make serd_uri_string_length() precise and add it to public APIDavid Robillard1-21/+6
2023-12-02Be precise about the meaning of node "length" and "size"David Robillard1-28/+22
2023-12-02Split up serd_internal.hDavid Robillard1-1/+1
2023-12-02Add serd_node_compare()David Robillard1-0/+27
2023-12-02Clean up base64 node construction and access APIDavid Robillard1-0/+29
2023-12-02Clean up numeric node construction and access APIDavid Robillard1-0/+104
2023-12-02[WIP] Use exess for reading and writing numeric and binary literalsDavid Robillard1-109/+77
2023-12-02Add debug checks for node paddingDavid Robillard1-8/+33
2023-12-02Zero node padding before passing to reader sinksDavid Robillard1-1/+29
2023-12-02Use a fixed-size reader stackDavid Robillard1-2/+0
2023-12-02Bring read/write interface closer to the C standardDavid Robillard1-9/+12
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 Robillard1-68/+83
2023-12-02Merge datatype/language into nodeDavid Robillard1-5/+114
This moves closer to the sord API, and is more convenient in most cases.
2023-12-02Simplify URI API and implementationDavid Robillard1-74/+48
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 Robillard1-6/+27
2023-12-02Make nodes opaqueDavid Robillard1-78/+106
2023-12-02Add node accessor APIDavid Robillard1-0/+24
2023-12-02Shorten node constructor namesDavid Robillard1-24/+22
2023-12-02Rename string view fieldsDavid Robillard1-4/+4
2023-12-02Split up public API headerDavid Robillard1-1/+4
2023-12-02Rename SerdType to SerdNodeTypeDavid Robillard1-4/+4
The old name will be even more ambiguous with the increased scope.
2023-12-02Rename SerdURI to SerdURIViewDavid Robillard1-19/+19
2023-12-02Add SerdBuffer type for mutable buffersDavid Robillard1-7/+7
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2023-12-02Use char* for strings in public APIDavid Robillard1-32/+31
The constant casting just makes user code a mess, for no benefit.
2023-12-02Remove 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.
2023-12-02Remove useless character countingDavid Robillard1-22/+14
2023-04-05Fix sign conversion warningsDavid Robillard1-1/+1
2023-04-05Update to clang-format 12David Robillard1-4/+4
2022-12-20Avoid using ASCII grave as a quoteDavid Robillard1-6/+6
2022-11-24Fix improper use of chunk sinkDavid Robillard1-4/+4
2022-11-15Fix implementation-defined integer conversionDavid Robillard1-1/+1
2022-11-14Add Windows path separator support to serd_node_new_file_uri()David Robillard1-4/+16
2022-10-23Use uppercase integer literal suffixesDavid Robillard1-2/+2
2022-08-31Adopt REUSE machine-readable licensing standardDavid Robillard1-15/+2
2021-06-30Move local URI utility functionsDavid Robillard1-28/+28
2021-05-31Make most function parameters constDavid Robillard1-26/+32
More const never hurts in general, but in particular this allows the compiler to make better nullability deductions, which reduces the amount of manual nullability casting required.
2021-05-31Remove "static inline" for functions in implementation filesDavid Robillard1-2/+2
This is just noise since these are static functions local to a C compilation unit.
2021-05-31Clean up switch case commentsDavid Robillard1-5/+5
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.