Skip to content

Commit ed94465

Browse files
committed
Resync
1 parent cfd8f37 commit ed94465

1 file changed

Lines changed: 2 additions & 17 deletions

File tree

include/string/stdstring.h

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,23 +98,8 @@ static INLINE bool string_is_equal_case_insensitive(const char *a,
9898
return (result == 0);
9999
}
100100

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-
return false;
111-
112-
while ((result = tolower (*p1) - tolower (*p2++)) == 0)
113-
if (*p1++ == '\0')
114-
break;
115-
116-
return (result == 0);
117-
}
101+
/* Deprecated alias, all callers should use string_is_equal_case_insensitive instead */
102+
#define string_is_equal_noncase string_is_equal_case_insensitive
118103

119104
char *string_to_upper(char *s);
120105

0 commit comments

Comments
 (0)