diff options
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -19,6 +19,27 @@ #include "serd/serd.h" +#include <stdbool.h> + +/// Qualify `uri` into a CURIE if possible +bool +serd_env_qualify_in_place(const SerdEnv* env, + const SerdNode* uri, + const SerdNode** prefix, + SerdStringView* suffix); + +/** + Expand `curie`. + + Errors: SERD_ERR_BAD_ARG if `curie` is not valid, or SERD_ERR_BAD_CURIE if + prefix is not defined in `env`. +*/ +SerdStatus +serd_env_expand_in_place(const SerdEnv* env, + const SerdNode* curie, + SerdStringView* uri_prefix, + SerdStringView* uri_suffix); + SERD_CONST_FUNC SerdURIView serd_env_base_uri_view(const SerdEnv* env); |