1 /*
2  *  qestring.h
3  *
4  *  Copyright (C) 1998	Jiann-Ching Liu
5  */
6 
7 #ifndef __QE_QESTRING_H_
8 #define __QE_QESTRING_H_
9 
10 class qeString {
11 protected:
12     char	 *str;
13     int 	 len;
14     int 	 buflen;
15     void	 init(const char *s);
16     static void  (*handler)(void);
17 public:
18 
19     qeString(void);
20     qeString(const char *s);
21     qeString(const qeString&  qs);
22 
23    ~qeString(void);
24 
25     static void   setHandler(void (*)(void));
26 
27     unsigned int  getLength(void);
28     void	  setLength(void);
29     char *	  getString(void);
30     char *	  getString(const int idx);
31 
32     qeString operator = (const qeString& lb);
33     qeString operator = (const char *s);
34     char& operator [] (const int idx);
35     operator char * (void);
36 };
37 
38 #endif
39