Ignore:
Timestamp:
Mar 16, 2002, 8:53:47 AM (23 years ago)
Author:
umoeller
Message:

Misc updates for Unicode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/xstring.c

    r144 r147  
    10641064            do  // while p
    10651065            {
    1066                 p = (PSZ)strhmemfind(p,         // in: haystack
    1067                                      pxstr->ulLength - (p - pxstr->psz),
    1068                                                 // remaining length of haystack
    1069                                      pstrFind->psz,
    1070                                      ulFoundLen,
    1071                                      pShiftTable,
    1072                                      pfRepeatFind);
    1073                 if (p)
     1066                if (p = (PSZ)strhmemfind(p,         // in: haystack
     1067                                         pxstr->ulLength - (p - pxstr->psz),
     1068                                                    // remaining length of haystack
     1069                                         pstrFind->psz,
     1070                                         ulFoundLen,
     1071                                         pShiftTable,
     1072                                         pfRepeatFind))
    10741073                {
    10751074                    // string found:
     
    11871186            // yes:
    11881187            ULONG   ulOfs = *pulOfs;
    1189             PCSZ pFound
    1190                 = (PCSZ)strhmemfind(pxstr->psz + ulOfs, // in: haystack
    1191                                             pxstr->ulLength - ulOfs,
    1192                                             pstrSearch->psz,
    1193                                             cSearchLen,
    1194                                             pShiftTable,
    1195                                             pfRepeatFind);
    1196             if (pFound)
     1188            PCSZ pFound;
     1189            if (pFound = (PCSZ)strhmemfind(pxstr->psz + ulOfs, // in: haystack
     1190                                           pxstr->ulLength - ulOfs,
     1191                                           pstrSearch->psz,
     1192                                           cSearchLen,
     1193                                           pShiftTable,
     1194                                           pfRepeatFind))
    11971195            {
    11981196                ULONG ulFirstReplOfs = pFound - pxstr->psz;
Note: See TracChangeset for help on using the changeset viewer.