Changeset 335 for trunk/src/helpers/stringh.c
- Timestamp:
- Sep 11, 2006, 1:09:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/stringh.c
r332 r335 1447 1447 * 1448 1448 *@@added V0.9.0 [umoeller] 1449 *@@changed V1.0.13 (2006-09-10) [pr]: improved parsing 1449 1450 */ 1450 1451 … … 1463 1464 // determine end character to search for: a space 1464 1465 CHAR cEnd = ' '; 1465 if (*pParam == '\"')1466 {1467 // or, if the data is enclosed in quotes, a quote1468 cEnd = '\"';1469 pParam++;1470 }1471 1472 1466 // V1.0.3 (2004-11-10) [pr]: @@fixes 461 1473 if (*pParam == '\'') 1474 { 1475 // or, if the data is enclosed in single quotes, a single quote 1476 cEnd = '\''; 1467 // V1.0.13 (2006-09-10) [pr]: optimized 1468 if ((*pParam == '\"') || (*pParam == '\'')) 1469 { 1470 // or, if the data is enclosed in quotes, a quote or single quote 1471 cEnd = *pParam; 1477 1472 pParam++; 1478 1473 } … … 1486 1481 while (*pParam) 1487 1482 { 1488 if (*pParam == cEnd) 1483 // V1.0.13 (2006-09-10) [pr]: line end terminates non-quoted attribute 1484 if ( ( (cEnd == ' ') 1485 && ((*pParam == ' ') || (*pParam == '\r') || (*pParam == '\n'))) 1486 || (*pParam == cEnd) 1487 ) 1489 1488 // end character found 1490 1489 break;
Note:
See TracChangeset
for help on using the changeset viewer.