ObjFW  Diff

Differences From Artifact [f07c984e42]:

To Artifact [dc4b94d1fe]:


201
202
203
204
205
206
207
208

209
210
211
212

213
214
215
216
217
218

219
220
221
222

223
224
225
226
227
228
229
201
202
203
204
205
206
207

208
209
210
211

212
213
214
215
216
217

218
219
220
221

222
223
224
225
226
227
228
229







-
+



-
+





-
+



-
+







 *
 * @return The objects of the array as a C array
 */
- (id*)objects;

/*!
 * @brief Returns the index of the first object that is equivalent to the
 *	  specified object or OF_NOT_FOUND if it was not found.
 *	  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
 *	   or OF_NOT_FOUND if it was not found
 *	   or `OF_NOT_FOUND` if it was not found
 */
- (size_t)indexOfObject: (id)object;

/*!
 * @brief Returns the index of the first object that has the same address as the
 *	  specified object or OF_NOT_FOUND if it was not found.
 *	  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 that has the same aaddress as
 *	   the specified object or OF_NOT_FOUND if it was not found
 *	   the specified object or `OF_NOT_FOUND` if it was not found
 */
- (size_t)indexOfObjectIdenticalTo: (id)object;

/*!
 * @brief Checks whether the array contains an object with the specified
 *	  address.
 *
271
272
273
274
275
276
277
278
279
280



281
282
283
284
285
286
287
271
272
273
274
275
276
277



278
279
280
281
282
283
284
285
286
287







-
-
-
+
+
+








/*!
 * @brief Creates a string by joining all objects of the array.
 *
 * @param separator The string with which the objects should be joined
 * @param options Options according to which the objects should be joined.@n
 *		  Possible values are:
 *		  Value                | Description
 *		  ---------------------|----------------------
 * 		  OF_ARRAY_SKIP_EMPTY | Skip empty components
 *		  Value                 | Description
 *		  ----------------------|----------------------
 * 		  `OF_ARRAY_SKIP_EMPTY` | Skip empty components
 * @return A string containing all objects joined by the separator
 */
- (OFString*)componentsJoinedByString: (OFString*)separator
			      options: (int)options;

/*!
 * @brief Creates a string by calling the selector on all objects of the array
298
299
300
301
302
303
304
305
306
307



308
309
310
311
312
313
314
298
299
300
301
302
303
304



305
306
307
308
309
310
311
312
313
314







-
-
-
+
+
+







 * @brief Creates a string by calling the selector on all objects of the array
 *	  and joining the strings returned by calling the selector.
 *
 * @param separator The string with which the objects should be joined
 * @param selector The selector to perform on the objects
 * @param options Options according to which the objects should be joined.@n
 *		  Possible values are:
 *		  Value                | Description
 *		  ---------------------|----------------------
 * 		  OF_ARRAY_SKIP_EMPTY | Skip empty components
 *		  Value                 | Description
 *		  ----------------------|----------------------
 * 		  `OF_ARRAY_SKIP_EMPTY` | Skip empty components
 * @return A string containing all objects joined by the separator
 */
- (OFString*)componentsJoinedByString: (OFString*)separator
			usingSelector: (SEL)selector
			      options: (int)options;

/*!
337
338
339
340
341
342
343
344
345
346



347
348
349
350
351
352
353
337
338
339
340
341
342
343



344
345
346
347
348
349
350
351
352
353







-
-
-
+
+
+







- (OFArray*)sortedArray;

/*!
 * @brief Returns a sorted copy of the array.
 *
 * @param options The options to use when sorting the array.@n
 *		  Possible values are:
 *		  Value                    | Description
 *		  -------------------------|-------------------------
 *		  OF_ARRAY_SORT_DESCENDING | Sort in descending order
 *		  Value                      | Description
 *		  ---------------------------|-------------------------
 *		  `OF_ARRAY_SORT_DESCENDING` | Sort in descending order
 * @return A sorted copy of the array
 */
- (OFArray*)sortedArrayWithOptions: (int)options;

/*!
 * @brief Returns a copy of the array with the order reversed.
 *