mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +00:00
NSIndexSet: Implement enumerateRangesInRange convenience methods
This commit is contained in:
parent
2a5287f878
commit
6155329b64
2 changed files with 111 additions and 0 deletions
|
@ -113,6 +113,19 @@ DEFINE_BLOCK_TYPE(GSIndexSetEnumerationBlock, void, NSUInteger, BOOL*);
|
|||
|
||||
#endif
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_7,GS_API_LATEST)
|
||||
DEFINE_BLOCK_TYPE(GSIndexSetRangeEnumerationBlock, void, NSRange, BOOL*);
|
||||
|
||||
- (void)enumerateRangesInRange:(NSRange)range
|
||||
options:(NSEnumerationOptions)opts
|
||||
usingBlock:(GSIndexSetRangeEnumerationBlock)aBlock;
|
||||
|
||||
- (void)enumerateRangesUsingBlock:(GSIndexSetRangeEnumerationBlock)aBlock;
|
||||
|
||||
- (void)enumerateRangesWithOptions:(NSEnumerationOptions)opts
|
||||
usingBlock:(GSIndexSetRangeEnumerationBlock)aBlock;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns the first index value in the receiver or NSNotFound if the
|
||||
* receiver is empty.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue