Changeset 16017
- Timestamp:
- Apr 3, 2001, 7:45:54 PM (24 years ago)
- Location:
- tags/trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/include/heapstring.h ¶
r14982 r16017 1 /* $Id: heapstring.h,v 1.1 2 2000-10-03 19:21:43sandervl Exp $ */1 /* $Id: heapstring.h,v 1.13 2001-04-03 17:45:54 sandervl Exp $ */ 2 2 3 3 /* … … 11 11 #include <odin.h> 12 12 13 //used by Wine code 14 #define strcmpiW lstrcmpiW 13 #include <wine\unicode.h> 15 14 //SvL: strcase -> case insensitive! 16 15 #define strncasecmp lstrncmpiA 17 16 #define strcasecmp lstrcmpiA 18 #define strcpyW lstrcpyW19 #define strlenW lstrlenW20 17 #define strncmpiW lstrncmpiW 21 #define strncmpW lstrncmpW22 #define strcatW lstrcatW23 #define toupperW(a) (WCHAR)CharUpperW((LPWSTR)a)24 #define tolowerW(a) (WCHAR)CharLowerW((LPWSTR)a)25 18 #define _strlwr(a) strlwr(a) 26 19 -
TabularUnified tags/trunk/include/win/wine/unicode.h ¶
r16014 r16017 8 8 #define __WINE_UNICODE_H 9 9 10 #include "windef.h" 11 #ifndef USE_INLINE_UNICODEFUNCS 12 #include <heapstring.h> 10 #ifndef OS2_INCLUDED 11 #include <windef.h> 13 12 #endif 14 13 … … 70 69 } 71 70 72 #ifdef USE_INLINE_UNICODEFUNCS73 71 static inline WCHAR tolowerW( WCHAR ch ) 74 72 { … … 82 80 return ch + casemap_upper[casemap_upper[ch >> 8] + (ch & 0xff)]; 83 81 } 84 #endif85 82 86 83 /* the character type contains the C1_* flags in the low 12 bits */ … … 94 91 /* some useful string manipulation routines */ 95 92 96 #ifdef USE_INLINE_UNICODEFUNCS97 93 static inline unsigned int strlenW( const WCHAR *str ) 98 94 { … … 127 123 #else 128 124 WCHAR *p = dst; 129 while ((*p++ = *src++)); 125 while(*src) { 126 *p++ = *src++; 127 } 130 128 #endif 131 129 return dst; … … 175 173 { 176 174 WCHAR *ret = str; 177 while ((*str = tolowerW(*str))) str++; 175 while(*str) { 176 *str = tolowerW(*str); 177 str++; 178 } 178 179 return ret; 179 180 } … … 182 183 { 183 184 WCHAR *ret = str; 184 while ((*str = toupperW(*str))) str++; 185 while(*str) { 186 *str = toupperW(*str); 187 str++; 188 } 185 189 return ret; 186 190 } 187 #endif188 191 189 192 extern int strcmpiW( const WCHAR *str1, const WCHAR *str2 );
Note:
See TracChangeset
for help on using the changeset viewer.