Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2020-10-27 | Normalise away rdf:langString datatype | David Robillard | 3 | -0/+5 | |
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 | 10 | -5/+483 | |
2020-10-27 | Make serd_env_expand() always return a node if it is not relative | David Robillard | 3 | -46/+176 | |
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 | 2 | -78/+188 | |
2020-10-27 | Make const Env functions tolerant of NULL | David Robillard | 2 | -1/+13 | |
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 | 9 | -104/+194 | |
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 | Remove old floating point tests | David Robillard | 1 | -96/+0 | |
2020-10-27 | Add precise floating point parsing | David Robillard | 5 | -26/+621 | |
2020-10-27 | Separate decimal parsing from floating point conversion | David Robillard | 2 | -42/+126 | |
2020-10-27 | Add support for xsd:double and xsd:float | David Robillard | 4 | -0/+114 | |
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 | 6 | -65/+400 | |
2020-10-27 | Factor out decimal digit generation | David Robillard | 3 | -51/+72 | |
2020-10-27 | Add minimal big integer implementation | David Robillard | 5 | -0/+1674 | |
This is needed for floating point decimal conversion. | |||||
2020-10-27 | Add minimal soft floating point implementation | David Robillard | 6 | -1/+408 | |
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 | 5 | -1/+112 | |
2020-10-27 | Move MIN macro to int_math.h | David Robillard | 13 | -19/+17 | |
2020-10-27 | Add integer and bit math utilities | David Robillard | 4 | -0/+205 | |
2020-10-27 | Add validation to command line interface | David Robillard | 39 | -1/+2000 | |
2020-10-27 | Add support for reading multiple files at once | David Robillard | 6 | -37/+112 | |
2020-10-27 | Suppress simple test output | David Robillard | 1 | -1/+1 | |
2020-10-27 | Add empty syntax type for suppressing output | David Robillard | 6 | -19/+39 | |
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 | 3 | -11/+14 | |
2020-10-27 | Add input base URI option | David Robillard | 3 | -11/+23 | |
2020-10-27 | Add test for failure while writing a list from a model | David Robillard | 1 | -0/+68 | |
2020-10-27 | Replace serd_reader_set_strict() with SerdReaderFlags | David Robillard | 7 | -35/+31 | |
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 | 7 | -177/+274 | |
2020-10-27 | Align nodes with posix_memalign if possible | David Robillard | 10 | -41/+95 | |
2020-10-27 | Use C11 if possible | David Robillard | 2 | -1/+4 | |
2020-10-27 | Add support for writing terse collections | David Robillard | 10 | -18/+207 | |
2020-10-27 | Tolerate lack of predicate when context is popped | David Robillard | 1 | -1/+2 | |
2020-10-27 | Reset writer to empty when finished to avoid spurious blank lines | David Robillard | 1 | -0/+1 | |
2020-10-27 | Pass context flags to write_sep() | David Robillard | 1 | -22/+24 | |
2020-10-27 | Add initial flags to write context | David Robillard | 1 | -14/+22 | |
2020-10-27 | Simplify internal writer context API | David Robillard | 1 | -21/+17 | |
2020-10-27 | Strengthen writer statement preconditions | David Robillard | 1 | -1/+3 | |
2020-10-27 | Add option for writing terse output without newlines | David Robillard | 5 | -28/+36 | |
2020-10-27 | Factor out writing top level separator | David Robillard | 1 | -6/+10 | |
2020-10-27 | Rename writer flags for consistency with enum type | David Robillard | 3 | -8/+8 | |
2020-10-27 | Support reading lone lists in lax mode | David Robillard | 1 | -1/+1 | |
This allows parsing documents like "(42) ." | |||||
2020-10-27 | Simplify writer statement validity checking | David Robillard | 1 | -3/+2 | |
2020-10-27 | WIP: Fix reading from socket-like streams | David Robillard | 1 | -0/+1 | |
2020-10-27 | Make reader tolerant of being started several times | David Robillard | 1 | -0/+4 | |