summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstr.h
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 /include/stc/cstr.h
parent25dc58db206714dc02c1ae0548f6ba7dd3519d29 (diff)
downloadSTC-modified-fb5863de1d6ea8a5be8371e57bcd58bf31798a0a.tar.gz
STC-modified-fb5863de1d6ea8a5be8371e57bcd58bf31798a0a.zip
Finished last commit (cleanup, fixes).
Diffstat (limited to 'include/stc/cstr.h')
-rw-r--r--include/stc/cstr.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/stc/cstr.h b/include/stc/cstr.h
index 47cf65da..ce398628 100644
--- a/include/stc/cstr.h
+++ b/include/stc/cstr.h
@@ -115,7 +115,7 @@ STC_INLINE cstr cstr_from(const char* str)
STC_INLINE cstr cstr_from_ss(csubstr sv)
{ return cstr_from_n(sv.str, sv.size); }
-STC_INLINE cstr cstr_from_v(csview sv)
+STC_INLINE cstr cstr_from_sv(csview sv)
{ return cstr_from_n(sv.str, sv.size); }
STC_INLINE cstr cstr_with_size(const intptr_t size, const char value) {
@@ -252,9 +252,6 @@ STC_INLINE bool cstr_equals(const cstr* self, const char* str)
STC_INLINE bool cstr_equals_ss(const cstr* self, csubstr sv)
{ return sv.size == cstr_size(self) && !c_memcmp(cstr_str(self), sv.str, sv.size); }
-STC_INLINE bool cstr_equals_sv(const cstr* self, csview sv)
- { return sv.size == cstr_size(self) && !c_memcmp(cstr_str(self), sv.str, sv.size); }
-
STC_INLINE bool cstr_equals_s(const cstr* self, cstr s)
{ return !cstr_cmp(self, &s); }