aboutsummaryrefslogtreecommitdiffstats
path: root/src/canon.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-08-30 20:43:05 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (patch)
treed7be35c7b4b3d466049352f2975e2c88c298f4b8 /src/canon.c
parentb13ad41a4d65b577b4db67660a9edf3056bdf7af (diff)
downloadserd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip
Use ZixStringView directly
Diffstat (limited to 'src/canon.c')
-rw-r--r--src/canon.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/canon.c b/src/canon.c
index c0ce8ef4..2ef28e07 100644
--- a/src/canon.c
+++ b/src/canon.c
@@ -18,9 +18,9 @@
#include "serd/sink.h"
#include "serd/statement.h"
#include "serd/status.h"
-#include "serd/string_view.h"
#include "serd/world.h"
#include "zix/attributes.h"
+#include "zix/string_view.h"
#include <assert.h>
#include <stdbool.h>
@@ -113,11 +113,10 @@ build_tagged(SerdAllocator* const ZIX_NONNULL allocator,
}
// Make a new literal that is otherwise identical
- *out =
- serd_node_new(allocator,
- serd_a_literal(serd_node_string_view(node),
- serd_node_flags(node),
- serd_substring(canonical_lang, lang_len)));
+ *out = serd_node_new(allocator,
+ serd_a_literal(serd_node_string_view(node),
+ serd_node_flags(node),
+ zix_substring(canonical_lang, lang_len)));
const ExessResult r = {EXESS_SUCCESS, node_len};
return r;