aboutsummaryrefslogtreecommitdiffstats
path: root/src/env.h
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/env.h
parentb13ad41a4d65b577b4db67660a9edf3056bdf7af (diff)
downloadserd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip
Use ZixStringView directly
Diffstat (limited to 'src/env.h')
-rw-r--r--src/env.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/env.h b/src/env.h
index 64a0abc1..54ae84e1 100644
--- a/src/env.h
+++ b/src/env.h
@@ -6,17 +6,17 @@
#include "serd/env.h"
#include "serd/status.h"
-#include "serd/string_view.h"
#include "serd/uri.h"
#include "zix/attributes.h"
+#include "zix/string_view.h"
/**
Return the URI for the prefix with the given name.
If no such prefix is known, returns an empty string view.
*/
-ZIX_PURE_FUNC SerdStringView
-serd_env_find_prefix(const SerdEnv* env, SerdStringView name);
+ZIX_PURE_FUNC ZixStringView
+serd_env_find_prefix(const SerdEnv* env, ZixStringView name);
/**
Expand `curie`.
@@ -25,10 +25,10 @@ serd_env_find_prefix(const SerdEnv* env, SerdStringView name);
not defined in `env`.
*/
SerdStatus
-serd_env_expand_in_place(const SerdEnv* env,
- SerdStringView curie,
- SerdStringView* uri_prefix,
- SerdStringView* uri_suffix);
+serd_env_expand_in_place(const SerdEnv* env,
+ ZixStringView curie,
+ ZixStringView* uri_prefix,
+ ZixStringView* uri_suffix);
ZIX_PURE_FUNC SerdURIView
serd_env_base_uri_view(const SerdEnv* env);