aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2023-12-02Remove "get" from accessor namesDavid Robillard3-6/+6
2023-12-02Rename function types for consistencyDavid Robillard7-36/+36
2023-12-02Rename SerdStyle to SerdWriterFlagsDavid Robillard2-38/+38
2023-12-02Rename SerdType to SerdNodeTypeDavid Robillard4-21/+24
The old name will be even more ambiguous with the increased scope.
2023-12-02Rename SerdURI to SerdURIViewDavid Robillard6-64/+66
2023-12-02Rename SerdChunk to SerdStringViewDavid Robillard4-15/+15
2023-12-02Add SerdBuffer type for mutable buffersDavid Robillard3-22/+20
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2023-12-02Use char* for strings in public APIDavid Robillard16-252/+228
The constant casting just makes user code a mess, for no benefit.
2023-12-02Remove support for reading Turtle named inline nodes extensionDavid Robillard1-20/+0
2023-12-02Remove escape parameter from serd_node_new_file_uriDavid Robillard2-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.
2023-12-02Remove useless character countingDavid Robillard7-79/+43
2023-12-02Remove serd_uri_to_path()David Robillard2-27/+2
2023-10-22Serd 0.32.0v0.32.0David Robillard1-1/+1
2023-09-22Fix potential realloc leaksDavid Robillard2-6/+12
2023-09-22Remove unused includeDavid Robillard1-1/+0
2023-05-08Avoid use of strtoul()David Robillard3-9/+16
This function is overkill for the simple cases actually needed here, and pretty slow anyway.
2023-05-04Fix whitespaceDavid Robillard1-2/+2
2023-05-03Make serd_reader_read_chunk() work with NQuadsDavid Robillard3-2/+7
2023-05-03Factor out read_nquads_statement()David Robillard1-42/+54
2023-05-03Remove redundant wrapper functionDavid Robillard1-7/+1
2023-04-30Add long "help" and "version" options to serdiDavid Robillard2-1/+9
Although serdi still "officially" has a BSD-style interface, meson uses --version to find the version of executables. So, support that, and also add --help, since users will often try that for unknown commands.
2023-04-16Gracefully handle errors when writing textDavid Robillard5-85/+143
2023-04-06Clean up error handling and use TRY macros more broadlyDavid Robillard2-37/+41
2023-04-06Improve pretty-printing of lists and inline subjectsDavid Robillard4-161/+247
2023-04-06Remove support for writing Turtle named inline nodes extensionDavid Robillard1-30/+6
2023-04-06Simplify remove_dot_segments() implementationDavid Robillard1-53/+15
2023-04-06Make URI writing stricter by defaultDavid Robillard2-8/+11
2023-04-06Gracefully handle boolean subject and predicate errorsDavid Robillard1-0/+3
2023-04-06Improve help textDavid Robillard1-2/+2
2023-04-05Fix sign conversion warningsDavid Robillard2-2/+2
2023-04-05Improve writer error handlingDavid Robillard6-149/+198
2023-04-05Fix relative URI creationDavid Robillard2-25/+43
2023-04-05Update to clang-format 12David Robillard1-4/+4
2023-04-05Simplify writing URI delimitersDavid Robillard1-10/+5
2023-04-05Fix potential memory leaks when a write is abortedDavid Robillard1-68/+82
Also clean up and simplify writer context management in general.
2023-04-05Remove redundant null check in serd_env_set_base_uri()David Robillard1-2/+2
The env parameter here is declared as nonnull in the API, so it is an error to call it with NULL (which clang can statically flag as a warning).
2023-04-05Shrink UTF-8 utility codeDavid Robillard1-36/+5
I've found that the negative cache impact of the 32-byte lookup table here can be worse than the simple conditional code in real-world scenarios (even though it's faster in micro-benchmarks). So, go with the simple (and conveniently more terse) thing.
2023-04-05Add nullability annotations to internal node functionsDavid Robillard1-6/+7
2023-04-05Use distinct include guards for internal headersDavid Robillard12-47/+47
2023-04-05Use conventional status variable nameDavid Robillard1-17/+17
2023-04-05Fix pretty-printing of anonymous subjectsDavid Robillard1-3/+9
2023-04-02Improve TriG pretty-printing and remove trailing newlinesDavid Robillard1-3/+9
2023-03-31Fix possible hang when writing nested Turtle listsDavid Robillard1-6/+13
2023-03-31Fix incorrect parsing of strange quote escape patternsDavid Robillard1-3/+9
2023-03-31Factor out read_string_escape()David Robillard1-11/+20
2023-02-12Check for POSIX features with the build systemDavid Robillard1-31/+54
2023-02-06Update year in version outputDavid Robillard1-2/+2
2023-02-05Fix inconsistent comment styleDavid Robillard1-2/+2
2023-02-04Fix clang and clang-tidy warnings on WindowsDavid Robillard4-3/+4
2022-12-20Avoid using ASCII grave as a quoteDavid Robillard6-27/+27