2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/crtdll/mbstring/iskpun.c
6 * PROGRAMER: Boudewijn Dekker
10 #include <crtdll/mbstring.h>
11 #include <crtdll/mbctype.h>
12 #include <crtdll/ctype.h>
13 int colldif(unsigned short c1, unsigned short c2);
14 int _mbsicoll(const unsigned char *str1, const unsigned char *str2)
16 unsigned char *s1 = (unsigned char *)str1;
17 unsigned char *s2 = (unsigned char *)str2;
19 unsigned short *short_s1, *short_s2;
32 if (toupper(*s1) != toupper(*s2))
33 return colldif(*s1, *s2);
40 short_s1 = (unsigned short *)s1;
41 short_s2 = (unsigned short *)s2;
42 if ( _mbctoupper(*short_s1) != _mbctoupper(*short_s2 ))
43 return colldif(*short_s1, *short_s2);
51 return colldif(*s1, *s2);