From 60a5f6b9d9043436eaec86329bf2e16fcdd45b51 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 25 Feb 2021 21:19:38 +0100 Subject: Update cstr doc. --- docs/cstr_api.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/cstr_api.md b/docs/cstr_api.md index b3e138a6..f14cfc38 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -74,17 +74,17 @@ char* cstr_itval(cstr_iter_t it); bool cstr_getline(cstr *self, FILE *stream); // cstr_getdelim(self, '\n', stream) bool cstr_getdelim(cstr *self, int delim, FILE *stream); ``` +Helper methods: ```c const char* cstr_c_str(const cstr* x); int cstr_compare_raw(const char** x, const char** y); bool cstr_equals_raw(const char** x, const char** y); -uint32_t cstr_hash_raw(const char* const* x, size_t ignored); +uint64_t cstr_hash_raw(const char* const* x, size_t ignored); int c_strncasecmp(const char* s1, const char* s2, size_t n); -char* c_strnfind(const char* str, const char* needle, size_t n); -char* c_istrnfind(const char* str, const char* needle, size_t n); -uint32_t c_strhash(const char* str); +char* c_strnstr(const char* str, const char* needle, size_t n); +char* c_strncasestr(const char* str, const char* needle, size_t n); +uint64_t c_strhash(const char* str); ``` -Helper methods, used by other container types. ## Types -- cgit v1.2.3