Ignore:
Timestamp:
Sep 5, 2001, 3:54:53 PM (24 years ago)
Author:
bird
Message:

Added $Id:$ keyword.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/string_odin.cpp

    r6608 r6650  
    1  /* $Id: string_odin.cpp,v 1.4 2001-08-30 19:19:59 phaller Exp $ */
    2 
     1/* $Id: string_odin.cpp,v 1.5 2001-09-05 13:48:39 bird Exp $ */
    32/*
    43 * Win32 Lightweight SHELL32 for OS/2
     
    294293       (lpString2 == NULL) )
    295294    return 0;
    296  
     295
    297296  LPSTR lpLoop = (LPSTR)lpString1;
    298  
     297
    299298  for (; (*lpLoop != 0); lpLoop++ )
    300299    if ( StrChrA( lpString2, *lpLoop ) )
    301300      return (INT) (lpLoop - lpString1);
    302  
     301
    303302  return (INT) (lpLoop - lpString1);
    304303}
     
    328327       (lpString2 == NULL) )
    329328    return 0;
    330  
     329
    331330  LPWSTR lpLoop = (LPWSTR)lpString1;
    332  
     331
    333332  for (; (*lpLoop != 0); lpLoop++ )
    334333    if ( StrChrW( lpString2, *lpLoop ) )
    335334      return (INT) (lpLoop - lpString1);
    336  
     335
    337336  return (INT) (lpLoop - lpString1);
    338337}
     
    345344 * Variables :
    346345 * Result    :
    347  * Remark    : 
     346 * Remark    :
    348347 * Status    : UNTESTED
    349348 *
     
    356355{
    357356  register LPSTR s1;
    358  
     357
    359358  while (*lpString1)
    360359  {
     
    370369    lpString1++;
    371370  }
    372  
     371
    373372  return (LPSTR)NULL;
    374373}
     
    381380 * Variables :
    382381 * Result    :
    383  * Remark    : 
     382 * Remark    :
    384383 * Status    : UNTESTED
    385384 *
     
    392391{
    393392  register LPWSTR s1;
    394  
     393
    395394  while (*lpString1)
    396395  {
     
    406405    lpString1++;
    407406  }
    408  
     407
    409408  return (LPWSTR)NULL;
    410409}
     
    412411
    413412/*************************************************************************
    414  * StrRStrIA                                    [SHLWAPI]
     413 * StrRStrIA                    [SHLWAPI]
    415414 */
    416415LPSTR WINAPI StrRStrIA(LPCSTR lpFirst, LPCSTR lpSrch)
    417416{
    418417  INT   iLen = lstrlenA(lpFirst) - lstrlenA(lpSrch);
    419  
     418
    420419  // lpSrch cannot fit into lpFirst
    421420  if (iLen < 0)
    422421    return (LPSTR)NULL;
    423  
     422
    424423  LPSTR lpThis = (LPSTR)lpFirst + iLen;
    425  
     424
    426425  while (lpThis >= lpFirst)
    427426  {
     
    431430    lpThis--;
    432431  }
    433  
     432
    434433  return NULL;
    435434}
     
    437436
    438437/*************************************************************************
    439  * StrRStrIW                                    [SHLWAPI]
     438 * StrRStrIW                    [SHLWAPI]
    440439 */
    441440LPWSTR WINAPI StrRStrIW(LPCWSTR lpFirst, LPCWSTR lpSrch)
    442441{
    443442  INT   iLen = lstrlenW(lpFirst) - lstrlenW(lpSrch);
    444  
     443
    445444  // lpSrch cannot fit into lpFirst
    446445  if (iLen < 0)
    447446    return (LPWSTR)NULL;
    448  
     447
    449448  LPWSTR lpThis = (LPWSTR)lpFirst + iLen;
    450  
     449
    451450  while (lpThis >= lpFirst)
    452451  {
     
    456455    lpThis--;
    457456  }
    458  
     457
    459458  return NULL;
    460459}
Note: See TracChangeset for help on using the changeset viewer.