Added memicmpW.

This commit is contained in:
Alexandre Julliard 2004-04-02 19:40:31 +00:00
parent 6b1a93114a
commit 5333206978
4 changed files with 11 additions and 0 deletions

View File

@ -86,6 +86,7 @@ extern int wine_fold_string( int flags, const WCHAR *src, int srclen , WCHAR *ds
extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 );
extern int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n );
extern int memicmpW( const WCHAR *str1, const WCHAR *str2, int n );
extern WCHAR *strstrW( const WCHAR *str, const WCHAR *sub );
extern long int strtolW( const WCHAR *nptr, WCHAR **endptr, int base );
extern unsigned long int strtoulW( const WCHAR *nptr, WCHAR **endptr, int base );

View File

@ -42,6 +42,14 @@ int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n )
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 )
{
while (*str)

View File

@ -1,6 +1,7 @@
LIBRARY libwine_unicode.dll
EXPORTS
memicmpW
snprintfW
sprintfW
strcmpiW

View File

@ -1,6 +1,7 @@
WINE_1.0
{
global:
memicmpW;
snprintfW;
sprintfW;
strcmpiW;