summaryrefslogtreecommitdiffhomepage
path: root/docs/cstr_api.md
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-08-08 17:11:07 +0200
committerTyge Løvset <[email protected]>2022-08-08 17:11:07 +0200
commitd7656cbc37e9bb2829bb14946d4f05b451611205 (patch)
treee6aae09c08305245bc4a4ad89b35f8449dfe69f4 /docs/cstr_api.md
parentfea47e9b0b1f1137944a446d0d7e4b413f7bc2dd (diff)
downloadSTC-modified-d7656cbc37e9bb2829bb14946d4f05b451611205.tar.gz
STC-modified-d7656cbc37e9bb2829bb14946d4f05b451611205.zip
Finalized toupper/tolower.
Diffstat (limited to 'docs/cstr_api.md')
-rw-r--r--docs/cstr_api.md13
1 files changed, 9 insertions, 4 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index eb788980..fffec64c 100644
--- a/docs/cstr_api.md
+++ b/docs/cstr_api.md
@@ -106,12 +106,18 @@ void cstr_next(cstr_iter* it);
// utf8 functions requires linking with src/utf8code.c symbols:
bool cstr_valid_utf8(const cstr* self); // check if str is valid utf8
-cstr cstr_tolower_sv(csview sv); // returns new lowercase utf8 cstr
-cstr cstr_toupper_sv(csview sv); // returns new uppercase utf8 cstr
cstr cstr_casefold_sv(csview sv); // returns new casefolded utf8 cstr
+
+cstr cstr_tolower(const char* str); // returns new lowercase utf8 cstr
+cstr cstr_tolower_sv(csview sv); // returns new lowercase utf8 cstr
void cstr_lowercase(cstr* self); // transform cstr to lowercase utf8
+
+cstr cstr_toupper(const char* str); // returns new uppercase utf8 cstr
+cstr cstr_toupper_sv(csview sv); // returns new uppercase utf8 cstr
void cstr_uppercase(cstr* self); // transform cstr to uppercase utf8
-bool cstr_iequals(cstr s, const char* str); // utf8 case-insensitive comparison
+
+int cstr_icmp(const cstr* s1, const cstr* s2); // utf8 case-insensitive comparison
+bool cstr_iequals(cstr s, const char* str); // "
bool cstr_istarts_with(cstr s, const char* str); // "
bool cstr_iends_with(cstr s, const char* str); // "
```
@@ -121,7 +127,6 @@ Note that all methods with arguments `(..., const char* str, size_t n)`, `n` mus
#### Helper methods:
```c
int cstr_cmp(const cstr *s1, const cstr *s2);
-int cstr_icmp(const cstr* s1, const cstr* s2); // utf8 case-insensitive comparison
bool cstr_eq(const cstr *s1, const cstr *s2);
bool cstr_hash(const cstr *s);