summaryrefslogtreecommitdiffhomepage
path: root/include/stc
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 /include/stc
parentfea47e9b0b1f1137944a446d0d7e4b413f7bc2dd (diff)
downloadSTC-modified-d7656cbc37e9bb2829bb14946d4f05b451611205.tar.gz
STC-modified-d7656cbc37e9bb2829bb14946d4f05b451611205.zip
Finalized toupper/tolower.
Diffstat (limited to 'include/stc')
-rw-r--r--include/stc/cstr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stc/cstr.h b/include/stc/cstr.h
index d7e5dcd4..bfc3b51d 100644
--- a/include/stc/cstr.h
+++ b/include/stc/cstr.h
@@ -176,6 +176,12 @@ extern cstr cstr_casefold_sv(csview sv);
extern cstr cstr_tolower_sv(csview sv);
extern cstr cstr_toupper_sv(csview sv);
+STC_INLINE cstr cstr_tolower(const char* str)
+ { return cstr_tolower_sv(c_sv(str, strlen(str))); }
+
+STC_INLINE cstr cstr_toupper(const char* str)
+ { return cstr_toupper_sv(c_sv(str, strlen(str))); }
+
STC_INLINE void cstr_lowercase(cstr* self)
{ cstr_take(self, cstr_tolower_sv(cstr_sv(self))); }