Changeset 5456 for trunk/include/win/wine/unicode.h
- Timestamp:
- Apr 3, 2001, 7:45:54 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/wine/unicode.h
r5453 r5456 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.