Overview
Comment: | Add - isEqual: for OFArray. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
66293c1fe8a9ce20f7e29fe237f03378 |
User & Date: | js on 2009-05-18 19:08:17 |
Other Links: | manifest | tags |
Context
2009-05-18
| ||
19:38 | Add test for OFArray. check-in: 9c435fddfc user: js tags: trunk | |
19:08 | Add - isEqual: for OFArray. check-in: 66293c1fe8 user: js tags: trunk | |
18:57 | Create a copy of the key in OFDictionary. check-in: 3b59111e0a user: js tags: trunk | |
Changes
Modified src/OFArray.m from [980f480064] to [30af0ffa87].
︙ | ︙ | |||
155 156 157 158 159 160 161 162 163 164 165 166 167 168 | return *((OFObject**)[array item: index]); } - (id)last { return *((OFObject**)[array last]); } - add: (OFObject*)obj { @throw [OFNotImplementedException newWithClass: isa andSelector: _cmd]; } | > > > > > > > > > > > > > > > > > > > > > > > > | 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 | return *((OFObject**)[array item: index]); } - (id)last { return *((OFObject**)[array last]); } - (BOOL)isEqual: (id)obj { OFObject **objs, **objs2; size_t i, len, len2; if (![obj isKindOf: [OFArray class]]) return NO; len = [array count]; len2 = [obj count]; if (len != len2) return NO; objs = [array data]; objs2 = [obj data]; for (i = 0; i < len; i++) if (![objs[i] isEqual: objs2[i]]) return NO; return YES; } - add: (OFObject*)obj { @throw [OFNotImplementedException newWithClass: isa andSelector: _cmd]; } |
︙ | ︙ |