2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/msvcrt/mbstring/mbsicoll.c
14 int colldif(unsigned short c1
, unsigned short c2
);
18 int _mbsicoll(const unsigned char *str1
, const unsigned char *str2
)
20 unsigned char *s1
= (unsigned char *)str1
;
21 unsigned char *s2
= (unsigned char *)str2
;
23 unsigned short *short_s1
, *short_s2
;
36 if (toupper(*s1
) != toupper(*s2
))
37 return colldif(*s1
, *s2
);
44 short_s1
= (unsigned short *)s1
;
45 short_s2
= (unsigned short *)s2
;
46 if ( _mbctoupper(*short_s1
) != _mbctoupper(*short_s2
))
47 return colldif(*short_s1
, *short_s2
);
55 return colldif(*s1
, *s2
);