aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2020-06-21Clean up and expose base64 implementationDavid Robillard2-6/+128
2020-06-21Remove serd_env_foreach()David Robillard1-2/+4
2020-06-21Simplify reader test sinkDavid Robillard1-28/+23
2020-06-21Add stack overflow testsDavid Robillard1-0/+69
2020-06-21Improve node test coverageDavid Robillard1-0/+6
2020-06-21Add test for bad blank graph labelsDavid Robillard2-0/+9
2020-06-21Ensure serd_new_resolved_uri returns an absolute URI or NULLDavid Robillard1-1/+3
2020-06-21Simplify streaming API and improve pretty printingDavid Robillard3-2/+98
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes.
2020-06-21Add SerdNodes class for storing a cache of nodesDavid Robillard1-0/+92
2020-06-21Add serd_env_copy() and serd_env_equals()David Robillard1-0/+16
2020-06-21Separate ByteSink from WriterDavid Robillard1-3/+11
2020-06-21Remove serd_reader_set_default_graph()David Robillard1-9/+2
2020-06-21Add rooted URI resolution testDavid Robillard1-1/+2
2020-06-21Add test for reading chunksDavid Robillard1-0/+112
2020-06-21Make reader return failure when no statement is readDavid Robillard1-2/+2
2020-06-21Separate style enum from style flags typesDavid Robillard1-2/+2
2020-06-21Make SerdSink opaqueDavid Robillard1-8/+16
2020-06-21Simplify SerdEnv APIDavid Robillard1-23/+28
2020-06-21Add SerdCursor to public APIDavid Robillard1-0/+59
2020-06-21Remove escape parameter from serd_new_file_uriDavid Robillard1-9/+6
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-06-21Shorten node constructor namesDavid Robillard1-76/+85
2020-06-21Make statement sink take a statement rather than nodesDavid Robillard1-19/+12
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-06-21Clean up reader error handlingDavid Robillard1-5/+0
2020-06-21Use a fixed-size reader stackDavid Robillard1-3/+3
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-06-21Set datatypes on integer, decimal, and base64 nodesDavid Robillard1-7/+19
2020-06-21Add serd_world_get_blank()David Robillard1-0/+18
2020-06-21Clean up node construction APIDavid Robillard1-82/+119
2020-06-21Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-13/+11
2020-06-21Add blank node APIDavid Robillard1-0/+16
2020-06-21Make serd_node_new_literal take datatype as a nodeDavid Robillard1-3/+9
2020-06-21Add SerdWorld for shared library stateDavid Robillard1-5/+17
2020-06-21Add SerdSink interface and hide individual function implementationsDavid Robillard1-24/+20
2020-06-21Bring read/write interface closer to C standardDavid Robillard1-2/+2
2020-06-21Merge datatype and/or language into nodeDavid Robillard1-32/+59
This moves closer to the sord API, and is more convenient in most cases.
2020-06-21Simplify reader interfaceDavid Robillard1-2/+12
2020-06-21Remove serd_uri_to_path()David Robillard1-29/+0
2020-06-21Make nodes opaqueDavid Robillard1-160/+192
2020-06-21Add support for parsing NaN, INF, and -INFDavid Robillard1-0/+10
2020-06-21Make serd_strtod API const-correctDavid Robillard1-2/+3
This is an API breakage, but a minor one (particularly since NULL is allowed) that avoids the flaw in the C API.
2020-06-21Rename SerdChunk to SerdStringViewDavid Robillard1-2/+2
2020-06-21Use char* for strings in public APIDavid Robillard1-91/+87
The constant casting just makes user code a mess, for no benefit.
2020-06-21Remove useless character countingDavid Robillard1-19/+9
2020-06-21Use SerdBuffer for mutable buffersDavid Robillard1-4/+4
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2020-06-21Cleanup: Fix uninitialised variablesDavid Robillard1-4/+4
2020-06-21Cleanup: Avoid declaring multiple variables on a single lineDavid Robillard1-1/+2
2020-06-21Cleanup: Avoid malloc of 0 bytesDavid Robillard1-1/+1
2020-06-21Cleanup: Remove unnecessary storesDavid Robillard1-4/+3
2020-06-21Cleanup: Remove redundant castDavid Robillard1-1/+1
2020-06-21Clean up includesDavid Robillard1-4/+5
2019-12-14Fix function prototypeDavid Robillard1-1/+1