Differences From Artifact [bd18e10f31]:
- File
src/OFString+XMLEscaping.m
— part of check-in
[f5f074e27e]
at
2011-06-04 16:30:57
on branch trunk
— Also escape \r in -[stringByXMLEscaping].
This is the only way the \r does not get lost when parsing the XML! (user: js, size: 2261) [annotate] [blame] [check-ins using]
To Artifact [b9a4b4f8b8]:
- File src/OFString+XMLEscaping.m — part of check-in [0b846bcc4a] at 2011-07-08 15:29:27 on branch trunk — Make it possible to add more ivars to OFConstantString. (user: js, size: 2337) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
26 27 28 29 30 31 32 | int _OFString_XMLEscaping_reference; @implementation OFString (XMLEscaping) - (OFString*)stringByXMLEscaping { char *retCString; | | | > > > | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | int _OFString_XMLEscaping_reference; @implementation OFString (XMLEscaping) - (OFString*)stringByXMLEscaping { char *retCString; const char *string, *append; size_t length, retLength, appendLen; size_t i, j; OFString *ret; string = [self cString]; length = [self cStringLength]; j = 0; retLength = length; /* * We can't use allocMemoryWithSize: here as it might be a @"" literal */ if ((retCString = malloc(retLength)) == NULL) |
︙ | ︙ |