-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCString_linux.h
More file actions
50 lines (43 loc) · 1.23 KB
/
Copy pathCString_linux.h
File metadata and controls
50 lines (43 loc) · 1.23 KB
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
// CString.h
#ifndef cstring_h
#define cstring_h
class CString
{
public:
CString();
CString(CString &src);
CString(const char *src);
~CString();
int GetLength() ;
CString& MakeUpper() ;
CString& MakeLower() ;
CString Left(int nPos) ;
CString Mid(int nPos, int nLen=-1) ;
CString Right(int nPos) ;
bool operator==(const char *src) ;
bool operator!=(const char *src) ;
CString& operator=(const CString& src) ;
CString& operator=(const char *src) ;
CString& operator=(char src) ;
CString& operator+=(const CString& src) ;
CString& operator+=(const char *src) ;
CString& operator+=(char src) ;
CString operator+(const CString& src) ;
CString operator+(const char *src) ;
CString operator+(char src) ;
void Remove(char cRemove) ;
int ReverseFind(char pSrc);
operator char *() ;
void Empty();
int Compare(char *) ;
int Delete (int iIndex, int nCount) ;
int Insert (int iIndex, int nCount) ;
int Find (const char *pattern, int nStart=0) ;
int FindOneOf (const char *charset) ;
int Format ( const char *szFormatStr, ... ) ;
char* GetBuffer(int nMaxSize=0);
void ReleaseBuffer();
public:
char *m_pStr ;
};
#endif