diff options
| author | Tyge Løvset <[email protected]> | 2022-10-28 10:00:35 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-10-28 10:00:35 +0200 |
| commit | d63c37c043024854cfb4b63495e8f5ca3fc03ecd (patch) | |
| tree | 14c781006a0575c7f2b7515dc5742daaeb916973 /include/stc/cstr.h | |
| parent | 0243b64f830f55b924274cbc63f5dd1ed518c26f (diff) | |
| download | STC-modified-d63c37c043024854cfb4b63495e8f5ca3fc03ecd.tar.gz STC-modified-d63c37c043024854cfb4b63495e8f5ca3fc03ecd.zip | |
Renamed some semi-internal functions which appeared to be macros by their name.
Diffstat (limited to 'include/stc/cstr.h')
| -rw-r--r-- | include/stc/cstr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/cstr.h b/include/stc/cstr.h index 3605bab8..5f6e19a8 100644 --- a/include/stc/cstr.h +++ b/include/stc/cstr.h @@ -413,11 +413,11 @@ STC_API uint64_t cstr_hash(const cstr *self); STC_DEF uint64_t cstr_hash(const cstr *self) { csview sv = cstr_sv(self); - return c_fasthash(sv.str, sv.size); + return cfasthash(sv.str, sv.size); } STC_DEF size_t cstr_find_sv(const cstr* self, csview search) { - char* res = c_strnstrn(cstr_str(self), search.str, cstr_size(self), search.size); + char* res = cstrnstrn(cstr_str(self), search.str, cstr_size(self), search.size); return res ? res - cstr_str(self) : cstr_npos; } @@ -540,7 +540,7 @@ cstr_replace_sv(csview in, csview search, csview repl, unsigned count) { size_t from = 0; char* res; if (!count) count = ~0; if (search.size) - while (count-- && (res = c_strnstrn(in.str + from, search.str, in.size - from, search.size))) { + while (count-- && (res = cstrnstrn(in.str + from, search.str, in.size - from, search.size))) { const size_t pos = res - in.str; cstr_append_n(&out, in.str + from, pos - from); cstr_append_n(&out, repl.str, repl.size); |
