just avoid memicmp completely

This commit is contained in:
Glenn Maynard
2003-07-03 19:42:48 +00:00
parent 43ee885cd7
commit ddf76cefc9
2 changed files with 19 additions and 25 deletions
-14
View File
@@ -822,20 +822,6 @@ CString WcharToUTF8( wchar_t c )
return CString(buf, cnt);
}
#if !defined(WIN32)
/* XXX autoconf this */
int memicmp(const char *s1, const char *s2, size_t n)
{
for(size_t i = 0; i < n; ++i)
{
char c1 = tolower(s1[i]);
char c2 = tolower(s2[i]);
if(c1 < c2) return -1;
if(c1 > c2) return 1;
}
return 0;
}
#endif
/* Replace &#nnnn; (decimal) &xnnnn; (hex) with corresponding UTF-8 characters. */
void Replace_Unicode_Markers( CString &Text )