blob: 54b39005cac5301780a188fb675b0bd4a1dd4972 (
plain) (
blame)
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
|
#ifndef _GAYSTRING_H_
#define _GAYSTRING_H_
#include <windows.h>
class GayString
{
public:
GayString(const char *initial=NULL);
~GayString();
void Set(const char *value);
char *Get();
void Append(const char *append);
void Grow(size_t newsize);
void Compact();
size_t Length();
private:
char *m_buf;
size_t m_alloc;
size_t len;
};
class GayStringW
{
public:
GayStringW(const wchar_t *initial=NULL);
~GayStringW();
void Set(const wchar_t *value);
const wchar_t *Get();
void Append(const wchar_t *append);
void Grow(size_t newsize);
void Compact();
size_t Length();
private:
wchar_t *m_buf;
size_t m_alloc;
size_t len;
};
#endif//_GAYSTRING_H_
|