Differences From Artifact [118e82fbe1]:
- File
src/OFDataArray.m
— part of check-in
[033054ad75]
at
2009-05-29 19:21:57
on branch trunk
— A few renames.
OFExceptions:
* OFNoMemException to OFOutOfMemoryException.
* OFMemNotPartOfObjException to OFMemoryNotPartOfObjectException.OFObject:
* -[addItemToMemoryPool:] to -[addMemoryToPool:].
* -[allocWithSize:] to -[allocMemoryWithSize:].
* -[allocNItems:withSize] to -[allocMemoryForNItems:withSize:].
* -[resizeMem:toSize] to -[resizeMemory:toSize:].
* -[resizeMem:toNItems:withSize:] to
-[resizeMemoryToNItems:withSize:].
* -[freeMem] to -[freeMemory:].OFString:
* -[urlencode] to -[urlEncodedString].
* -[urldecode] to -[urlDecodedString]. (user: js, size: 4962) [annotate] [blame] [check-ins using]
To Artifact [91a0ea19b6]:
- File
src/OFDataArray.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: 4972) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
130 131 132 133 134 135 136 | fromCArray: data]; return new; } - (BOOL)isEqual: (id)obj { | | | | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | fromCArray: data]; return new; } - (BOOL)isEqual: (id)obj { if (![obj isKindOfClass: [OFDataArray class]]) return NO; if ([obj count] != count || [obj itemsize] != itemsize) return NO; if (memcmp([obj data], data, count * itemsize)) return NO; return YES; } - (int)compare: (id)obj { int ret; if (![obj isKindOfClass: [OFDataArray class]]) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; if ([obj itemsize] != itemsize) @throw [OFInvalidArgumentException newWithClass: isa andSelector: _cmd]; if ([obj count] == count) |
︙ | ︙ |