aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard4-16/+12
Since characters are escaped because they are not valid characters in a URI, any use of this function without escaping is problematic at best.
2020-10-27Shorten node constructor namesDavid Robillard8-181/+305
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard6-58/+42
This makes the interface more extensible, towards associating more information with statements. The serd_sink_write_nodes wrapper remains so that user code does not need to allocate in order to write statement.
2020-10-27Add sink interfaceDavid Robillard3-0/+123
2020-10-27Add SerdStatementDavid Robillard4-0/+129
2020-10-27Expand datatype of literal nodes in serd_env_expand_nodeDavid Robillard1-1/+12
2020-10-27Move syntax name/extension utilities to public APIDavid Robillard4-50/+108
2020-10-27Move SerdField to public APIDavid Robillard2-46/+50
2020-10-27Improve reader error handlingDavid Robillard1-33/+38
2020-10-27Remove unnecessary parameterDavid Robillard1-8/+8
2020-10-27Set flags directly when reading literal nodesDavid Robillard1-51/+32
2020-10-27Improve push_byte() performanceDavid Robillard1-4/+4
2020-10-27Add debug checks for node paddingDavid Robillard2-8/+36
2020-10-27Zero node padding before passing to reader sinksDavid Robillard5-2/+39
2020-10-27Remove datatype and language from reader contextDavid Robillard2-26/+14
2020-10-27Simplify stack management by popping in bulk at higher levelsDavid Robillard4-98/+51
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.
2020-10-27Use a fixed-size reader stackDavid Robillard13-188/+240
This improves performance, and makes the reader more suitable for embedded or network-facing applications, at the cost of requiring the user to specify a maximum stack size.
2020-10-27Set datatypes on integer, decimal, and base64 nodesDavid Robillard4-38/+129
2020-10-27Add serd_world_get_blank()David Robillard4-2/+53
2020-10-27Clean up node construction APIDavid Robillard9-231/+323
2020-10-27Hide fopen wrapper and use reader interface consistentlyDavid Robillard11-193/+129
2020-10-27Add blank node APIDavid Robillard4-0/+40
2020-10-27Make serd_node_new_literal take datatype as a nodeDavid Robillard3-12/+21
2020-10-27Move error handling to worldDavid Robillard5-38/+43
2020-10-27Add SerdWorld for shared library stateDavid Robillard13-67/+172
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard8-136/+92
2020-10-27Bring read/write interface closer to C standardDavid Robillard11-85/+90
2020-10-27Merge datatype and/or language into nodeDavid Robillard8-95/+252
This moves closer to the sord API, and is more convenient in most cases.
2020-10-27Simplify reader interfaceDavid Robillard6-155/+120
2020-10-27Remove serd_uri_to_path()David Robillard5-65/+9
2020-10-27Remove SERD_NOTHING node typeDavid Robillard5-30/+1
2020-10-27Make nodes opaqueDavid Robillard10-408/+464
2020-10-27Use opaque node APIDavid Robillard4-55/+76
2020-10-27Add node accessor APIDavid Robillard2-0/+52
2020-10-27Remove "get" from accessor namesDavid Robillard6-15/+13
2020-10-27Add support for parsing NaN, INF, and -INFDavid Robillard2-4/+24
2020-10-27Make serd_strtod API const-correctDavid Robillard4-8/+12
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the standard C API.
2020-10-27Rename SerdChunk to SerdStringViewDavid Robillard7-30/+30
2020-10-27Use char* for strings in public APIDavid Robillard20-336/+321
The constant casting just makes user code a mess, for no benefit.
2020-10-27Remove useless character countingDavid Robillard10-91/+53
2020-10-27Add SerdBuffer type for mutable buffersDavid Robillard7-32/+47
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2020-10-27Add a test for reading strings with no trailing newlineDavid Robillard1-0/+23
2020-10-27Simplify reader byte reading interfaceDavid Robillard1-10/+3
This eliminates eat_byte() and the way it conflates the status of advancing the source with the current character, which can cause problems with custom sinks.
2020-10-27Update autowafDavid Robillard1-0/+0
2020-10-27Update autowafDavid Robillard2-2/+2
2020-09-27Serd 0.30.6v0.30.6David Robillard2-3/+3
2020-09-27Update stale copyright datesDavid Robillard5-5/+5
2020-09-26Update autowafDavid Robillard1-0/+0
2020-09-26Update autowafDavid Robillard1-0/+0
2020-08-16Use conventional short variable name for statusDavid Robillard1-8/+8