Differences From Artifact [702817f9c0]:
- File
src/OFArray.h
— part of check-in
[f0f38b0f42]
at
2021-04-07 20:52:00
on branch trunk
— Override -[objectEnumerator] in some classes
Classes using lightweight generics should also use them for the
enumerator to allow stronger typing. (user: js, size: 15736) [annotate] [blame] [check-ins using] [more...]
To Artifact [faed016421]:
- File src/OFArray.h — part of check-in [d975c53a43] at 2021-04-17 00:44:39 on branch new-naming-convention — of_range_t -> OFRange (user: js, size: 15727) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
266 267 268 269 270 271 272 | /** * @brief Copies the objects at the specified range to the specified buffer. * * @param buffer The buffer to copy the objects to * @param range The range to copy */ - (void)getObjects: (ObjectType __unsafe_unretained _Nonnull *_Nonnull)buffer | | | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 | /** * @brief Copies the objects at the specified range to the specified buffer. * * @param buffer The buffer to copy the objects to * @param range The range to copy */ - (void)getObjects: (ObjectType __unsafe_unretained _Nonnull *_Nonnull)buffer inRange: (OFRange)range; /** * @brief Returns the index of the first object that is equivalent to the * specified object or `OF_NOT_FOUND` if it was not found. * * @param object The object whose index is returned * @return The index of the first object equivalent to the specified object |
︙ | ︙ | |||
313 314 315 316 317 318 319 | /** * @brief Returns the objects in the specified range as a new OFArray. * * @param range The range for the subarray * @return The subarray as a new autoreleased OFArray */ | | | 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | /** * @brief Returns the objects in the specified range as a new OFArray. * * @param range The range for the subarray * @return The subarray as a new autoreleased OFArray */ - (OFArray OF_GENERIC(ObjectType) *)objectsInRange: (OFRange)range; /** * @brief Creates a string by joining all objects of the array. * * @param separator The string with which the objects should be joined * @return A string containing all objects joined by the separator */ |
︙ | ︙ | |||
413 414 415 416 417 418 419 | * Possible values are: * Value | Description * ---------------------------|------------------------- * `OF_ARRAY_SORT_DESCENDING` | Sort in descending order * @return A sorted copy of the array */ - (OFArray OF_GENERIC(ObjectType) *) | | | 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 | * Possible values are: * Value | Description * ---------------------------|------------------------- * `OF_ARRAY_SORT_DESCENDING` | Sort in descending order * @return A sorted copy of the array */ - (OFArray OF_GENERIC(ObjectType) *) sortedArrayUsingComparator: (OFComparator)comparator options: (int)options; #endif /** * @brief Creates a new array with the specified object added. * * @param object The object to add |
︙ | ︙ |