diff options
| author | Tyge Løvset <[email protected]> | 2022-08-08 17:11:07 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-08-08 17:11:07 +0200 |
| commit | d7656cbc37e9bb2829bb14946d4f05b451611205 (patch) | |
| tree | e6aae09c08305245bc4a4ad89b35f8449dfe69f4 /include | |
| parent | fea47e9b0b1f1137944a446d0d7e4b413f7bc2dd (diff) | |
| download | STC-modified-d7656cbc37e9bb2829bb14946d4f05b451611205.tar.gz STC-modified-d7656cbc37e9bb2829bb14946d4f05b451611205.zip | |
Finalized toupper/tolower.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/cstr.h | 6 |
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))); } |
