diff options
author | David Robillard <d@drobilla.net> | 2016-03-16 16:54:49 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 19b9f627ba195cab7c7ebea9daca9ead6e4f5d9a (patch) | |
tree | 39da1a30375903d8446250498b5f386fce515e2a /src/uri_utils.h | |
parent | 82f8f804773b10c42b17a30872a59ed76b062794 (diff) | |
download | serd-19b9f627ba195cab7c7ebea9daca9ead6e4f5d9a.tar.gz serd-19b9f627ba195cab7c7ebea9daca9ead6e4f5d9a.tar.bz2 serd-19b9f627ba195cab7c7ebea9daca9ead6e4f5d9a.zip |
Rename SerdChunk to SerdStringView
Diffstat (limited to 'src/uri_utils.h')
-rw-r--r-- | src/uri_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uri_utils.h b/src/uri_utils.h index c9f3ecf5..9146ee79 100644 --- a/src/uri_utils.h +++ b/src/uri_utils.h @@ -17,7 +17,7 @@ typedef struct { } SlashIndexes; static inline bool -chunk_equals(const SerdChunk* a, const SerdChunk* b) +slice_equals(const SerdStringView* a, const SerdStringView* b) { return a->len == b->len && !strncmp(a->buf, b->buf, a->len); } @@ -52,8 +52,8 @@ uri_rooted_index(const SerdURI* uri, const SerdURI* root) SlashIndexes indexes = {SIZE_MAX, SIZE_MAX}; if (!root || !root->scheme.len || - !chunk_equals(&root->scheme, &uri->scheme) || - !chunk_equals(&root->authority, &uri->authority)) { + !slice_equals(&root->scheme, &uri->scheme) || + !slice_equals(&root->authority, &uri->authority)) { return indexes; } |