summaryrefslogtreecommitdiffhomepage
path: root/docs/cstr_api.md
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/cstr_api.md
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/cstr_api.md')
-rw-r--r--docs/cstr_api.md4
1 files changed, 2 insertions, 2 deletions
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, ...);