aboutsummaryrefslogtreecommitdiffstats
path: root/serd/serd.h
AgeCommit message (Collapse)AuthorFilesLines
2020-10-27Add serd_env_write_prefixes()David Robillard1-0/+7
2020-10-27Add serd_node_compare()David Robillard1-0/+11
2020-10-27Use simpler names for statement flagsDavid Robillard1-5/+5
2020-10-27Simplify streaming API and improve pretty printingDavid Robillard1-8/+5
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-10-27Add SerdNodes class for storing a cache of nodesDavid Robillard1-0/+65
2020-10-27Add serd_env_copy() and serd_env_equals()David Robillard1-0/+14
2020-10-27Separate ByteSink from WriterDavid Robillard1-4/+3
2020-10-27Expose SerdByteSink in public APIDavid Robillard1-0/+42
2020-10-27Remove serd_reader_set_default_graph()David Robillard1-12/+0
2020-10-27Simplify writer style optionsDavid Robillard1-5/+4
2020-10-27Separate style enum from style flags typesDavid Robillard1-1/+6
2020-10-27Automatically finish reader on destructionDavid Robillard1-0/+5
2020-10-27Make SerdSink opaqueDavid Robillard1-11/+52
2020-10-27Simplify SerdEnv APIDavid Robillard1-24/+6
2020-10-27Add cursor to statementDavid Robillard1-0/+7
This allows the file and position of statements to be used in sinks, for example for more helpful error reporting outside the parser.
2020-10-27Add SerdCursor to public APIDavid Robillard1-8/+77
2020-10-27Remove escape parameter from serd_new_file_uriDavid Robillard1-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.
2020-10-27Shorten node constructor namesDavid Robillard1-23/+60
2020-10-27Make statement sink take a statement rather than nodesDavid Robillard1-6/+3
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 Robillard1-0/+60
2020-10-27Add SerdStatementDavid Robillard1-0/+48
2020-10-27Move syntax name/extension utilities to public APIDavid Robillard1-0/+35
2020-10-27Move SerdField to public APIDavid Robillard1-0/+10
2020-10-27Use a fixed-size reader stackDavid Robillard1-2/+6
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 Robillard1-4/+20
2020-10-27Add serd_world_get_blank()David Robillard1-0/+10
2020-10-27Clean up node construction APIDavid Robillard1-50/+52
2020-10-27Hide fopen wrapper and use reader interface consistentlyDavid Robillard1-11/+3
2020-10-27Add blank node APIDavid Robillard1-0/+10
2020-10-27Make serd_node_new_literal take datatype as a nodeDavid Robillard1-1/+3
2020-10-27Add SerdWorld for shared library stateDavid Robillard1-26/+45
2020-10-27Add SerdSink interface and hide individual function implementationsDavid Robillard1-49/+19
2020-10-27Bring read/write interface closer to C standardDavid Robillard1-21/+23
2020-10-27Merge datatype and/or language into nodeDavid Robillard1-8/+30
This moves closer to the sord API, and is more convenient in most cases.
2020-10-27Simplify reader interfaceDavid Robillard1-37/+18
2020-10-27Remove serd_uri_to_path()David Robillard1-11/+0
2020-10-27Remove SERD_NOTHING node typeDavid Robillard1-7/+0
2020-10-27Make nodes opaqueDavid Robillard1-46/+29
2020-10-27Add node accessor APIDavid Robillard1-0/+28
2020-10-27Remove "get" from accessor namesDavid Robillard1-4/+3
2020-10-27Make serd_strtod API const-correctDavid Robillard1-3/+5
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 Robillard1-13/+13
2020-10-27Use char* for strings in public APIDavid Robillard1-45/+45
The constant casting just makes user code a mess, for no benefit.
2020-10-27Remove useless character countingDavid Robillard1-5/+3
2020-10-27Add SerdBuffer type for mutable buffersDavid Robillard1-6/+14
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2020-09-27Update stale copyright datesDavid Robillard1-1/+1
2020-08-14Suppress Wzero-as-null-pointer-constant in header for GCC as wellDavid Robillard1-5/+5
2020-08-14Reorder declarations to put node constructors togetherDavid Robillard1-16/+16
2020-07-21Suppress Wzero-as-null-pointer-constant in headerDavid Robillard1-0/+7
For convenience of C++ projects that include the C header.
2019-01-05Remove ancient MSVC workaround for stdbool.hDavid Robillard1-2/+1