Differences From Artifact [3568485abb]:
- File
src/OFXMLParser.m
— part of check-in
[37db8f0fb3]
at
2010-04-17 22:27:17
on branch trunk
— New ivar naming convention.
ivars are now named like this: thisIsAnIVar. If an accessor exists for
the ivar, the ivar is named like the accessor. This is required for
@property to work. (user: js, size: 13765) [annotate] [blame] [check-ins using]
To Artifact [e53641c3ce]:
- File src/OFXMLParser.m — part of check-in [0166740a39] at 2010-04-30 12:56:57 on branch trunk — We can't use isUTF8 here as it might be an OFConstString. (user: js, size: 13904) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
508 509 510 511 512 513 514 | size_t i, last; BOOL in_entity; OFMutableString *ret; last = 0; in_entity = NO; ret = [OFMutableString string]; | > > > | > > > > | | 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 | size_t i, last; BOOL in_entity; OFMutableString *ret; last = 0; in_entity = NO; ret = [OFMutableString string]; switch (of_string_check_utf8(string, length)) { case 1: ((OFString*)ret)->isUTF8 = YES; break; case -1: @throw [OFInvalidEncodingException newWithClass: isa]; } for (i = 0; i < length; i++) { if (!in_entity && string[i] == '&') { [ret appendCStringWithoutUTF8Checking: string + last length: i - last]; last = i + 1; in_entity = YES; } else if (in_entity && string[i] == ';') { char *entity = string + last; size_t len = i - last; |
︙ | ︙ |