home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Connectivity / GateKeeper-2.1 / Parse.h < prev    next >
Encoding:
Text File  |  1996-03-08  |  1.3 KB  |  42 lines

  1. //*****************************************************************************
  2. //
  3. //    Parse.h.  
  4. //        
  5. //        Search a file for a specific pattern of (2)strings which will 
  6. //        identify the next str as a keyword to be captured and returned.
  7. // 
  8. //        by    Felipe A. Rodriguez        
  9. //
  10. //    This code is supplied "as is" the author makes no warranty as to its 
  11. //    suitability for any purpose.  This code is free and may be distributed 
  12. //    in accordance with the terms of the:
  13. //        
  14. //            GNU GENERAL PUBLIC LICENSE
  15. //            Version 2, June 1991
  16. //            copyright (C) 1989, 1991 Free Software Foundation, Inc.
  17. //             675 Mass Ave, Cambridge, MA 02139, USA
  18. //
  19. //*****************************************************************************
  20.  
  21.  
  22. #import <appkit/appkit.h>
  23.  
  24. @interface Parse:Object
  25. {
  26.     const char *keyOne;            // first keyword searched for in parse: method
  27.     const char *keyTwo;            // second keyword searched for in parse: method
  28.     const char *delim1;            // delimiters used in parse: method
  29.     const char *delim2;            // delimiters used in parse: method
  30.     char lBuf[MAXPATHLEN + 50];    // generic buffer to hold lines of text
  31. }
  32.  
  33. - setDelim1:(const char *)delimiters;
  34. - setDelim2:(const char *)delimiters;
  35. - setKey1:(const char *)keyWord;
  36. - setKey2:(const char *)keyWord;
  37. - (char *)parseFile:(const char *)filePath;
  38. - (char *)parse:(char *)buffer;
  39.  
  40.  
  41. @end
  42.