-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomString.h
50 lines (35 loc) · 1.45 KB
/
comString.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// ****************************************************************************
// ****************************************************************************
// comString.h
// ****************************************************************************
//
// ****************************************************************************
// ****************************************************************************
// ****************************************************************************
// Defines
// ****************************************************************************
#ifndef H_COM_STRING
#define H_COM_STRING
// ****************************************************************************
// comString Class
// ****************************************************************************
class comString {
public:
comString();
comString(const comString& other);
comString(const char* cBuf);
~comString();
operator const char*() const {return m_data;};
comString& operator=(const comString& other);
comString& operator=(const char* other);
bool operator==(const comString& other) const;
bool operator==(const char* other) const;
bool operator!=(const comString& other) const;
bool operator!=(const char* other) const;
char& operator[](const UINT index) {return m_data[index];}
UINT getLength() const {return strlen(m_data);}
private:
char* m_data;
friend class Token;
};
#endif