blob: cb409b0aa875f6580d6da786f622c09789d1f25a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* NSArray+HBAdditions.h $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.fr/>.
It may be used under the terms of the GNU General Public License. */
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSArray (HBAdditions)
- (BOOL)HB_allSatisfy:(BOOL (^)(id object))block;
- (BOOL)HB_containsWhere:(BOOL (^)(id object))block;
- (NSArray *)HB_filteredArrayUsingBlock:(BOOL (^)(id object))block;
- (NSIndexSet *)HB_indexesOfObjectsUsingBlock:(BOOL (^)(id object))block;
@end
@interface NSIndexSet (HBAdditions)
- (NSIndexSet *)HB_unionWith:(NSIndexSet *)indexSet;
- (NSIndexSet *)HB_intersectionWith:(NSIndexSet *)indexSet;
@end
NS_ASSUME_NONNULL_END
|