Use the new private headers

This commit is contained in:
Damiano Galassi committed 2015-09-19 11:50:44 +02:00
1 parent d69be89c01
commit eedbf1452d
14 files changed
+55 -22

No files matched your search

+6
View File
@@ -11,6 +11,9 @@
@implementation NSString (MP42Additions)
- (NSArray<NSString *> *)MP42_componentsSeparatedByRegex:(NSString *)regex {
NSParameterAssert(regex);
NSMutableArray<NSString *> *results = [NSMutableArray array];
__block NSRange start = NSMakeRange(0, 0);
@@ -40,6 +43,9 @@
}
- (BOOL)MP42_isMatchedByRegex:(NSString *)regex {
NSParameterAssert(regex);
NSRegularExpression *r = [NSRegularExpression regularExpressionWithPattern:regex
options:NSRegularExpressionCaseInsensitive
error:nil];