Differences From Artifact [b84b15abc4]:
- File
src/OFXMLParser.m
— part of check-in
[da2701ad14]
at
2011-07-17 01:55:16
on branch trunk
— Define __NO_EXT_QNX in files using unistd.h or fcntl.h.
Without this, the headers try to declare functions that use __block as
an argument name and thus fail to compile when using -fblocks. (user: js, size: 26901) [annotate] [blame] [check-ins using]
To Artifact [a92b6c9809]:
- File src/OFXMLParser.m — part of check-in [f977192a23] at 2011-08-04 16:48:32 on branch trunk — Get rid of -[*FromIndex:toIndex:]. (user: js, size: 26886) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
72 73 74 75 76 77 78 |
withString: @"\n"];
[ret replaceOccurrencesOfString: @"\r"
withString: @"\n"];
if (cut > 0) {
size_t length = [ret length];
| | < | 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
withString: @"\n"];
[ret replaceOccurrencesOfString: @"\r"
withString: @"\n"];
if (cut > 0) {
size_t length = [ret length];
[ret deleteCharactersInRange: of_range(length - cut, cut)];
}
if (unescape)
return [ret stringByXMLUnescapingWithDelegate: delegate];
ret->isa = [OFString class];
return ret;
|
| ︙ | ︙ | |||
395 396 397 398 399 400 401 | char piDelimiter = 0; if (!acceptProlog) return NO; acceptProlog = NO; | | < | 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 |
char piDelimiter = 0;
if (!acceptProlog)
return NO;
acceptProlog = NO;
pi = [pi substringWithRange: of_range(3, [pi length] - 3)];
pi = [pi stringByDeletingEnclosingWhitespaces];
cString = [pi cString];
length = [pi cStringLength];
for (i = last = 0; i < length; i++) {
switch (piState) {
|
| ︙ | ︙ |