mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:25:41 +00:00
Sync to Wine-20040408:
Alexandre Julliard: - Added memicmpW. svn path=/trunk/; revision=9158
This commit is contained in:
parent
e20e56a546
commit
36e8261e77
3 changed files with 17 additions and 6 deletions
|
@ -36,6 +36,7 @@
|
||||||
#undef strcmpiW
|
#undef strcmpiW
|
||||||
#undef strncmpiW
|
#undef strncmpiW
|
||||||
#undef sprintfW
|
#undef sprintfW
|
||||||
|
#undef snprintfW
|
||||||
|
|
||||||
int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
|
int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
|
||||||
{
|
{
|
||||||
|
@ -56,6 +57,14 @@ int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int memicmpW( const WCHAR *str1, const WCHAR *str2, int n )
|
||||||
|
{
|
||||||
|
int ret = 0;
|
||||||
|
for ( ; n > 0; n--, str1++, str2++)
|
||||||
|
if ((ret = tolowerW(*str1) - tolowerW(*str2))) break;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )
|
WCHAR *strstrW( const WCHAR *str, const WCHAR *sub )
|
||||||
{
|
{
|
||||||
while (*str)
|
while (*str)
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
LIBRARY libwine_unicode.dll
|
LIBRARY libwine_unicode.dll
|
||||||
|
|
||||||
EXPORTS
|
EXPORTS
|
||||||
snprintfW=_snwprintf
|
memicmpW
|
||||||
|
snprintfW
|
||||||
sprintfW
|
sprintfW
|
||||||
strcmpiW
|
strcmpiW
|
||||||
strncmpiW
|
strncmpiW
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
Index: string.c
|
Index: string.c
|
||||||
===================================================================
|
===================================================================
|
||||||
RCS file: /home/wine/wine/libs/unicode/string.c,v
|
RCS file: /home/wine/wine/libs/unicode/string.c,v
|
||||||
retrieving revision 1.4
|
retrieving revision 1.5
|
||||||
diff -u -r1.4 string.c
|
diff -u -r1.5 string.c
|
||||||
--- string.c 22 Nov 2003 00:00:53 -0000 1.4
|
--- string.c 2 Apr 2004 19:40:31 -0000 1.5
|
||||||
+++ string.c 2 Jan 2004 19:09:14 -0000
|
+++ string.c 16 Apr 2004 09:07:08 -0000
|
||||||
@@ -23,6 +23,20 @@
|
@@ -23,6 +23,21 @@
|
||||||
|
|
||||||
#include "wine/unicode.h"
|
#include "wine/unicode.h"
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ diff -u -r1.4 string.c
|
||||||
+#undef strcmpiW
|
+#undef strcmpiW
|
||||||
+#undef strncmpiW
|
+#undef strncmpiW
|
||||||
+#undef sprintfW
|
+#undef sprintfW
|
||||||
|
+#undef snprintfW
|
||||||
+
|
+
|
||||||
int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
|
int strcmpiW( const WCHAR *str1, const WCHAR *str2 )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue