Differences From Artifact [21aaad94ff]:
- File src/OFMutableString.m — part of check-in [8a7ca573c4] at 2010-10-25 23:03:22 on branch trunk — Clean up a lot of code (mostly init methods) and fix a missing rethrow. (user: js, size: 12178) [annotate] [blame] [check-ins using]
To Artifact [b3b5f8f9a0]:
- File src/OFMutableString.m — part of check-in [5a75edd60e] at 2010-11-13 21:26:48 on branch trunk — Add -[OFMutableString prependString:]. (user: js, size: 12271) [annotate] [blame] [check-ins using]
︙ | |||
248 249 250 251 252 253 254 255 256 257 258 259 260 261 | 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 | + + + + + + | @try { [self appendCString: t]; } @finally { free(t); } } - (void)prependString: (OFString*)str { return [self insertString: str atIndex: 0]; } - (void)reverse { size_t i, j, len = length / 2; madvise(string, len, MADV_SEQUENTIAL); |
︙ |