aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-10-10 12:31:29 +0200
committerDavid Robillard <d@drobilla.net>2022-01-13 23:05:27 -0500
commitaf81ace5f5a8f4bb0df93dd937395c65e92a5b6a (patch)
tree1a40185db9c66ce8bee528e81e5cfa9569b2d4bd /src
parent5d43cb36087292a397992aa1b59326fc355d5247 (diff)
downloadserd-af81ace5f5a8f4bb0df93dd937395c65e92a5b6a.tar.gz
serd-af81ace5f5a8f4bb0df93dd937395c65e92a5b6a.tar.bz2
serd-af81ace5f5a8f4bb0df93dd937395c65e92a5b6a.zip
Add SERD_READ_EXACT_BLANKS flag
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.
Diffstat (limited to 'src')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index 517dce8f..14f5aec1 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1090,7 +1090,7 @@ read_BLANK_NODE_LABEL(SerdReader* const reader,
*ate_dot = true;
}
- if (fancy_syntax(reader)) {
+ if (fancy_syntax(reader) && !(reader->flags & SERD_READ_EXACT_BLANKS)) {
if (is_digit(buf[reader->bprefix_len + 1])) {
if ((buf[reader->bprefix_len]) == 'b') {
buf[reader->bprefix_len] = 'B'; // Prevent clash