| * Unicode string manipulation functions |
| * Copyright 2000 Alexandre Julliard |
| #include "wine/unicode.h" |
| int strcmpiW( const WCHAR *str1, const WCHAR *str2 ) |
| int ret = toupperW(*str1) - toupperW(*str2); |
| if (ret || !*str1) return ret; |
| int strncmpiW( const WCHAR *str1, const WCHAR *str2, int n ) |
| for ( ; n > 0; n--, str1++, str2++) |
| if ((ret = toupperW(*str1) - toupperW(*str2)) || !*str1) break; |
| WCHAR *strstrW( const WCHAR *str, const WCHAR *sub ) |
| const WCHAR *p1 = str, *p2 = sub; |
| while (*p1 && *p2 && *p1 == *p2) { p1++; p2++; } |
| if (!*p2) return (WCHAR *)str; |