summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2021-08-29 10:41:06 +0200
committerTyge Lovset <[email protected]>2021-08-29 10:41:06 +0200
commit6371e122b2447f08c8d8859b3530d79be1831f10 (patch)
tree213999839b3ad7653654019f3faf4d568b2b4b7e /docs
parent28bf4ac92625b2ec7c4ddade9c14a4363ebd2681 (diff)
downloadSTC-modified-6371e122b2447f08c8d8859b3530d79be1831f10.tar.gz
STC-modified-6371e122b2447f08c8d8859b3530d79be1831f10.zip
Replaced cstr_toraw (deprecated) with cstr_str used to convert from cstr to const char*.
Diffstat (limited to 'docs')
-rw-r--r--docs/cdeq_api.md2
-rw-r--r--docs/clist_api.md2
-rw-r--r--docs/cstr_api.md4
-rw-r--r--docs/cvec_api.md2
4 files changed, 5 insertions, 5 deletions
diff --git a/docs/cdeq_api.md b/docs/cdeq_api.md
index 42e46240..83c0f19f 100644
--- a/docs/cdeq_api.md
+++ b/docs/cdeq_api.md
@@ -23,7 +23,7 @@ be replaced by `i` in all of the following documentation.
`using_cdeq_str()` is a shorthand for:
```
-using_cdeq(str, cstr, c_rawstr_compare, cstr_del, cstr_from, cstr_toraw, const char*)
+using_cdeq(str, cstr, c_rawstr_compare, cstr_del, cstr_from, cstr_str, const char*)
```
## Methods
diff --git a/docs/clist_api.md b/docs/clist_api.md
index 2028e764..b57662ca 100644
--- a/docs/clist_api.md
+++ b/docs/clist_api.md
@@ -35,7 +35,7 @@ The macro `using_clist()` must be instantiated in the global scope. `X` is a typ
will affect the names of all clist types and methods. E.g. declaring `using_clist(i, int);`, `X` should
be replaced by `i` in all of the following documentation. `using_clist_str()` is a shorthand for
```c
-using_clist(str, cstr, c_rawstr_compare, cstr_del, cstr_from, cstr_toraw, const char*)
+using_clist(str, cstr, c_rawstr_compare, cstr_del, cstr_from, cstr_str, const char*)
```
## Methods
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index 1acceec2..fd2b241f 100644
--- a/docs/cstr_api.md
+++ b/docs/cstr_api.md
@@ -28,6 +28,8 @@ cstr* cstr_take(cstr* self, cstr s); // take th
cstr cstr_move(cstr* self); // move string to caller, leave empty string
void cstr_del(cstr *self); // destructor
+const char* cstr_str(const cstr* self); // self->str
+char* cstr_data(cstr* self); // self->str
size_t cstr_size(cstr s);
size_t cstr_length(cstr s);
size_t cstr_capacity(cstr s);
@@ -89,8 +91,6 @@ Note that all methods with arguments `(..., const char* str, size_t n)`, `n` mus
#### Helper methods:
```c
-const char* cstr_toraw(const cstr* self);
-
int cstr_compare(const cstr *s1, const cstr *s2);
bool cstr_equals(const cstr *s1, const cstr *s2);
bool cstr_hash(const cstr *s, ...);
diff --git a/docs/cvec_api.md b/docs/cvec_api.md
index 016d82e3..5a98b9ca 100644
--- a/docs/cvec_api.md
+++ b/docs/cvec_api.md
@@ -27,7 +27,7 @@ be replaced by `i` in all of the following documentation.
`using_cvec_str()` is a shorthand for:
```
-using_cvec(str, cstr, c_rawstr_compare, cstr_del, cstr_from, cstr_toraw, const char*)
+using_cvec(str, cstr, c_rawstr_compare, cstr_del, cstr_from, cstr_str, const char*)
```
## Methods