aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-02-26 12:39:18 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 16:27:02 -0500
commit70277ccdb3035db83d81d942777c12a60c4aded3 (patch)
tree401d570c44167148cb282d1013ec1eaf4abe6283 /src/writer.c
parentfebb30141356df83a56026bbb14099e3cb2c82fc (diff)
downloadserd-70277ccdb3035db83d81d942777c12a60c4aded3.tar.gz
serd-70277ccdb3035db83d81d942777c12a60c4aded3.tar.bz2
serd-70277ccdb3035db83d81d942777c12a60c4aded3.zip
Rename string view fields
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/writer.c b/src/writer.c
index 43f2ebe5..a177f4f3 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -743,10 +743,10 @@ write_uri_node(SerdWriter* const writer,
if (has_scheme && (writer->flags & SERD_WRITE_CURIED) &&
serd_env_qualify(writer->env, node, &prefix, &suffix) &&
is_name(prefix.buf, prefix.n_bytes) &&
- is_name(suffix.buf, suffix.len)) {
+ is_name(suffix.data, suffix.length)) {
TRY(st, write_uri_from_node(writer, &prefix));
TRY(st, esink(":", 1, writer));
- return ewrite_uri(writer, suffix.buf, suffix.len);
+ return ewrite_uri(writer, suffix.data, suffix.length);
}
}
@@ -803,8 +803,8 @@ write_curie(SerdWriter* const writer, const SerdNode* const node)
if (!supports_abbrev(writer)) {
TRY(st, esink("<", 1, writer));
- TRY(st, ewrite_uri(writer, prefix.buf, prefix.len));
- TRY(st, ewrite_uri(writer, suffix.buf, suffix.len));
+ TRY(st, ewrite_uri(writer, prefix.data, prefix.length));
+ TRY(st, ewrite_uri(writer, suffix.data, suffix.length));
TRY(st, esink(">", 1, writer));
} else {
TRY(st, write_lname(writer, node->buf, node->n_bytes));