summaryrefslogtreecommitdiffhomepage
path: root/docs/csview_api.md
diff options
context:
space:
mode:
authortylov <[email protected]>2023-08-14 09:42:35 +0200
committertylov <[email protected]>2023-08-14 09:42:35 +0200
commitfb5863de1d6ea8a5be8371e57bcd58bf31798a0a (patch)
treee2bc5d08051fd275e697472f6e5a70dd6ab6cb64 /docs/csview_api.md
parent25dc58db206714dc02c1ae0548f6ba7dd3519d29 (diff)
downloadSTC-modified-fb5863de1d6ea8a5be8371e57bcd58bf31798a0a.tar.gz
STC-modified-fb5863de1d6ea8a5be8371e57bcd58bf31798a0a.zip
Finished last commit (cleanup, fixes).
Diffstat (limited to 'docs/csview_api.md')
-rw-r--r--docs/csview_api.md8
1 files changed, 3 insertions, 5 deletions
diff --git a/docs/csview_api.md b/docs/csview_api.md
index 4fdff0d1..f7e0e2b0 100644
--- a/docs/csview_api.md
+++ b/docs/csview_api.md
@@ -23,17 +23,15 @@ All csview definitions and prototypes are available by including a single header
```c
csview c_sv(const char literal_only[]); // construct from literal, no strlen()
-csview c_sv(const char* str, intptr_t n); // construct from str and length n
csview csview_from(const char* str); // construct from const char*
-csview csview_from_n(const char* str, intptr_t n); // alias for c_sv(str, n)
intptr_t csview_size(csview sv);
-bool csview_empty(csview sv);
+bool csview_empty(csview sv); // check if size == 0
void csview_clear(csview* self);
+csubstr csview_ss(csview sv); // convert to csubstr type
-bool csview_equals(csview sv, csview sv2);
+bool csview_equals(csview sv, const char* str);
intptr_t csview_find(csview sv, const char* str);
-intptr_t csview_find_sv(csview sv, csview find);
bool csview_contains(csview sv, const char* str);
bool csview_starts_with(csview sv, const char* str);
bool csview_ends_with(csview sv, const char* str);