diff options
| author | Tyge Løvset <[email protected]> | 2021-02-25 21:19:38 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-02-25 21:19:38 +0100 |
| commit | 60a5f6b9d9043436eaec86329bf2e16fcdd45b51 (patch) | |
| tree | 7f5247e37f6deb589a71948449c5837547896625 /docs | |
| parent | 5cb2da687a58829a788a93c51808e6d59637862b (diff) | |
| download | STC-modified-60a5f6b9d9043436eaec86329bf2e16fcdd45b51.tar.gz STC-modified-60a5f6b9d9043436eaec86329bf2e16fcdd45b51.zip | |
Update cstr doc.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cstr_api.md | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
