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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
| #pragma comment(lib, "Common.lib")
#define DLLIMPORT __declspec(dllimport)
class DLLIMPORT CTXBSTR
{
public:
CTXBSTR(class CTXStringW const &);
CTXBSTR(int);
CTXBSTR(int,wchar_t const *);
CTXBSTR(struct _GUID const &);
CTXBSTR(void);
CTXBSTR(wchar_t const *);
bool operator!=(class CTXBSTR const &)const;
bool operator!=(wchar_t *)const;
bool operator!=(wchar_t const *)const;
bool operator<(class CTXBSTR const &)const;
bool operator<(wchar_t *)const;
bool operator<(wchar_t const *)const;
bool operator==(class CTXBSTR const &)const;
bool operator==(wchar_t *)const;
bool operator==(wchar_t const *)const;
bool operator>(class CTXBSTR const &)const;
bool operator>(wchar_t *)const;
bool operator>(wchar_t const *)const;
class CTXBSTR & operator+=(class CTXBSTR const &);
class CTXBSTR & operator+=(class CTXStringW const &);
class CTXBSTR & operator+=(wchar_t const *);
class CTXBSTR & operator=(class CTXBSTR const &);
class CTXBSTR & operator=(class CTXStringW const &);
class CTXBSTR & operator=(wchar_t const *);
int IsEmpty(void);
int LoadStringW(struct HINSTANCE__ *,unsigned int);
long Append(char);
long Append(class CTXBSTR const &);
long Append(wchar_t const *);
long Append(wchar_t const *,int);
long Append(wchar_t);
long AppendBSTR(wchar_t *);
long AppendBytes(char const *,int);
long ArrayToBSTR(struct tagSAFEARRAY const *);
long AssignBSTR(wchar_t * const);
long BSTRToArray(struct tagSAFEARRAY * *);
long CopyTo(struct tagVARIANT *)const;
long CopyTo(wchar_t * *)const;
long ReadFromStream(struct IStream *);
long ToLower(void);
long ToUpper(void);
long WriteToStream(struct IStream *);
operator wchar_t *(void)const;
unsigned int ByteLength(void)const;
unsigned int Length(void)const;
void Attach(wchar_t *);
void Empty(void);
wchar_t * * operator&(void);
wchar_t * Copy(void)const;
wchar_t * Detach(void);
~CTXBSTR(void);
};
class DLLIMPORT CTXStringA
{
public:
CTXStringA(char const *);
CTXStringA(char const *,int);
CTXStringA(char,int);
CTXStringA(struct tagEN,wchar_t const *,int);
CTXStringA(struct tagGBK,wchar_t const *,int);
CTXStringA(struct tagUTF8,wchar_t const *,int);
CTXStringA(void);
bool IsEmpty(void)const;
bool operator!(void)const;
char * GetBuffer(int);
char * GetBuffer(void);
char * GetBufferSetLength(int);
char GetAt(int)const;
char const * GetString(void)const;
char operator[](int)const;
class CTXStringA & MakeLower(void);
class CTXStringA & MakeReverse(void);
class CTXStringA & MakeUpper(void);
class CTXStringA & Trim(char const *);
class CTXStringA & Trim(char);
class CTXStringA & Trim(void);
class CTXStringA & TrimLeft(char const *);
class CTXStringA & TrimLeft(char);
class CTXStringA & TrimLeft(void);
class CTXStringA & TrimRight(char const *);
class CTXStringA & TrimRight(char);
class CTXStringA & TrimRight(void);
class CTXStringA & operator+=(char const *);
class CTXStringA & operator+=(char);
class CTXStringA & operator+=(class CTXStringA const &);
class CTXStringA & operator=(char const *);
class CTXStringA & operator=(char);
class CTXStringA & operator=(class CTXStringA const &);
class CTXStringA Left(int)const;
class CTXStringA Mid(int)const;
class CTXStringA Mid(int,int)const;
class CTXStringA Right(int)const;
int Compare(char const *)const;
int CompareNoCase(char const *)const;
int Delete(int,int);
int Find(char const *,int)const;
int Find(char,int)const;
int FindOneOf(char const *)const;
int GetAllocLength(void)const;
int GetLength(void)const;
int Insert(int,char const *);
int Insert(int,char);
int Remove(char);
int Replace(char const *,char const *);
int Replace(char,char);
int ReverseFind(char)const;
operator char const *(void)const;
void Append(char const *);
void Append(char const *,int);
void Append(class CTXStringA const &);
void AppendChar(char);
void Empty(void);
void Format(char const *,...);
void FormatV(char const *,char *);
void Preallocate(int);
void ReleaseBuffer(int);
void SetAt(int,char);
void SetString(char const *);
void SetString(char const *,int);
void Truncate(int);
~CTXStringA(void);
};
class DLLIMPORT CTXStringW
{
public:
CTXStringW(class CTXBSTR const &);
CTXStringW(int);
CTXStringW(struct _GUID const &);
CTXStringW(struct tagEN,char const *,int);
CTXStringW(struct tagGBK,char const *,int);
CTXStringW(struct tagUTF8,char const *,int);
CTXStringW(struct tagVARIANT const &);
CTXStringW(void);
CTXStringW(wchar_t *);
CTXStringW(wchar_t const *);
CTXStringW(wchar_t const *,int);
CTXStringW(wchar_t,int);
bool IsEmpty(void)const;
bool operator!(void)const;
class CTXStringW & MakeLower(void);
class CTXStringW & MakeReverse(void);
class CTXStringW & MakeUpper(void);
class CTXStringW & Trim(void);
class CTXStringW & Trim(wchar_t const *);
class CTXStringW & Trim(wchar_t);
class CTXStringW & TrimLeft(void);
class CTXStringW & TrimLeft(wchar_t const *);
class CTXStringW & TrimLeft(wchar_t);
class CTXStringW & TrimRight(void);
class CTXStringW & TrimRight(wchar_t const *);
class CTXStringW & TrimRight(wchar_t);
class CTXStringW & operator+=(class CTXBSTR const &);
class CTXStringW & operator+=(class CTXStringW const &);
class CTXStringW & operator+=(struct tagVARIANT const &);
class CTXStringW & operator+=(wchar_t const *);
class CTXStringW & operator+=(wchar_t);
class CTXStringW & operator=(class CTXBSTR const &);
class CTXStringW & operator=(class CTXStringW const &);
class CTXStringW & operator=(struct tagVARIANT const &);
class CTXStringW & operator=(wchar_t *);
class CTXStringW & operator=(wchar_t const *);
class CTXStringW & operator=(wchar_t);
class CTXStringW Left(int)const;
class CTXStringW Mid(int)const;
class CTXStringW Mid(int,int)const;
class CTXStringW Right(int)const;
class CTXStringW SpanIncluding(wchar_t const *)const;
class CTXStringW Tokenize(wchar_t const *,int &)const;
class CTXStringW const & Refresh(void)const;
int Collate(wchar_t const *)const;
int CollateNoCase(wchar_t const *)const;
int Compare(wchar_t const *)const;
int CompareNoCase(wchar_t const *)const;
int Delete(int,int);
int Find(wchar_t const *,int)const;
int Find(wchar_t,int)const;
int FindOneOf(wchar_t const *)const;
int GetAllocLength(void)const;
int GetByteLength(void)const;
int GetLength(void)const;
int Insert(int,wchar_t const *);
int Insert(int,wchar_t);
int LoadStringW(struct HINSTANCE__ *,unsigned int);
int LoadStringW(struct HINSTANCE__ *,unsigned int,unsigned short);
int Remove(wchar_t);
int Replace(wchar_t const *,wchar_t const *);
int Replace(wchar_t,wchar_t);
int ReverseFind(wchar_t)const;
operator wchar_t const *(void)const;
void Append(class CTXStringW const &);
void Append(wchar_t const *);
void Append(wchar_t const *,int);
void AppendBSTR(wchar_t *);
void AppendChar(wchar_t);
void AppendFormat(wchar_t const *,...);
void Empty(void);
void Format(wchar_t const *,...);
void FormatV(wchar_t const *,char *);
void Preallocate(int);
void ReleaseBuffer(int);
void SetAt(int,wchar_t);
void SetString(wchar_t const *);
void SetString(wchar_t const *,int);
void Truncate(int);
wchar_t * * GetBSTRPtr(void);
wchar_t * AllocSysString(void)const;
wchar_t * GetBSTR(void)const;
wchar_t * GetBuffer(int);
wchar_t * GetBuffer(void);
wchar_t * GetBufferSetLength(int);
wchar_t * SetSysString(wchar_t * *)const;
wchar_t GetAt(int)const;
wchar_t const * GetString(void)const;
wchar_t operator[](int)const;
~CTXStringW(void);
};
// 重载运算符
DLLIMPORT bool operator!=(char const *,class CTXStringA const &);
DLLIMPORT bool operator!=(char,class CTXStringA const &);
DLLIMPORT bool operator!=(class CTXStringA const &,char const *);
DLLIMPORT bool operator!=(class CTXStringA const &,char);
DLLIMPORT bool operator!=(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT bool operator!=(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT bool operator!=(class CTXStringW const &,wchar_t const *);
DLLIMPORT bool operator!=(class CTXStringW const &,wchar_t);
DLLIMPORT bool operator!=(wchar_t *,class CTXBSTR const &);
DLLIMPORT bool operator!=(wchar_t const *,class CTXBSTR const &);
DLLIMPORT bool operator!=(wchar_t const *,class CTXStringW const &);
DLLIMPORT bool operator!=(wchar_t,class CTXStringW const &);
DLLIMPORT bool operator<(char const *,class CTXStringA const &);
DLLIMPORT bool operator<(class CTXStringA const &,char const *);
DLLIMPORT bool operator<(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT bool operator<(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT bool operator<(class CTXStringW const &,wchar_t const *);
DLLIMPORT bool operator<(wchar_t const *,class CTXStringW const &);
DLLIMPORT bool operator<=(char const *,class CTXStringA const &);
DLLIMPORT bool operator<=(class CTXStringA const &,char const *);
DLLIMPORT bool operator<=(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT bool operator<=(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT bool operator<=(class CTXStringW const &,wchar_t const *);
DLLIMPORT bool operator<=(wchar_t const *,class CTXStringW const &);
DLLIMPORT bool operator==(char const *,class CTXStringA const &);
DLLIMPORT bool operator==(char,class CTXStringA const &);
DLLIMPORT bool operator==(class CTXStringA const &,char const *);
DLLIMPORT bool operator==(class CTXStringA const &,char);
DLLIMPORT bool operator==(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT bool operator==(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT bool operator==(class CTXStringW const &,wchar_t const *);
DLLIMPORT bool operator==(class CTXStringW const &,wchar_t);
DLLIMPORT bool operator==(wchar_t *,class CTXBSTR const &);
DLLIMPORT bool operator==(wchar_t *,class CTXStringW const &);
DLLIMPORT bool operator==(wchar_t const *,class CTXBSTR const &);
DLLIMPORT bool operator==(wchar_t const *,class CTXStringW const &);
DLLIMPORT bool operator==(wchar_t,class CTXStringW const &);
DLLIMPORT bool operator>(char const *,class CTXStringA const &);
DLLIMPORT bool operator>(class CTXStringA const &,char const *);
DLLIMPORT bool operator>(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT bool operator>(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT bool operator>(class CTXStringW const &,wchar_t const *);
DLLIMPORT bool operator>(wchar_t const *,class CTXStringW const &);
DLLIMPORT bool operator>=(char const *,class CTXStringA const &);
DLLIMPORT bool operator>=(class CTXStringA const &,char const *);
DLLIMPORT bool operator>=(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT bool operator>=(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT bool operator>=(class CTXStringW const &,wchar_t const *);
DLLIMPORT bool operator>=(wchar_t const *,class CTXStringW const &);
DLLIMPORT class CTXStringA operator+(char const *,class CTXStringA const &);
DLLIMPORT class CTXStringA operator+(char,class CTXStringA const &);
DLLIMPORT class CTXStringA operator+(class CTXStringA const &,char const *);
DLLIMPORT class CTXStringA operator+(class CTXStringA const &,char);
DLLIMPORT class CTXStringA operator+(class CTXStringA const &,class CTXStringA const &);
DLLIMPORT class CTXStringW operator+(class CTXStringW const &,class CTXStringW const &);
DLLIMPORT class CTXStringW operator+(class CTXStringW const &,wchar_t const *);
DLLIMPORT class CTXStringW operator+(class CTXStringW const &,wchar_t);
DLLIMPORT class CTXStringW operator+(wchar_t const *,class CTXStringW const &);
DLLIMPORT class CTXStringW operator+(wchar_t,class CTXStringW const &);
|