home *** CD-ROM | disk | FTP | other *** search
- This directory contains category implementations of the SearchableText
- protocol and generic string searching routines that the categories use.
-
- The MiscSearchText category and the MiscTBMK literal string
- searching routines were written and are maintained by
- Christopher J. Kane (kane@gac.edu). Please feel free to
- contact the author with any questions, comments, bug reports,
- or suggestions about this category or the string searching
- routines.
-
- Copyright (c) 1993 Christopher J. Kane. All rights reserved.
-
- This software is subject to the terms of the MiscKit license
- agreement. Refer to the license document included with the
- MiscKit distribution for these terms.
-
- ---------------------------------------------------------------------------
- README - This file (of course)
- MiscSearchText.h - MiscSearchText category header file
- MiscSearchText.m - and source file
- MiscSearchText.rtf - Documentation for MiscSearchText category
- MiscTBMK.h - Literal text search routines header file
- MiscTBMK.c - and source file
- MiscTBMK.rtf - Some notes on the MiscTBMK routines
- regexpr.h - Regular expression search routines header file
- regexpr.c - and source file
- ---------------------------------------------------------------------------
-
- The regular expression package is by Tatu Ylonen <ylo@ngs.fi>, and is
- compatible with the GNU regexpr package (at the time of this package's
- writing). This is the version posted to the comp.sources.misc newsgroup,
- v27i023, with the patch posted to the same newsgroup, v29i059. In
- addition, some changes, marked with "(cjk)" in the source, have been
- made to accomodate the use of these routines under NEXTSTEP.
-
- The copyright and license notice for the regular expression code:
-
- Copyright (c) 1991 Tatu Ylonen, Espoo, Finland
-
- Permission to use, copy, modify, distribute, and sell this software
- and its documentation is hereby granted without fee, provided that the
- above copyright notice appears in all source code copies, the name of
- Tatu Ylonen is not used to advertise products containing this software
- or a derivation thereof, and all modified versions are clearly marked
- as such.
-
- This software is provided "as is" without express or implied warranty.
- ===========================================================================
-
- The header text to the two comp.sources.misc newgroup postings that
- contained this regular expression package:
- ---------------------------------------------------------------------------
- Submitted-by: ylo@ngs.fi (Tatu Ylonen)
- Posting-number: Volume 27, Issue 23
- Archive-name: regexpr/part01
-
- Regexpr is a regular expression package. It is free (meaning that you
- may do anything you want with it); the original motivation for writing
- it was not being able to use the GNU library in a commercial
- application.
-
- Some of the features include:
- - fully compatible with gnu regex library (I run emacs with this
- library for several weeks as a test)
- - can handle arbitrary data, including binary characters
- - can handle split data
- - compiles and runs also on 16 bit machines (eg. MSDOS)
- - does not use alloca
- - fairly easy to extend and modify (easier than the gnu version anyway)
- - speed comparable to that of the GNU library (searches seem a bit
- faster, matches about the same and compiling a bit slower than in
- the gnu library)
- - there are some extensions (enabled if RE_ANSI_HEX is set in syntax):
- \vnn for accessing registers > 9 (useful if RE_NREGS > 10)
- \xhh specifies character in hex
- \a ascii 7
- \b ascii 8
- \f ascii 12
- \n ascii 10
- \r ascii 13
- \t ascii 9
- \v ascii 11
-
- I have not written any documentation; see the header file and
- documentation GNU Regex library in GNU Emacs distribution.
-
- Send comments, bug fixes and suggestions to Tatu Ylonen
- <ylo@cs.hut.fi>.
- ---------------------------------------------------------------------------
- Submitted-by: ylo@ngs.fi (Tatu Ylonen)
- Posting-number: Volume 29, Issue 59
- Archive-name: regexpr/patch01
- Patch-To: regexpr: Volume 27, Issue 23
-
- This patch contains the following changes to the regexpr module.
-
- - Matching agains registers (the \1 construct) did not work properly
- (the fastmap was computed incorrectly).
- - Assert bounds in re_search_2 were too loose, and have been changed
- to reflect the actual behaviour.
- - The copyright notice has been clarified, but no significant
- changes have been made.
-
- The only real bug reported so far has been the problem with matching
- against registers, and it is now fixed.
-
- The patch is a context diff inside a shar.
-
- Tatu Ylonen <ylo@cs.hut.fi>
-