aboutsummaryrefslogtreecommitdiffstats
path: root/src/string_utils.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-08-11 23:28:18 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commitaa96c067439252b1955cfa11e75948d15f1b1656 (patch)
treebed2af41d7d4c3b94026b2732fbeeadca06f78ab /src/string_utils.h
parent339f9d90d1fe001978d15e1c007a3861a7145453 (diff)
downloadserd-aa96c067439252b1955cfa11e75948d15f1b1656.tar.gz
serd-aa96c067439252b1955cfa11e75948d15f1b1656.tar.bz2
serd-aa96c067439252b1955cfa11e75948d15f1b1656.zip
Expose serd_strncasecmp in public API
Diffstat (limited to 'src/string_utils.h')
-rw-r--r--src/string_utils.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/string_utils.h b/src/string_utils.h
index 3337f012..bd5dd9dd 100644
--- a/src/string_utils.h
+++ b/src/string_utils.h
@@ -107,18 +107,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 (*s1 < *s2) ? -1 : +1;
- }
- }
-
- return 0;
-}
-
static inline uint8_t
utf8_num_bytes(const uint8_t leading)
{