FROM : Glenn Andreas
DATE : Fri Nov 26 23:00:08 2004
At 11:19 AM +0000 11/26/04, Oliver Cameron wrote:
>Hi guys,
>
>I've been told I can use regex.h for powering the regular expression
>searches in my app. I'm never actually touched pure C code (is
>regex.h C?), so I've really got no idea how to implement it in a
>Cocoa based application.
>
>I guess I could use NSTask, but I think that could cause major
>slowdowns. I also know about the OmniFrameworks and others (MOKit
>etc.), but I'd rather cook up my own engine if possible. Any help is
>appreciated.
>
>Thanks,
>Oliver
You don't want to use system provided regex from Cocoa because the
system regexes don't support unicode (and Cocoa strings do).
Taking the regex from TCL is pretty straightforward (which is what I
do in IDEKit, and it works quite well with unicode now).
--
Glenn Andreas <email_removed>
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
DATE : Fri Nov 26 23:00:08 2004
At 11:19 AM +0000 11/26/04, Oliver Cameron wrote:
>Hi guys,
>
>I've been told I can use regex.h for powering the regular expression
>searches in my app. I'm never actually touched pure C code (is
>regex.h C?), so I've really got no idea how to implement it in a
>Cocoa based application.
>
>I guess I could use NSTask, but I think that could cause major
>slowdowns. I also know about the OmniFrameworks and others (MOKit
>etc.), but I'd rather cook up my own engine if possible. Any help is
>appreciated.
>
>Thanks,
>Oliver
You don't want to use system provided regex from Cocoa because the
system regexes don't support unicode (and Cocoa strings do).
Taking the regex from TCL is pretty straightforward (which is what I
do in IDEKit, and it works quite well with unicode now).
--
Glenn Andreas <email_removed>
<http://www.gandreas.com/> oh my!
Mad, Bad, and Dangerous to Know
| Related mails | Author | Date |
|---|---|---|
| Oliver Cameron | Nov 26, 12:19 | |
| Oliver Cameron | Nov 26, 19:44 | |
| Glenn Andreas | Nov 26, 23:00 | |
| Andrew Farmer | Nov 26, 23:07 | |
| Guy English | Nov 26, 23:52 | |
| mmalcolm crawford | Nov 26, 23:58 | |
| Matthew | Dec 10, 23:11 | |
| Chris Eplett | Dec 14, 13:47 |






Cocoa mail archive

