Differences From Artifact [881fc1c877]:
- File src/OFString.m — part of check-in [d87df02e8b] at 2009-04-21 17:16:23 on branch trunk — The if ((self = [super init])) construct isn't needed anymore. (user: js, size: 9079) [annotate] [blame] [check-ins using]
To Artifact [db633d72e6]:
- File
src/OFString.m
— part of check-in
[e959fed010]
at
2009-04-26 12:44:20
on branch trunk
— A few renames in OFObject.
getMemWithSize: -> allocWithSize:
getMemForNItems:ofSize: -> allocNItems:withSize:
resizeMem:toNItems:ofSize: -> resizeMem:toNItems:withSize: (user: js, size: 9077) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
162 163 164 165 166 167 168 | c = isa; [super free]; @throw [OFInvalidEncodingException newWithClass: c]; } @try { | | | 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | c = isa; [super free]; @throw [OFInvalidEncodingException newWithClass: c]; } @try { string = [self allocWithSize: length + 1]; } @catch (OFException *e) { [self free]; @throw e; } memcpy(string, str, length + 1); } |
︙ | ︙ | |||
265 266 267 268 269 270 271 | length = 0; is_utf8 = NO; @throw [OFInvalidEncodingException newWithClass: isa]; } length = len; | | | 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | length = 0; is_utf8 = NO; @throw [OFInvalidEncodingException newWithClass: isa]; } length = len; string = [self allocWithSize: length + 1]; memcpy(string, str, length + 1); return self; } - (BOOL)isEqual: (id)obj { |
︙ | ︙ |