home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 20 / AACD20.BIN / AACD / Programming / Jikes / Source / src / tab.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-24  |  997 b   |  47 lines

  1. // $Id: tab.h,v 1.9 2001/01/05 09:13:21 mdejong Exp $
  2. //
  3. // This software is subject to the terms of the IBM Jikes Compiler
  4. // License Agreement available at the following URL:
  5. // http://www.ibm.com/research/jikes.
  6. // Copyright (C) 1996, 1998, International Business Machines Corporation
  7. // and others.  All Rights Reserved.
  8. // You must accept the terms of that agreement to use this software.
  9. //
  10. #ifndef tab_INCLUDED
  11. #define tab_INCLUDED
  12.  
  13. #include "platform.h"
  14.  
  15. /*
  16. //FIXME: include stuff
  17. #ifdef HAVE_WCHAR_H
  18. # include <wchar.h>
  19. #endif
  20. #include <string.h>
  21. */
  22.  
  23. #ifdef    HAVE_JIKES_NAMESPACE
  24. namespace Jikes {    // Open namespace Jikes block
  25. #endif
  26.  
  27. class Tab
  28. {
  29. public:
  30.     enum { DEFAULT_TAB_SIZE = 8 };
  31.  
  32.     inline static int TabSize() { return tab_size; }
  33.     inline static void SetTabSize(int value) { tab_size = value; }
  34.  
  35.     static int Wcslen(wchar_t *line, int start, int end);
  36.  
  37. private:
  38.     static int tab_size;
  39. };
  40.  
  41. #ifdef    HAVE_JIKES_NAMESPACE
  42. }            // Close namespace Jikes block
  43. #endif
  44.  
  45. #endif
  46.  
  47.