summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-06-18 23:30:14 +0200
committerTyge Løvset <[email protected]>2021-06-18 23:30:14 +0200
commit3776efeb26088cde334eda8e8dcda66431a9a0cf (patch)
tree3cb3eaa544b05bc3cbbb006d76504970777570e9 /docs
parentde216de5b32da73ce835d2a3d03b4dd44bfeaf6d (diff)
downloadSTC-modified-3776efeb26088cde334eda8e8dcda66431a9a0cf.tar.gz
STC-modified-3776efeb26088cde334eda8e8dcda66431a9a0cf.zip
Simplified and removed unneeded stuff from csview.h
Diffstat (limited to 'docs')
-rw-r--r--docs/cstr_api.md2
-rw-r--r--docs/csview_api.md3
2 files changed, 2 insertions, 3 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index cdb73a69..c26bb868 100644
--- a/docs/cstr_api.md
+++ b/docs/cstr_api.md
@@ -53,7 +53,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* str);
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* str, size_t n);
-size_t cstr_replace_all(cstr* self, const char* find, const char* replace);
+void cstr_replace_all(cstr* self, const char* find, const char* replace);
void cstr_erase(cstr* self, size_t pos);
void cstr_erase_n(cstr* self, size_t pos, size_t n);
diff --git a/docs/csview_api.md b/docs/csview_api.md
index bd4945c0..2906acdc 100644
--- a/docs/csview_api.md
+++ b/docs/csview_api.md
@@ -58,7 +58,7 @@ void csview_next(csview_iter_t* it);
#### Extended cstr methods
```c
cstr cstr_from_v(csview sv); // construct cstr from csview
-cstr cstr_from_replace_all(csview sv, csview find, csview replace);
+cstr cstr_from_replace_all_v(csview sv, csview find, csview replace);
csview cstr_sv(cstr s); // convert to csview from cstr
csview cstr_to_v(const cstr* self); // convert to csview from cstr*
@@ -69,7 +69,6 @@ cstr* cstr_assign_v(cstr* self, csview sv);
cstr* cstr_append_v(cstr* self, csview sv);
void cstr_insert_v(cstr* self, size_t pos, csview sv);
void cstr_replace_v(cstr* self, size_t pos, size_t len, csview sv);
-void cstr_replace_all_v(cstr* self, csview find, csview replace);
bool cstr_equals_v(cstr s, csview sv);
size_t cstr_find_v(cstr s, csview needle);