libs-base
libs-base copied to clipboard
Implement +[NSRegularExpression escapedPatternForString:] and -[NSString enumerateSubstringsInRange:options:usingBlock]
Apple's Swift implementations:
-
-[NSString enumerateSubstringsInRange:options:usingBlock]
-
+[NSRegularExpression escapedPatternForString:]
See also CoreFoundation:
I believe a15fa66 has solved many of the stylistic issues.
Apart from the NSLog statements this looks fine for me now.
This has been outstanding for a while ... I'll tweak any minor remaining issues.
Sorry, I've been very busy. You can remove the log statements; I don't think they'd be useful for anyone debugging other than me.