- Timestamp:
- Feb 14, 2016, 2:29:03 PM (10 years ago)
- Location:
- branches/swt
- Files:
-
- 3 edited
-
include/heapstring.h (modified) (2 diffs)
-
include/win/winbase.h (modified) (1 diff)
-
src/kernel32/heapstring.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/swt/include/heapstring.h
r21916 r22123 8 8 9 9 #include <odin.h> 10 10 #include <string.h> 11 11 #include <wine/unicode.h> 12 12 //SvL: strcase -> case insensitive! … … 34 34 int WIN32API lstrcmpA (LPCSTR arg1, LPCSTR arg2); 35 35 int WIN32API lstrcmpW (LPCWSTR arg1, LPCWSTR arg2); 36 int WIN32API lstrncmpA (LPCSTR arg1, LPCSTR arg2, int i);37 int WIN32API lstrncmpW (LPCWSTR arg1, LPCWSTR arg2, int i);38 int WIN32API lstrncmpiA (LPCSTR arg1, LPCSTR arg2, int i);39 int WIN32API lstrncmpiW (LPCWSTR arg1, LPCWSTR arg2, int i);36 int WIN32API lstrncmpA (LPCSTR arg1, LPCSTR arg2, size_t l); 37 int WIN32API lstrncmpW (LPCWSTR arg1, LPCWSTR arg2, size_t l); 38 int WIN32API lstrncmpiA (LPCSTR arg1, LPCSTR arg2, size_t l); 39 int WIN32API lstrncmpiW (LPCWSTR arg1, LPCWSTR arg2, size_t l); 40 40 #define lstrcmpniW lstrncmpiW 41 41 LPSTR WIN32API lstrcpyA (LPSTR arg1, LPCSTR arg2); -
branches/swt/include/win/winbase.h
r22081 r22123 2271 2271 INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR); 2272 2272 #define lstrcmpi WINELIB_NAME_AW(lstrcmpi) 2273 int WINAPI lstrncmpiA(LPCSTR, LPCSTR, int);2274 int WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, int);2273 int WINAPI lstrncmpiA(LPCSTR, LPCSTR, size_t); 2274 int WINAPI lstrncmpiW(LPCWSTR, LPCWSTR, size_t); 2275 2275 #define lstrncmpi WINELIB_NAME_AW(lstrncmpi) 2276 2276 -
branches/swt/src/kernel32/heapstring.cpp
r21916 r22123 198 198 *****************************************************************************/ 199 199 200 int WIN32API lstrncmpA(LPCSTR arg1, LPCSTR arg2, int l)200 int WIN32API lstrncmpA(LPCSTR arg1, LPCSTR arg2, size_t l) 201 201 { 202 202 dprintf2(("KERNEL32: lstrncmpA(%s,%s,%d)\n", … … 219 219 * Author : Przemyslaw Dobrowolski 220 220 *****************************************************************************/ 221 int WIN32API lstrncmpiA(LPCSTR str1, LPCSTR str2, INT n)221 int WIN32API lstrncmpiA(LPCSTR str1, LPCSTR str2, size_t l) 222 222 { 223 223 INT firstch,lastch; 224 224 INT result = 0; 225 225 226 if ( n)226 if (l) 227 227 { 228 228 do … … 232 232 str1++; 233 233 str2++; 234 } while (-- n&& *str1 && *str2 && firstch == lastch);234 } while (--l && *str1 && *str2 && firstch == lastch); 235 235 236 236 result = firstch - lastch; … … 240 240 } 241 241 //TODO: Don't know if this is completely correct 242 int WIN32API lstrncmpiW(LPCWSTR str1, LPCWSTR str2, int n)242 int WIN32API lstrncmpiW(LPCWSTR str1, LPCWSTR str2, size_t l) 243 243 { 244 244 INT firstch,lastch; 245 245 INT result = 0; 246 246 247 if ( n)247 if (l) 248 248 { 249 249 do … … 253 253 str1++; 254 254 str2++; 255 } while (-- n&& *str1 && *str2 && firstch == lastch);255 } while (--l && *str1 && *str2 && firstch == lastch); 256 256 257 257 result = firstch - lastch; … … 300 300 *****************************************************************************/ 301 301 302 int WIN32API lstrncmpW(LPCWSTR arg1, LPCWSTR arg2, int l)302 int WIN32API lstrncmpW(LPCWSTR arg1, LPCWSTR arg2, size_t l) 303 303 { 304 304 dprintf2(("KERNEL32: lstrncmpW(%08xh,%08xh,%d)\n",
Note:
See TracChangeset
for help on using the changeset viewer.
