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