diff options
author | David Robillard <d@drobilla.net> | 2021-02-20 13:53:52 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | 40588864972d1de767c669c8e5e9b50e652a459b (patch) | |
tree | 82b325f63a16f482baa0a2215eeaa607bd88277d /src | |
parent | e9d1b73352e9254e0b46f7af31acc5411d500baf (diff) | |
download | serd-40588864972d1de767c669c8e5e9b50e652a459b.tar.gz serd-40588864972d1de767c669c8e5e9b50e652a459b.tar.bz2 serd-40588864972d1de767c669c8e5e9b50e652a459b.zip |
Add serd_node_string_view()
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -450,6 +450,14 @@ serd_node_length(const SerdNode* const node) return node->length; } +SerdStringView +serd_node_string_view(const SerdNode* const node) +{ + const SerdStringView r = {(const char*)(node + 1), node->length}; + + return r; +} + SerdNodeFlags serd_node_flags(const SerdNode* const node) { |