• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: peekaboo, icu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: peekaboo, icu


  • Subject: Re: peekaboo, icu
  • From: j o a r <email@hidden>
  • Date: Fri, 14 Jul 2006 23:59:52 +0200


On 14 jul 2006, at 19.46, Matt Neuburg wrote:

Various parts of Cocoa use ICU to do regular expression searching, so it
must be built in; so is there a way I can just use it directly to do a find
or find-and-replace in an NSString? Thx - m.

I failed in my attempt to use the ICU library that ships with Mac OS X: /usr/lib/libicucore.dylib.
It's quite possible that you could make it work even if I couldn't...


There are a bunch of Cocoa regexp facilities available:

	OgreKit
	AGRexex
	MOKit
	OFRegularExpression
	NSPredicate

You will most likely find one that can provide the functionality you're looking for.

I didn't find any of them to my liking (various combinations of problems: not universal, inadequate performance or awkward API), and so made my own wrapper for PCRE. It's very bare-bones, but you can have a copy of it if you would want to attempt to extend it.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >peekaboo, icu (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Detecting Internet
  • Next by Date: How to disable the system beep when running NSSavePanel
  • Previous by thread: peekaboo, icu
  • Next by thread: Re: peekaboo, icu
  • Index(es):
    • Date
    • Thread