Changeset 21916 for trunk/src/shlwapi/string_odin.cpp
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/src/shlwapi/string_odin.cpp
r21494 r21916 33 33 #include <ctype.h> 34 34 #include <wctype.h> 35 #ifndef __GNUC__ 35 36 #include <wcstr.h> 37 #else 38 #include <wchar.h> 39 #endif 36 40 #define HAVE_WCTYPE_H 37 41 … … 42 46 #include <heapstring.h> 43 47 #include <misc.h> 44 #include <win \shell.h>45 #include <win \winerror.h>48 #include <win/shell.h> 49 #include <win/winerror.h> 46 50 #include <winversion.h> 47 51 #include <winuser.h> … … 179 183 (lpString2 == NULL) ) 180 184 return 0; 181 185 182 186 LPSTR lpLoop = (LPSTR)lpString1; 183 187 184 188 for (; (*lpLoop != 0); lpLoop++ ) 185 189 if ( StrChrA( lpString2, *lpLoop ) ) 186 190 return (INT) (lpLoop - lpString1); 187 191 188 192 return (INT) (lpLoop - lpString1); 189 193 } … … 213 217 (lpString2 == NULL) ) 214 218 return 0; 215 219 216 220 LPWSTR lpLoop = (LPWSTR)lpString1; 217 221 218 222 for (; (*lpLoop != 0); lpLoop++ ) 219 223 if ( StrChrW( lpString2, *lpLoop ) ) 220 224 return (INT) (lpLoop - lpString1); 221 225 222 226 return (INT) (lpLoop - lpString1); 223 227 } … … 230 234 * Variables : 231 235 * Result : 232 * Remark : 236 * Remark : 233 237 * Status : UNTESTED 234 238 * … … 241 245 { 242 246 register LPSTR s1; 243 247 244 248 while (*lpString1) 245 249 { … … 255 259 lpString1++; 256 260 } 257 261 258 262 return (LPSTR)NULL; 259 263 } … … 266 270 * Variables : 267 271 * Result : 268 * Remark : 272 * Remark : 269 273 * Status : UNTESTED 270 274 * … … 277 281 { 278 282 register LPWSTR s1; 279 283 280 284 while (*lpString1) 281 285 { … … 291 295 lpString1++; 292 296 } 293 297 294 298 return (LPWSTR)NULL; 295 299 } … … 304 308 305 309 dprintf(("StrRStrIA %x %x %x NOT IMPLEMENTED correctly", lpFirst, lpSrch, unknown)); 306 310 307 311 // lpSrch cannot fit into lpFirst 308 312 if (iLen < 0) 309 313 return (LPSTR)NULL; 310 314 311 315 LPSTR lpThis = (LPSTR)lpFirst + iLen; 312 316 313 317 while (lpThis >= lpFirst) 314 318 { … … 318 322 lpThis--; 319 323 } 320 324 321 325 return NULL; 322 326 } … … 331 335 332 336 dprintf(("StrRStrIA %x %x %x NOT IMPLEMENTED correctly", lpFirst, lpSrch, unknown)); 333 337 334 338 // lpSrch cannot fit into lpFirst 335 339 if (iLen < 0) 336 340 return (LPWSTR)NULL; 337 341 338 342 LPWSTR lpThis = (LPWSTR)lpFirst + iLen; 339 343 340 344 while (lpThis >= lpFirst) 341 345 { … … 345 349 lpThis--; 346 350 } 347 351 348 352 return NULL; 349 353 }
Note:
See TracChangeset
for help on using the changeset viewer.