We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd8f37 commit ed94465Copy full SHA for ed94465
1 file changed
include/string/stdstring.h
@@ -98,23 +98,8 @@ static INLINE bool string_is_equal_case_insensitive(const char *a,
98
return (result == 0);
99
}
100
101
-static INLINE bool string_is_equal_noncase(const char *a, const char *b)
102
-{
103
- int result = 0;
104
- const unsigned char *p1 = (const unsigned char*)a;
105
- const unsigned char *p2 = (const unsigned char*)b;
106
-
107
- if (!a || !b)
108
- return false;
109
- if (p1 == p2)
110
111
112
- while ((result = tolower (*p1) - tolower (*p2++)) == 0)
113
- if (*p1++ == '\0')
114
- break;
115
116
- return (result == 0);
117
-}
+/* Deprecated alias, all callers should use string_is_equal_case_insensitive instead */
+#define string_is_equal_noncase string_is_equal_case_insensitive
118
119
char *string_to_upper(char *s);
120
0 commit comments