diff options
author | David Robillard <d@drobilla.net> | 2016-03-16 16:54:49 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-03-07 15:32:23 -0500 |
commit | b4dee10576e9916c0c8d80033bc429dc38a70c1c (patch) | |
tree | 58d9b4a8eea080691ab0177e25dae1001ba711ba /src/uri_utils.h | |
parent | a29581d3ba664175c459e20e6c86be09707fde6e (diff) | |
download | serd-b4dee10576e9916c0c8d80033bc429dc38a70c1c.tar.gz serd-b4dee10576e9916c0c8d80033bc429dc38a70c1c.tar.bz2 serd-b4dee10576e9916c0c8d80033bc429dc38a70c1c.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 2544eea2..735555c4 100644 --- a/src/uri_utils.h +++ b/src/uri_utils.h @@ -25,7 +25,7 @@ #include <string.h> 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); } @@ -54,8 +54,8 @@ static inline SERD_PURE_FUNC size_t uri_rooted_index(const SerdURI* uri, const SerdURI* root) { 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 0; } |