aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.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/uri.c
parentb13ad41a4d65b577b4db67660a9edf3056bdf7af (diff)
downloadserd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip
Use ZixStringView directly
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/uri.c b/src/uri.c
index 234bf834..53574600 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -9,8 +9,8 @@
#include "serd/memory.h"
#include "serd/status.h"
#include "serd/stream.h"
-#include "serd/string_view.h"
#include "serd/uri.h"
+#include "zix/string_view.h"
#include <assert.h>
#include <stdbool.h>
@@ -245,7 +245,7 @@ remove_dot_segments(const char* const path, const size_t len, size_t* const up)
/// Merge `base` and `path` in-place
static void
-merge(SerdStringView* const base, SerdStringView* const path)
+merge(ZixStringView* const base, ZixStringView* const path)
{
size_t up = 0;
const char* begin = remove_dot_segments(path->data, path->length, &up);
@@ -543,10 +543,10 @@ is_dir_sep(const char c)
}
size_t
-serd_write_file_uri(const SerdStringView path,
- const SerdStringView hostname,
- const SerdWriteFunc sink,
- void* const stream)
+serd_write_file_uri(const ZixStringView path,
+ const ZixStringView hostname,
+ const SerdWriteFunc sink,
+ void* const stream)
{
const bool is_windows = is_windows_path(path.data);
size_t len = 0U;