Changeset 335 for branches/branch-1-0/src/helpers
- Timestamp:
- Sep 11, 2006, 1:09:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/branch-1-0/src/helpers/stringh.c
r332 r335 1273 1273 * 1274 1274 *@@added V0.9.0 [umoeller] 1275 *@@changed V1.0.13 (2006-09-10) [pr]: improved parsing 1275 1276 */ 1276 1277 … … 1289 1290 // determine end character to search for: a space 1290 1291 CHAR cEnd = ' '; 1291 if (*pParam == '\"')1292 {1293 // or, if the data is enclosed in quotes, a quote1294 cEnd = '\"';1295 pParam++;1296 }1297 1298 1292 // V1.0.3 (2004-11-10) [pr]: @@fixes 461 1299 if (*pParam == '\'') 1300 { 1301 // or, if the data is enclosed in single quotes, a single quote 1302 cEnd = '\''; 1293 // V1.0.13 (2006-09-10) [pr]: optimized 1294 if ((*pParam == '\"') || (*pParam == '\'')) 1295 { 1296 // or, if the data is enclosed in quotes, a quote or single quote 1297 cEnd = *pParam; 1303 1298 pParam++; 1304 1299 } … … 1312 1307 while (*pParam) 1313 1308 { 1314 if (*pParam == cEnd) 1309 // V1.0.13 (2006-09-10) [pr]: line end terminates non-quoted attribute 1310 if ( ( (cEnd == ' ') 1311 && ((*pParam == ' ') || (*pParam == '\r') || (*pParam == '\n'))) 1312 || (*pParam == cEnd) 1313 ) 1315 1314 // end character found 1316 1315 break;
Note:
See TracChangeset
for help on using the changeset viewer.