I have been having fun with my ObjPCRE framework and the iPhone SDK.
Just drop the contents of this archive in your Xcode project and build.
The archive contains the debug libs, for the simulator and the release builds, for iPhone.
ObjPCRE iPhone Libraries
If you use ObjPCRE for iPhone or anywhere else, please comment.
Tuesday, September 2, 2008
Subscribe to:
Post Comments (Atom)
1 comments:
Great job: make regular expressions on iPhone as easy as if it were in php !
Anyway, a little bug: when the subject text is passed already encoded as an UTF-8 NSString, the matching may return unexpected results.
My workaround was to change the line 232
from:
subject = [text UTF8String];
to:
subject = [text cString];
This uses a deprecated message, but avoids double-encoding.
(Works only if you're sure to receive the "subject" as an UTF8 encoded string).
Post a Comment