diff options
| author | Tyge Løvset <[email protected]> | 2021-10-29 17:02:39 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-29 17:02:39 +0200 |
| commit | ead0b1d0c6cc724e7f2d7eb2ed9273dd7a18935f (patch) | |
| tree | c83eac9187b020e8510e3ee11e982a29f0c29152 /include/stc/alt | |
| parent | 9708235ec4147d2c0428c9ae5186fad452b116ad (diff) | |
| download | STC-modified-ead0b1d0c6cc724e7f2d7eb2ed9273dd7a18935f.tar.gz STC-modified-ead0b1d0c6cc724e7f2d7eb2ed9273dd7a18935f.zip | |
Swapped .._equals() and _equalto() functions for consistency
Diffstat (limited to 'include/stc/alt')
| -rw-r--r-- | include/stc/alt/cstr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/stc/alt/cstr.h b/include/stc/alt/cstr.h index e5dc65ec..98a090e0 100644 --- a/include/stc/alt/cstr.h +++ b/include/stc/alt/cstr.h @@ -163,15 +163,15 @@ STC_INLINE cstr_size_t cstr_capacity(cstr s) { return cstr_select_(&s, cap(&s));
}
-STC_INLINE bool cstr_equalto(cstr s1, const char* str) {
+STC_INLINE bool cstr_equals(cstr s1, const char* str) {
return strcmp(cstr_str(&s1), str) == 0;
}
-STC_INLINE bool cstr_equalto_s(cstr s1, cstr s2) {
+STC_INLINE bool cstr_equals_s(cstr s1, cstr s2) {
return strcmp(cstr_str(&s1), cstr_str(&s2)) == 0;
}
-STC_INLINE int cstr_equals(const cstr* s1, const cstr* s2) {
+STC_INLINE bool cstr_equalto(const cstr* s1, const cstr* s2) {
return strcmp(cstr_str(s1), cstr_str(s2)) == 0;
}
|
