summaryrefslogtreecommitdiffstats
path: root/macosx/NSArray+HBAdditions.h
blob: 1932bf269d668569ed3574dcf9f83da08572cf8e (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
/*  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)allSatisfy:(BOOL (^)(id object))block;
- (NSArray *)filteredArrayUsingBlock:(BOOL (^)(id object))block;
- (NSIndexSet *)indexesOfObjectsUsingBlock:(BOOL (^)(id object))block;

@end

@interface NSIndexSet (HBAdditions)

- (NSIndexSet *)unionWith:(NSIndexSet *)indexSet;
- (NSIndexSet *)intersectionWith:(NSIndexSet *)indexSet;

@end

NS_ASSUME_NONNULL_END