diff options
| author | Tyge Løvset <[email protected]> | 2022-06-01 21:57:03 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-06-01 21:57:03 +0200 |
| commit | ccfef3a4f82ce48facde6499c53e62ab1065cd8b (patch) | |
| tree | e6a67de45b4cddca09b8721c3582e7906f3c3f56 /docs | |
| parent | 89424a2ff3a46dbd82a6954f97a25f973e981c98 (diff) | |
| download | STC-modified-ccfef3a4f82ce48facde6499c53e62ab1065cd8b.tar.gz STC-modified-ccfef3a4f82ce48facde6499c53e62ab1065cd8b.zip | |
Change: Split replace into two: cstr_replace(s, search, repl), cstr_replace_from(s, pos, search, repl): matches cstr_find() + cstr_find_from().
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/cstr_api.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md index ca6a7d3f..09ca6592 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -78,8 +78,9 @@ void cstr_insert(cstr* self, size_t pos, const char* ins); void cstr_insert_s(cstr* self, size_t pos, cstr ins); void cstr_insert_n(cstr* self, size_t pos, const char* ins, size_t n); -size_t cstr_replace(cstr* self, size_t start, const char* search, const char* repl); void cstr_replace_all(cstr* self, const char* search, const char* repl); +size_t cstr_replace(cstr* self, const char* search, const char* repl); +size_t cstr_replace_from(cstr* self, size_t pos, const char* search, const char* repl); void cstr_replace_at(cstr* self, size_t pos, size_t len, const char* repl); void cstr_replace_s(cstr* self, size_t pos, size_t len, cstr repl); void cstr_replace_n(cstr* self, size_t pos, size_t len, const char* repl, size_t n); |
