Ignore:
Timestamp:
Jul 15, 2001, 10:57:25 AM (24 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

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

    r74 r86  
    705705 *      "cReplaceWithLen" characters from pcszReplaceWith.
    706706 *
     707 *      If cReplaceWithLen is 0, characters are removed only.
     708 *
    707709 *      Returns the new length of the string, excluding
    708710 *      the null terminator, or 0 if the replacement failed
     
    739741 *@@changed V0.9.9 (2001-03-09) [umoeller]: now using xstrReserve
    740742 *@@changed V0.9.11 (2001-04-22) [umoeller]: replaced replacement XSTRING with PCSZ
     743 *@@changed V0.9.14 (2001-07-07) [umoeller]: this did nothing if cReplaceWithLen == 0, fixed
    741744 */
    742745
     
    753756    if (    (pxstr)         // V0.9.9 (2001-02-14) [umoeller]
    754757         && (ulFirstReplOfs + cReplLen <= pxstr->ulLength)
    755          && (pcszReplaceWith)
     758         && (    (pcszReplaceWith)
     759              || (cReplaceWithLen == 0)     // fixed V0.9.14 (2001-07-07) [umoeller]
     760            )
    756761       )
    757762    {
Note: See TracChangeset for help on using the changeset viewer.