Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-10-27 | WIP: Add serd_node_from_syntax() and serd_node_to_syntax() | David Robillard | 3 | -0/+126 | |
2020-10-27 | Add SERD_READ_EXACT_BLANKS flags | David Robillard | 1 | -1/+1 | |
This allows suppressing the blank node ID clashing mechanism to read blank IDs exactly as they appear in the input, even if they match the scheme used to generate blank node IDs internally. | |||||
2020-10-27 | WIP: Make Reader always read from a ByteSource | David Robillard | 7 | -178/+189 | |
2020-10-27 | WIP: Make Writer always write to a ByteSink | David Robillard | 4 | -123/+137 | |
2020-10-27 | Fix crash when attempting to read before starting | David Robillard | 1 | -0/+4 | |
2020-10-27 | Refuse to write relative URIRefs to NTriples | David Robillard | 1 | -0/+15 | |
2020-10-27 | Simplify abbreviated URI writing code | David Robillard | 1 | -15/+17 | |
2020-10-27 | WIP: Get base URI from single input path if possible | David Robillard | 1 | -2/+43 | |
2020-10-27 | Use a manual type-safe stack in SerdWriter | David Robillard | 1 | -27/+27 | |
This fixes alignment issues on ARM. Since this stack is just for WriteContext which has a fixed size, using SerdStack here just made things more confusing anyway. | |||||
2020-10-27 | Emit reader errors on stack overflows in string literals | David Robillard | 1 | -1/+9 | |
2020-10-27 | Simplify ByteSource implementation | David Robillard | 2 | -32/+27 | |
2020-10-27 | WIP: Add statement filtering | David Robillard | 2 | -0/+165 | |
2020-10-27 | Add support for parsing variables | David Robillard | 7 | -7/+90 | |
This adds a reader flag and serdi option for extending a syntax with support for SPARQL-like variables, for storing things like patterns or simple queries. | |||||
2020-10-27 | Fix crash when expanding empty URI prefixes | David Robillard | 1 | -1/+1 | |
2020-10-27 | Fix memory leak in writer when caller doesn't clean up the stack | David Robillard | 1 | -0/+5 | |
2020-10-27 | Avoid use of ctype.h macros entirely | David Robillard | 2 | -4/+15 | |
Some of these cause warnings, and should never have been used in the first place since they depend on locale. | |||||
2020-10-27 | Improve writer packing | David Robillard | 1 | -1/+1 | |
2020-10-27 | Normalise away rdf:langString datatype | David Robillard | 1 | -0/+2 | |
Depending on how you read the specifications, a rdf:langString isn't identical to an xsd:string, but an rdf:langString must have a non-empty language tag so having this datatype doesn't really make any sense anyway. | |||||
2020-10-27 | Add support for basic literal normalisation | David Robillard | 3 | -4/+289 | |
2020-10-27 | Make serd_env_expand() always return a node if it is not relative | David Robillard | 1 | -10/+20 | |
The old interface was potentially faster, because it avoided unnecessary copies, but was annoying to use and problematic because nodes that don't need expansion were indistinguishable from nodes that failed to expand (like those that use undefined namespace prefixes). In the grand scheme of things, the potential performance improvement isn't worth it, and unexpected unexpanded nodes causes deep nightmarish problems, so just make serd_env_expand() copy the input if it doesn't need expansion to make the API simpler and safer. | |||||
2020-10-27 | Make it possible to allocate nodes with CURIE datatypes | David Robillard | 3 | -9/+15 | |
2020-10-27 | Remove double allocation in serd_env_set_prefix() | David Robillard | 1 | -9/+5 | |
2020-10-27 | Remove double allocations in serd_env_expand() | David Robillard | 3 | -33/+116 | |
2020-10-27 | Move local URI utility functions | David Robillard | 1 | -26/+26 | |
2020-10-27 | Split up node expansion code | David Robillard | 1 | -30/+53 | |
2020-10-27 | Clean up Env tests and behaviour | David Robillard | 1 | -1/+4 | |
2020-10-27 | Make const Env functions tolerant of NULL | David Robillard | 1 | -1/+9 | |
This is convenient in places where you don't necessarily need an Env, since in this case these methods work the same as if with an empty Env. | |||||
2020-10-27 | Allow setting the base URI of an Env to NULL | David Robillard | 1 | -1/+5 | |
2020-10-27 | Replace multiple stream callbacks with SerdEvent | David Robillard | 4 | -51/+81 | |
This makes plumbing easier since everything goes through the same "stream" and only one callback is required to handling everything. It's also more easily extensible in case more event types need to be added in the future. | |||||
2020-10-27 | Add precise floating point parsing | David Robillard | 2 | -4/+182 | |
2020-10-27 | Separate decimal parsing from floating point conversion | David Robillard | 1 | -40/+126 | |
2020-10-27 | Add support for xsd:double and xsd:float | David Robillard | 2 | -0/+83 | |
These can be used to serialise a float or double in the shortest normalised form that can be read back in to the exact same floating point value. | |||||
2020-10-27 | Add precise decimal digit generation | David Robillard | 3 | -58/+337 | |
2020-10-27 | Factor out decimal digit generation | David Robillard | 3 | -51/+72 | |
2020-10-27 | Add minimal big integer implementation | David Robillard | 3 | -0/+741 | |
This is needed for floating point decimal conversion. | |||||
2020-10-27 | Add minimal soft floating point implementation | David Robillard | 3 | -1/+228 | |
2020-10-27 | Add IEEE floating point utility header | David Robillard | 1 | -0/+55 | |
2020-10-27 | Add faster decimal digit counting function | David Robillard | 3 | -1/+53 | |
2020-10-27 | Move MIN macro to int_math.h | David Robillard | 12 | -18/+15 | |
2020-10-27 | Add integer and bit math utilities | David Robillard | 2 | -0/+129 | |
2020-10-27 | Add validation to command line interface | David Robillard | 1 | -1/+11 | |
2020-10-27 | Add support for reading multiple files at once | David Robillard | 1 | -34/+90 | |
2020-10-27 | Add empty syntax type for suppressing output | David Robillard | 3 | -10/+21 | |
2020-10-27 | Improve add and chop prefix functions when given empty strings | David Robillard | 2 | -8/+10 | |
2020-10-27 | Simplify handling of input string arguments | David Robillard | 1 | -10/+12 | |
2020-10-27 | Add input base URI option | David Robillard | 1 | -5/+9 | |
2020-10-27 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 3 | -16/+12 | |
This makes reader options extensible and should hopefully prevent the need for grafting on more similar functions in the future. | |||||
2020-10-27 | Report writer errors and add strict write mode | David Robillard | 3 | -173/+228 | |
2020-10-27 | Align nodes with posix_memalign if possible | David Robillard | 9 | -28/+80 | |
2020-10-27 | Add support for writing terse collections | David Robillard | 1 | -12/+23 | |