Differences From Artifact [98df1c138a]:
- File
src/OFString.m
— part of check-in
[67bb344ba6]
at
2009-06-30 12:07:21
on branch trunk
— A few renames in OFObject, see details.
* +[conformsTo:] to +[conformsToProtocol:].
* -[isKindOf:] to -[isKindOfClass:].
* -[respondsTo:] to -[respondsToSelector:].
* -[conformsTo:] to -[conformsToProtocol:].
* -[methodFor:] to -[methodForSelector:]. (user: js, size: 8190) [annotate] [blame] [check-ins using]
To Artifact [248b3d5447]:
- File src/OFString.m — part of check-in [eddc0ba58c] at 2009-06-30 13:38:36 on branch trunk — Implement OFCopying and OFMutableCopying in OFDictionary. (user: js, size: 8190) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | return string; } - (size_t)length { return length; } - (id)copy { return [self retain]; } - (id)mutableCopy { return [[OFMutableString alloc] initWithString: self]; } | > > > > > > > > > > < < < < < < < < < < | 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | return string; } - (size_t)length { return length; } - (BOOL)isEqual: (id)obj { if (![obj isKindOfClass: [OFString class]]) return NO; if (strcmp(string, [obj cString])) return NO; return YES; } - (id)copy { return [self retain]; } - (id)mutableCopy { return [[OFMutableString alloc] initWithString: self]; } - (int)compare: (id)obj { if (![obj isKindOfClass: [OFString class]]) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; return strcmp(string, [obj cString]); |
︙ | ︙ |