diff options
| author | Tyge Løvset <[email protected]> | 2022-05-23 14:44:05 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-23 14:44:05 +0200 |
| commit | 7349441c0c95b21da87f1a13176ac4014ed98ea8 (patch) | |
| tree | 5de86b3c64f7de4f8051e83655d3519b0bcef23d /docs | |
| parent | 673de33eeb754142a32ac5cad551230d8fc86849 (diff) | |
| download | STC-modified-7349441c0c95b21da87f1a13176ac4014ed98ea8.tar.gz STC-modified-7349441c0c95b21da87f1a13176ac4014ed98ea8.zip | |
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.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cstr_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
