home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c221 / 6.ddi / MWHC.006 / G2 < prev    next >
Encoding:
Text File  |  1992-06-07  |  1.5 KB  |  53 lines

  1. #ifndef __RWTOKEN_H__
  2. #define __RWTOKEN_H__
  3. pragma push_align_members(64);
  4.  
  5. /*
  6.  * RWTokenizer --- converts strings into sequences of tokens
  7.  *
  8.  * $Header:   E:/vcs/rw/token.h_v   1.4   01 Mar 1992 15:45:24   KEFFER  $
  9.  *
  10.  ****************************************************************************
  11.  *
  12.  * Rogue Wave Software, Inc.
  13.  * P.O. Box 2328
  14.  * Corvallis, OR 97339
  15.  * Voice: (503) 754-3010    FAX: (503) 757-6650
  16.  *
  17.  * Copyright (C) 1989, 1990, 1991. This software is subject to copyright 
  18.  * protection under the laws of the United States and other countries.
  19.  *
  20.  ***************************************************************************
  21.  *
  22.  * $Log:   E:/vcs/rw/token.h_v  $
  23.  * 
  24.  *    Rev 1.4   01 Mar 1992 15:45:24   KEFFER
  25.  * Now uses RWCString instead of RWString.
  26.  * 
  27.  *    Rev 1.2   28 Oct 1991 09:08:26   keffer
  28.  * Changed inclusions to <rw/xxx.h>
  29.  * 
  30.  *    Rev 1.1   22 Aug 1991 10:43:26   keffer
  31.  * operator()() no longer uses default arguments (as per the ARM).
  32.  * 
  33.  *    Rev 1.0   28 Jul 1991 08:17:36   keffer
  34.  * Tools.h++ V4.0.5 PVCS baseline version
  35.  *
  36.  */
  37.  
  38. #include "rw/cstring.h"
  39.  
  40. class RWExport RWTokenizer {
  41.   const RWCString*    theString;
  42.   const char*        place;
  43. public:
  44.   RWTokenizer(const RWCString& s);    // Construct to lex a string
  45.  
  46.   // Advance to next token, delimited by s:
  47.   RWCSubString        operator()(const char* s);
  48.   RWCSubString        operator()(); // { return operator()(" \t\n"); }
  49. };
  50.  
  51. pragma pop_align_members();
  52. #endif /* __RWTOKEN_H__ */
  53.