aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri_utils.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2016-03-16 16:54:49 -0400
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit3eff44c4784c6f0cfdc8c857ff47f8bdd3ae713c (patch)
tree87346d71b5aa60b980055620597f1a6119c226b0 /src/uri_utils.h
parent085e63e53502adfc16c3830ed6b0b941314b8f8a (diff)
downloadserd-3eff44c4784c6f0cfdc8c857ff47f8bdd3ae713c.tar.gz
serd-3eff44c4784c6f0cfdc8c857ff47f8bdd3ae713c.tar.bz2
serd-3eff44c4784c6f0cfdc8c857ff47f8bdd3ae713c.zip
Rename SerdChunk to SerdStringView
Diffstat (limited to 'src/uri_utils.h')
-rw-r--r--src/uri_utils.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uri_utils.h b/src/uri_utils.h
index 28d74be4..28779d41 100644
--- a/src/uri_utils.h
+++ b/src/uri_utils.h
@@ -22,7 +22,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);
}
@@ -51,8 +51,8 @@ static inline 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;
}