aboutsummaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2021-03-07Simplify node construction APIDavid Robillard5-150/+177
2021-03-07Simplify URI API and implementationDavid Robillard8-312/+290
2021-03-07Add serd_node_uri_view()David Robillard1-0/+12
2021-03-07Add serd_node_string_view()David Robillard1-0/+8
2021-03-07Merge datatype/language into nodeDavid Robillard5-65/+174
This moves closer to the sord API, and is more convenient in most cases.
2021-03-07Remove SERD_NOTHING node typeDavid Robillard2-4/+0
2021-03-07Make nodes opaqueDavid Robillard9-272/+318
2021-03-07Add node accessor APIDavid Robillard1-0/+24
2021-03-07Shorten node constructor namesDavid Robillard3-25/+23
2021-03-07Remove "get" from accessor namesDavid Robillard3-7/+10
2021-03-07Rename SerdStyle to SerdWriterFlagsDavid Robillard2-35/+35
2021-03-07Rename SerdType to SerdNodeTypeDavid Robillard4-17/+23
The old name will be even more ambiguous with the increased scope.
2021-03-07Rename SerdURI to SerdURIViewDavid Robillard6-57/+59
2021-03-07Rename SerdChunk to SerdStringViewDavid Robillard4-20/+14
2021-03-07Use char* for strings in public APIDavid Robillard16-238/+211
The constant casting just makes user code a mess, for no benefit.
2021-03-07Remove 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.
2021-03-07Remove useless character countingDavid Robillard7-77/+43
2021-03-07Add SerdBuffer type for mutable buffersDavid Robillard4-24/+23
This avoids const violations from abusing SerdChunk as a mutable buffer for string sinks.
2021-03-07Remove serd_uri_to_path()David Robillard1-26/+1
2021-02-15Fix writing long literals with triple quotesDavid Robillard2-3/+11
2021-01-20Serd 0.30.10v0.30.10David Robillard1-1/+1
2021-01-17Remove aligned_alloc supportDavid Robillard2-19/+0
This causes build issues when targeting older versions of MacOS. That could be fixed, but I don't have the ability to reproduce it at the moment, and it's a problem in the build system check code which is about to be entirely replaced anyway. Since, as far as I know, this does not actually add aligned allocation support to any real system (they all support one of the other methods), just remove it for now.
2021-01-10Add missing includesDavid Robillard1-0/+2
2021-01-10Avoid use of strcpyDavid Robillard1-3/+3
Again, really just skirting around warnings here, but this is faster anyway since we know what we're doing here and doing require any fine-grained null termination.
2021-01-09Only define WIN32_LEAN_AND_MEAN for MSVCDavid Robillard1-1/+3
This avoids a warning with MinGW.
2021-01-09Avoid GCC warning about printed string overflowDavid Robillard1-9/+14
GCC seems to think there was a potential overflow here, but I don't see it. I think it just can't figure out that the printed text and the size both depend on the same variable. In any case, avoiding formatting functions here avoids the warning, and is probably faster anyway.
2021-01-09Avoid GCC warning about potential signed overflowDavid Robillard1-1/+1
2021-01-09Add missing pure attributesDavid Robillard2-2/+2
2021-01-09Fix fallback aligned_alloc() detectionDavid Robillard1-1/+1
2021-01-09Fix SERD_DISABLE_DEPRECATEDDavid Robillard1-1/+1
2021-01-07Update fallback versionDavid Robillard1-1/+1
Oops.
2021-01-02Update date in version outputDavid Robillard1-1/+1
2021-01-02Use email address instead of website for attributionDavid Robillard23-24/+24
2021-01-01Remove the need for a generated configuration headerDavid Robillard3-6/+121
2020-12-31Format all code with clang-formatDavid Robillard22-3873/+4116
2020-12-31Avoid "else" after "break" and "return"David Robillard11-53/+117
2020-12-15Clean up includesDavid Robillard5-7/+7
2020-12-15Suppress new clang-tidy warningsDavid Robillard1-1/+6
2020-11-15Only use aligned_alloc in C11David Robillard1-1/+1
2020-11-14Deprecate serd_uri_to_path()David Robillard1-2/+8
2020-11-14Refuse to write relative URI references to NTriplesDavid Robillard1-0/+15
2020-11-14Simplify abbreviated URI writing codeDavid Robillard1-13/+14
2020-11-13Fix test coverageDavid Robillard1-9/+7
2020-11-13Remove dead codeDavid Robillard2-22/+0
2020-11-13Simplify writer statement validity checkingDavid Robillard1-5/+3
2020-11-13Improve IRI reading performanceDavid Robillard1-10/+13
This allows the compiler to construct a jump table, and avoids a branch.
2020-11-13Improve add and chop prefix functions when given empty stringsDavid Robillard2-8/+10
2020-11-13Remove use of C character class functions that may use localeDavid Robillard3-5/+14
Some of these cause warnings, and should never have been used in the first place since they depend on locale.
2020-11-13Allow setting the base URI of an Env to NULLDavid Robillard1-2/+6
2020-11-13Use aligned allocation via C11 or Windows API where possibleDavid Robillard4-12/+63