diff options
author | David Robillard <d@drobilla.net> | 2021-04-15 17:52:44 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 8c67f9eba47d30913749e607c440b170a5cbd804 (patch) | |
tree | 01d9750c6e646c76519e3a00bb200d6312e65ffc /src/env.h | |
parent | 7ffa2c0488fcd96c3c12713e5650633eb03e91f7 (diff) | |
download | serd-8c67f9eba47d30913749e607c440b170a5cbd804.tar.gz serd-8c67f9eba47d30913749e607c440b170a5cbd804.tar.bz2 serd-8c67f9eba47d30913749e607c440b170a5cbd804.zip |
[WIP] Expand URIs in reader
This expands relative and prefixed URIs in the reader on the stack, rather than
passing them to the caller to be dealt with. This pushes these context-full
forms to the edge of the system as much as possible to minimise the headaches
they can cause.
Towards having stricter guarantees about nodes and eliminating the CURIE node
type altogether.
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -21,6 +21,14 @@ serd_env_qualify_in_place(const SerdEnv* env, SerdStringView* suffix); /** + 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); + +/** Expand `curie`. Errors: SERD_BAD_ARG if `curie` is not valid, or SERD_BAD_CURIE if prefix is |