Use the new private headers
This commit is contained in:
1 parent
d69be89c01
commit
eedbf1452d
14 files changed
+55
-22
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user