Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
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 | |
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 | 2 | -27/+29 | |
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 | 2 | -5/+5 | |
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 | |
2020-10-27 | Fix various warnings and conversion issues | David Robillard | 12 | -44/+37 | |