Differences From Artifact [16fee25b86]:
- File
src/OFArray.h
— part of check-in
[d526d938d7]
at
2015-11-21 18:35:39
on branch trunk
— Remove OF_NULLABLE / OF_NONNULL
Now that Clang switched to use _Nullable and _Nonnull instead of
__nullable / __nonnull, there is no longer a conflict with glibc, which
means we can just define _Nullable / _Nonnull to nothing if they are not
understood by the compiler (which did not work with __nullable /
__nonnull due to this conflict).This also defines _Null_unspecified to nothing if unavailable. (user: js, size: 14326) [annotate] [blame] [check-ins using]
To Artifact [fdfb08cf0d]:
- File src/OFArray.h — part of check-in [650b4be224] at 2015-11-28 19:47:01 on branch trunk — Minor documentation improvements (user: js, size: 14338) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
112 113 114 115 116 117 118 | * * @param object An object * @return A new autoreleased OFArray */ + (instancetype)arrayWithObject: (ObjectType)object; /*! | | | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | * * @param object An object * @return A new autoreleased OFArray */ + (instancetype)arrayWithObject: (ObjectType)object; /*! * @brief Creates a new OFArray with the specified objects, terminated by `nil`. * * @param firstObject The first object in the array * @return A new autoreleased OFArray */ + (instancetype)arrayWithObjects: (ObjectType)firstObject, ... OF_SENTINEL; /*! |
︙ | ︙ | |||
252 253 254 255 256 257 258 | * @param object The object which is checked for being in the array * @return A boolean whether the array contains an object with the specified * address */ - (bool)containsObjectIdenticalTo: (nullable ObjectType)object; /*! | | | | | | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | * @param object The object which is checked for being in the array * @return A boolean whether the array contains an object with the specified * address */ - (bool)containsObjectIdenticalTo: (nullable ObjectType)object; /*! * @brief Returns the first object of the array or `nil`. * * @warning The returned object is *not* retained and autoreleased for * performance reasons! * * @return The first object of the array or `nil` */ - (nullable ObjectType)firstObject; /*! * @brief Returns the last object of the array or `nil`. * * @warning The returned object is *not* retained and autoreleased for * performance reasons! * * @return The last object of the array or `nil` */ - (nullable ObjectType)lastObject; /*! * @brief Returns the objects in the specified range as a new OFArray. * * @param range The range for the subarray |
︙ | ︙ | |||
436 437 438 439 440 441 442 | */ - (OFArray OF_GENERIC(ObjectType)*)filteredArrayUsingBlock: (of_array_filter_block_t)block; /*! * @brief Folds the array to a single object using the specified block. * | | | 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 | */ - (OFArray OF_GENERIC(ObjectType)*)filteredArrayUsingBlock: (of_array_filter_block_t)block; /*! * @brief Folds the array to a single object using the specified block. * * If the array is empty, it will return `nil`. * * If there is only one object in the array, that object will be returned and * the block will not be invoked. * * If there are at least two objects, the block is invoked for each object * except the first, where left is always to what the array has already been * folded and right what should be added to left. |
︙ | ︙ |