Differences From Artifact [be2a2ed79d]:
- File
src/OFString+XMLUnescaping.m
— part of check-in
[e2b06423e0]
at
2010-09-05 23:19:08
on branch trunk
— Replace OFObject* with id in many places.
We assume now that every object understands retain, release, etc. so
that we can weaken the type from OFObject* to id. This makes it
possible to use different root object classes. (user: js, size: 3863) [annotate] [blame] [check-ins using]
To Artifact [5bd62589b9]:
- File src/OFString+XMLUnescaping.m — part of check-in [523bf78c46] at 2010-09-20 11:14:34 on branch trunk — Small optimization for ASCII strings in -[stringByXMLUnescaping]. (user: js, size: 3734) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
80 81 82 83 84 85 86 | size_t i, last; BOOL in_entity; OFMutableString *ret; last = 0; in_entity = NO; ret = [OFMutableString string]; | < < < | < < < < | 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | size_t i, last; BOOL in_entity; OFMutableString *ret; last = 0; in_entity = NO; ret = [OFMutableString string]; ((OFString*)ret)->isUTF8 = [self isUTF8]; for (i = 0; i < length; i++) { if (!in_entity && string[i] == '&') { [ret appendCStringWithoutUTF8Checking: string + last length: i - last]; last = i + 1; |
︙ | ︙ |