Re: Fastest/smallest search+replace
Re: Fastest/smallest search+replace
- Subject: Re: Fastest/smallest search+replace
- From: "John C. Randolph" <email@hidden>
- Date: Tue, 15 May 2001 02:25:08 -0700
On Tuesday, May 15, 2001, at 02:03 AM, Marco Scheurer wrote:
[snippage]
A lot of Perl string operations (pattern matching, replacements,
splitting...) are available as NSString categories in our Oyster
framework,
which is available in the source code distribution of CVL at
http://www.sente.ch/software/cvl .
This framework is limited, however, to 8-bit strings (pending Unicode
support in Perl), and, using Perl, not very fast, but has proved useful
anyway.
"Native" support of these operations in NSString would be great.
Exactly. You've done this, guys at Omni have done it, I've done it, and
a bunch of other people have written various perlisms as categories on
foundation classes.
Once we get a comprehensive "search and destroy" facility into
foundation (along with such things as perl-style array slicing), then we
can start beating Apple up for a decent object persistence facility for
Obj-C, which they WON'T take away and cripple.
-jcr
"These kids today don't know the simple joy of saving four bytes of
page-0 memory on a 6502" - unknown