diff options
Diffstat (limited to 'include/serd/env.h')
-rw-r--r-- | include/serd/env.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/serd/env.h b/include/serd/env.h index 553905f7..fdcc2190 100644 --- a/include/serd/env.h +++ b/include/serd/env.h @@ -9,8 +9,8 @@ #include "serd/node.h" #include "serd/sink.h" #include "serd/status.h" -#include "serd/string_view.h" #include "zix/attributes.h" +#include "zix/string_view.h" #include <stdbool.h> @@ -27,7 +27,7 @@ typedef struct SerdEnvImpl SerdEnv; /// Create a new environment SERD_API SerdEnv* ZIX_ALLOCATED -serd_env_new(SerdAllocator* ZIX_NULLABLE allocator, SerdStringView base_uri); +serd_env_new(SerdAllocator* ZIX_NULLABLE allocator, ZixStringView base_uri); /// Copy an environment SERD_API SerdEnv* ZIX_ALLOCATED @@ -48,7 +48,7 @@ serd_env_base_uri(const SerdEnv* ZIX_NULLABLE env); /// Set the current base URI SERD_API SerdStatus -serd_env_set_base_uri(SerdEnv* ZIX_NONNULL env, SerdStringView uri); +serd_env_set_base_uri(SerdEnv* ZIX_NONNULL env, ZixStringView uri); /** Set the current base URI to a filesystem path. @@ -58,7 +58,7 @@ serd_env_set_base_uri(SerdEnv* ZIX_NONNULL env, SerdStringView uri); actually exist. */ SERD_API SerdStatus -serd_env_set_base_path(SerdEnv* ZIX_NONNULL env, SerdStringView path); +serd_env_set_base_path(SerdEnv* ZIX_NONNULL env, ZixStringView path); /** Set a namespace prefix. @@ -69,8 +69,8 @@ serd_env_set_base_path(SerdEnv* ZIX_NONNULL env, SerdStringView path); */ SERD_API SerdStatus serd_env_set_prefix(SerdEnv* ZIX_NONNULL env, - SerdStringView name, - SerdStringView uri); + ZixStringView name, + ZixStringView uri); /** Qualify `uri` into a prefix and suffix (like a CURIE) if possible. @@ -90,9 +90,9 @@ serd_env_set_prefix(SerdEnv* ZIX_NONNULL env, */ SERD_API SerdStatus serd_env_qualify(const SerdEnv* ZIX_NULLABLE env, - SerdStringView uri, - SerdStringView* ZIX_NONNULL prefix, - SerdStringView* ZIX_NONNULL suffix); + ZixStringView uri, + ZixStringView* ZIX_NONNULL prefix, + ZixStringView* ZIX_NONNULL suffix); /** Expand `curie` to an absolute URI if possible. @@ -104,7 +104,7 @@ serd_env_qualify(const SerdEnv* ZIX_NULLABLE env, Returns null if `node` can not be expanded. */ SERD_API SerdNode* ZIX_ALLOCATED -serd_env_expand_curie(const SerdEnv* ZIX_NULLABLE env, SerdStringView curie); +serd_env_expand_curie(const SerdEnv* ZIX_NULLABLE env, ZixStringView curie); /** Expand `node` to an absolute URI if possible. |