blob: 73b42c9ae74d9fcdb638fc5ce43db19b60e01c5e (
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
|
//
// NSIndexSet+MCO.m
// mailcore2
//
// Created by Hoa V. DINH on 9/10/13.
// Copyright (c) 2013 MailCore. All rights reserved.
//
#import "NSIndexSet+MCO.h"
#import "MCOIndexSet.h"
@implementation NSIndexSet (MCO)
- (MCOIndexSet *) mcoIndexSet
{
MCOIndexSet * result = [MCOIndexSet indexSet];;
[self enumerateRangesUsingBlock:^(NSRange range, BOOL * stop) {
[result addRange:MCORangeMake(range.location, range.length - 1)];
}];
return result;
}
@end
|