home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / C++ / Snippets / SimpleParseUtils / SimpleParseUtils.h < prev   
Encoding:
Text File  |  1995-10-20  |  1.4 KB  |  42 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        SimpleParseUtils.cp
  3.     
  4.     Contains:    Utilities for useful for very simple
  5.                 parsing tasks.
  6.     
  7.     Version:    1.0 (for System 7.x)
  8.     
  9.     Copyright:    ©1995 Chris K. Thomas.  All Rights Reserved.
  10. */
  11.  
  12. // * if inMem points to a the same string as inString, true
  13. Boolean StrEquals(const unsigned char *inString, char *inMem);
  14.  
  15. // * if inMem points to a the same string as inString followed by whitespace, true
  16. Boolean StrEqualsToken(const unsigned char *inString, char *inMem);
  17.  
  18. // * if inMem points to a the same string as inString followed by whitespace, true
  19. Boolean PtrEqualsToken(const Ptr inString, char *inMem);
  20.  
  21. // * if inMem points to a char which is in inString, true
  22. Boolean StrEqualsChars(const unsigned char *inString, char *inMem);
  23.  
  24. // * count whitespace chars
  25. long CountWhiteSpace(char *inMem, long inLength);
  26.  
  27. // * return a pascal string containing the next token
  28. StringPtr GetTokenString(char *inMem, long inLength);
  29.  
  30. // * return a length-unlimited string containing the next token
  31. Ptr GetTokenPtr(char *inMem, long inLength);
  32.  
  33. // * return a token with a custom delimiting string
  34. Ptr GetDelimitedToken(const unsigned char *inDelimiter, char *inMem, long inLength);
  35.  
  36. // * return the char in inString actually found
  37. short FindSelectChar(const unsigned char *inString, char *inMem, long inLength);
  38.  
  39. // * get all text from inMem to end of line
  40. Ptr    GetEntireLine(char *inMem, long inLength);
  41.  
  42.