ftp.nice.ch/pub/next/connectivity/protocol/GateKeeper.3.0.Beta.4.s.tar.gz#/GateKeeper.3.0.Beta.4.s/EParse.h

This is EParse.h in view mode; [Download] [Up]

//*****************************************************************************
//
//	EParse.h.  
//		
//		Search a file for a specific pattern of (2)strings which will 
//		identify the next str as a keyword to be captured and returned.
// 
//		by	Felipe A. Rodriguez		
//
//	This code is supplied "as is" the author makes no warranty as to its 
//	suitability for any purpose.  This code is free and may be distributed 
//	in accordance with the terms of the:
//		
//			GNU GENERAL PUBLIC LICENSE
//			Version 2, June 1991
//			copyright (C) 1989, 1991 Free Software Foundation, Inc.
// 			675 Mass Ave, Cambridge, MA 02139, USA
//
//*****************************************************************************

#import <appkit/appkit.h>



@interface EParse:Object
{
	const char *keyOne;			// first keyword searched for in parse: method
	const char *keyTwo;			// second keyword searched for in parse: method
	const char *delim1;			// delimiters used in parse: method
	const char *delim2;			// delimiters used in parse: method
	char lBuf[MAXPATHLEN + 50];	// generic buffer to hold lines of text

	char *replace;			// delimiters used in parse: method
	int escape;				// number of words between keys found and reslt
	int expireDefault;		// max number of lines between valid keys
}

- setDelim1:(const char *)delimiters;
- setDelim2:(const char *)delimiters;
- setKey1:(const char *)keyWord;
- setKey2:(const char *)keyWord;
- setEscape:(int)numWordsToIgnore;
- setExpire:(int)maxLinesBetweenKeys;
- (char *)parseFile:(const char *)filePath;
- (char *)parse:(char *)buffer;

- replaceWith:(const char *)buffer;
- (char *)editFile:(const char *)filePath;


@end

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