home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / tools / genrb / read.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  1.6 KB  |  46 lines

  1. /*
  2. *******************************************************************************
  3. *                                                                             *
  4. * COPYRIGHT:                                                                  *
  5. *   (C) Copyright International Business Machines Corporation, 1998, 1999     *
  6. *   Licensed Material - Program-Property of IBM - All Rights Reserved.        *
  7. *   US Government Users Restricted Rights - Use, duplication, or disclosure   *
  8. *   restricted by GSA ADP Schedule Contract with IBM Corp.                    *
  9. *                                                                             *
  10. *******************************************************************************
  11. *
  12. * File read.h
  13. *
  14. * Modification History:
  15. *
  16. *   Date        Name        Description
  17. *   05/26/99    stephen     Creation.
  18. *******************************************************************************
  19. */
  20.  
  21. #ifndef READ_H
  22. #define READ_H 1
  23.  
  24. #include "utypes.h"
  25. #include "ufile.h"
  26. #include "ustr.h"
  27.  
  28. /* The types of tokens which may be returned by getNextToken. */
  29. enum ETokenType
  30. {
  31.   tok_string,               /* A string token, such as "MonthNames" */
  32.   tok_open_brace,           /* An opening brace character */
  33.   tok_close_brace,          /* A closing brace character */
  34.   tok_comma,                /* A comma */
  35.   
  36.   tok_EOF,                  /* End of the file has been reached successfully */
  37.   tok_error,                /* An error, such an unterminated quoted string */
  38.   tok_token_type_count = 4     /* Number of "real" token types */
  39. };
  40.  
  41. enum ETokenType getNextToken(UFILE *f,
  42.                  struct UString *token,
  43.                  UErrorCode *status);
  44.  
  45. #endif
  46.