From 7349441c0c95b21da87f1a13176ac4014ed98ea8 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 23 May 2022 14:44:05 +0200 Subject: Renamed cstr_find_n(self, search, pos, nmax) => cstr_find_from(self, pos, search), and cstr_replace_first(self, search, repl) => cstr_replace_first(self, pos, search, repl). // returns pos after replaced str. --- docs/cstr_api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/cstr_api.md b/docs/cstr_api.md index 7c8b4815..5570df8e 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -61,7 +61,7 @@ void cstr_insert_n(cstr* self, size_t pos, const char* str, size_t n); void cstr_replace(cstr* self, size_t pos, size_t len, const char* repl); void cstr_replace_s(cstr* self, size_t pos, size_t len, cstr s); void cstr_replace_n(cstr* self, size_t pos, size_t len, const char* repl, size_t n); -void cstr_replace_first(cstr* self, const char* search, const char* repl); +size_t cstr_replace_first(cstr* self, size_t pos, const char* search, const char* repl); void cstr_replace_all(cstr* self, const char* search, const char* repl); void cstr_erase(cstr* self, size_t pos); @@ -70,7 +70,7 @@ void cstr_erase_n(cstr* self, size_t pos, size_t n); bool cstr_equals(cstr s, const char* str); bool cstr_equals_s(cstr s, cstr s2); size_t cstr_find(cstr s, const char* search); -size_t cstr_find_n(cstr s, const char* search, size_t pos, size_t nmax); +size_t cstr_find_from(cstr s, size_t pos, const char* search); bool cstr_contains(cstr s, const char* search); bool cstr_starts_with(cstr s, const char* str); bool cstr_ends_with(cstr s, const char* str); -- cgit v1.2.3