diff options
Diffstat (limited to 'src/string_utils.h')
-rw-r--r-- | src/string_utils.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/string_utils.h b/src/string_utils.h index 5cf7ba8c..2fb4f860 100644 --- a/src/string_utils.h +++ b/src/string_utils.h @@ -94,18 +94,6 @@ serd_to_lower(const char c) return (char)((c >= 'A' && c <= 'Z') ? c + 32 : c); } -static inline int -serd_strncasecmp(const char* s1, const char* s2, size_t n) -{ - for (; n > 0 && *s2; s1++, s2++, --n) { - if (serd_to_lower(*s1) != serd_to_lower(*s2)) { - return ((*(const uint8_t*)s1 < *(const uint8_t*)s2) ? -1 : +1); - } - } - - return 0; -} - static inline uint32_t utf8_num_bytes(const uint8_t leading) { |