Changeset 137 for trunk/src/helpers/xstring.c
- Timestamp:
- Feb 4, 2002, 6:32:38 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/xstring.c
r132 r137 478 478 PXSTRING xstrCreate(ULONG ulPreAllocate) 479 479 { 480 PXSTRING pxstr = (PXSTRING)malloc(sizeof(XSTRING));481 if (pxstr )480 PXSTRING pxstr; 481 if (pxstr = (PXSTRING)malloc(sizeof(XSTRING))) 482 482 xstrInit(pxstr, ulPreAllocate); 483 483 … … 1404 1404 *@@added V0.9.9 (2001-02-28) [umoeller] 1405 1405 *@@changed V0.9.9 (2001-03-06) [lafaix]: removed memory allocation 1406 */ 1407 1408 ULONG xstrDecode(PXSTRING pxstr) // in/out: string to be decoded 1406 *@@changed V0.9.16 (2002-02-02) [umoeller]: added cKey 1407 */ 1408 1409 ULONG xstrDecode2(PXSTRING pxstr, // in/out: string to be decoded 1410 CHAR cKey) // in: encoding key (normally '%') 1409 1411 { 1410 1412 ULONG ulrc = 0; … … 1423 1425 // pSource points to next char now 1424 1426 1425 if (c == '%')1427 if (c == cKey) 1426 1428 { 1427 1429 static char ach[] = "0123456789ABCDEF"; … … 1453 1455 1454 1456 // not encoding, or null after '%', or invalid encoding: 1455 // just copy this1457 // just leave thisalone 1456 1458 *pDest++ = c; 1457 1459 } // while ((ch = *pSource++)) … … 1465 1467 1466 1468 return (ulrc); 1469 } 1470 1471 /* 1472 *@@ xstrDecode: 1473 * added for compatibility with exports. 1474 * 1475 *@@added V0.9.16 (2002-02-02) [umoeller] 1476 */ 1477 1478 ULONG xstrDecode(PXSTRING pxstr) 1479 { 1480 return (xstrDecode2(pxstr, '%')); 1467 1481 } 1468 1482
Note:
See TracChangeset
for help on using the changeset viewer.