ftp.nice.ch/Attic/openStep/developer/resources/MiscKit.2.0.5.s.gnutar.gz#/MiscKit2/Temp/regex_

CVS/
 
Makefile
 
Makefile.postamble
 
Makefile.preamble
 
Misc-Source/
 
PB.project
 
README
 
framework/
 
palette/
 

README

Here is a regular expression framework that is based on the gnu rx-1.5 library.
Small changes have been made to the rx-1.5 library, primarily, the distributed
version rxposix.h is called inst-posix.h during build then renamed, i didn't want
to mess with Makefiles and such so i just renamed the file and fixed the code
as appropriate.

The RegEx object is immutable, once a RegEx is created it can't be changed. This
is in contrast to the MOKit MORegularExpression object (This code is based on the
original MOKit from way back and the RegExFormatter is heavliy based on
MORegexFormatter)

the framework has a few intersting extensions to NSString that implements a printf
type thing.

From the comment stringWithFormat:array:

format is of the form %[0-9]
%0 perfroms the equivalent of concatenateStringsFromArray:
%[1-9] is the %n-1 element from the data array
so if format is "What %1 is %2" and data contains "in the hell","this"
the result will be What in the hell is this

The palette included provides a North American phone number formatter and a
US SSN formatter. It uses a plist file to load the regexs from disk and
instanciate an appropriate RegExFormatter with all of the RegEx configured.
(phonePatterns.dictionary,ssnPatterns.dictionary)

Also the Framework and palette both work under OpenStep for NT. Under NT the
strcasecmp function is linked into the executable and the rxposix.h file has
some funkyness to allow symbols to be exported from the dll when it is being
compiled (When the framework is being compiled the define _REGEX_BUILDING
should be set.

The STDC_HEADERS=1 in the CFLAGS section is basically doing what the configure
script would have done if it had been run.

The Misc-Source directory contains other stuff that i wrote that i found
usefull, this is unrelated to the regex framework, but i didn't want to make
a separate tar file.

ArrowTableHeaderCell: subclass of NSTableHeaderCell that puts a arrow in the
	Cell to indicate sorting etc...

Localization.h: header file do help localization out.

Sorting: Category of NSArray to allow NSArrays and NSMutableArrays to be
	sorted based on the return values of selectors.

TableSource: Category of NSArray to allow arrays to be dataSources for
	NSTableViews. The identifier of a tableView column is the
	attribute name and this name is used to derived the get and set
	selectors for the particular object.

So finally I'd like to donate all of this stuff to the MiscKit, do with it
what you please as long as i get credit for my work.

Vince DeMarco
(You can send me email, at least for a while to the following address
vdemarco@iname.com)

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.