summaryrefslogtreecommitdiffhomepage
path: root/include/stc/crawstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/crawstr.h')
-rw-r--r--include/stc/crawstr.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stc/crawstr.h b/include/stc/crawstr.h
index a244397d..9dbdb6f7 100644
--- a/include/stc/crawstr.h
+++ b/include/stc/crawstr.h
@@ -45,7 +45,7 @@ STC_INLINE bool crawstr_equals(crawstr rs, const char* str) {
}
STC_INLINE intptr_t crawstr_find(crawstr rs, const char* search) {
- char* res = cstrnstrn(rs.str, search, rs.size, c_strlen(search));
+ char* res = strstr(rs.str, search);
return res ? (res - rs.str) : c_NPOS;
}
@@ -98,7 +98,7 @@ STC_INLINE bool crawstr_eq(const crawstr* x, const crawstr* y)
{ return x->size == y->size && !c_memcmp(x->str, y->str, x->size); }
STC_INLINE uint64_t crawstr_hash(const crawstr *self)
- { return cbytehash(self->str, self->size); }
+ { return stc_hash(self->str, self->size); }
#endif // CRAWSTR_H_INCLUDED
#undef i_static