]> git.saurik.com Git - wxWidgets.git/blob - docs/latex/wx/wxstring.tex
Added ODBC classes manual (Word 97).
[wxWidgets.git] / docs / latex / wx / wxstring.tex
1 \section{\class{wxString}}\label{wxstring}
2
3 \wxheading{Derived from}
4
5 None
6
7 \wxheading{See also}
8
9 \overview{Overview}{wxstringoverview}
10
11 \latexignore{\rtfignore{\wxheading{Members}}}
12
13 \membersection{wxString::wxString}\label{wxstringconstruct}
14
15 \func{}{wxString}{\void}
16
17 Default constructor.
18
19 \func{}{wxString}{\param{const wxString\&}{ x}}
20
21 Copy constructor.
22
23 \func{}{wxString}{\param{char}{ ch}, \param{size\_t}{ n = 1}}
24
25 Constructs a string of {\it n} copies of character {\it ch}.
26
27 \func{}{wxString}{\param{const char*}{ psz}, \param{size\_t}{ nLength = STRING\_MAXLEN}}
28
29 Takes first {\it nLength} characters from the C string {\it psz}.
30 The default value of STRING\_MAXLEN means take all the string.
31
32 \func{}{wxString}{\param{const unsigned char*}{ psz}, \param{size\_t}{ nLength = STRING\_MAXLEN}}
33
34 For compilers using unsigned char: takes first {\it nLength} characters from the C string {\it psz}.
35 The default value of STRING\_MAXLEN means take all the string.
36
37 \func{}{wxString}{\param{const wchar\_t*}{ psz}}
38
39 Constructs a string from the wide (UNICODE) string.
40
41 \membersection{wxString::\destruct{wxString}}\label{wxstringdestruct}
42
43 \func{}{\destruct{wxString}}{\void}
44
45 String destructor. Note that this is not virtual, so wxString must not be inherited from.
46
47 \membersection{wxString::Alloc}\label{wxstringAlloc}
48
49 \func{void}{Alloc}{\param{uint}{ newsize}}
50
51 Preallocate some space for wxString. Only works if the data of this string is not shared.
52
53 \membersection{wxString::Append}\label{wxstringAppend}
54
55 \func{wxString\&}{Append}{\param{const char*}{ psz}}
56
57 Concatenates {\it psz} to this string, returning a reference to it.
58
59 \func{wxString\&}{Append}{\param{char}{ ch}, \param{int}{ count = 1}}
60
61 Concatenates character {\it ch} to this string, {\it count} times, returning a reference
62 to it.
63
64 \membersection{wxString::After}\label{wxstringAfter}
65
66 \constfunc{wxString}{After}{\param{char}{ ch}}
67
68 Gets all the characters after the first occurence of {\it ch}.
69 Returns the empty string if {\it ch} is not found.
70
71 \membersection{wxString::Before}\label{wxstringBefore}
72
73 \constfunc{wxString}{Before}{\param{char}{ ch}}
74
75 Gets all characters before the last occurence of {\it ch}.
76 Returns empty string if {\it ch} is not found.
77
78 \membersection{wxString::CompareTo}\label{wxstringCompareTo}
79
80 \begin{verbatim}
81 #define NO_POS ((int)(-1)) // undefined position
82 enum caseCompare {exact, ignoreCase};
83 \end{verbatim}
84
85 \constfunc{int}{CompareTo}{\param{const char*}{ psz}, \param{caseCompare}{ cmp = exact}}
86
87 Case-sensitive comparison. Returns 0 if equal, 1 if greater or -1 if less.
88
89 \membersection{wxString::Contains}\label{wxstringContains}
90
91 \func{bool}{Contains}{\param{const wxString\&}{ str}}
92
93 Returns 1 if target appears anyhere in wxString; else 0.
94
95 \membersection{wxString::IsEmpty}\label{wxstringisempty}
96
97 \constfunc{bool}{IsEmpty}{\void}
98
99 \membersection{wxString::First}\label{wxstringfirst}
100
101 \func{size\_t}{First}{\param{char}{ c}}
102
103 \constfunc{size\_t}{First}{\param{const char*}{ psz}}
104
105 \constfunc{size\_t}{First}{\param{const wxString\&}{ str}}
106
107 \constfunc{size\_t}{First}{\param{const char}{ ch}}
108
109 Returns first occurrence of item.
110
111
112
113
114
115
116
117
118
119
120 \membersection{wxString::Firstchar}\label{wxstringFirstchar}
121 \func{char}{Firstchar}{\param{void}{}} \param{ const}{}
122
123 Element extraction.
124
125 \membersection{wxString::Freq}\label{wxstringFreq}
126
127 \func{int}{Freq}{\param{char}{ c}} \param{ const}{}\\
128 \func{int}{Freq}{\param{const wxString\&}{ y}} \param{ const}{}\\
129 \func{int}{Freq}{\param{const wxSubString\&}{ y}} \param{ const}{}\\
130 \func{int}{Freq}{\param{const char*}{ t}} \param{ const}{}
131
132 Return number of occurrences of target in wxString.
133
134 \membersection{wxString::From}\label{wxstringFrom}
135
136 \func{wxSubString}{From}{\param{int}{ pos}}\\
137 \func{wxSubString}{From}{\param{const wxString\&}{ x}, \param{int}{ startpos = 0}}\\
138 \func{wxSubString}{From}{\param{const wxSubString\&}{ x}, \param{int}{ startpos = 0}}\\
139 \func{wxSubString}{From}{\param{const char*}{ t}, \param{int}{ startpos = 0}}\\
140 \func{wxSubString}{From}{\param{char}{ c}, \param{int}{ startpos = 0}}\\
141 \func{wxSubString}{From}{\param{const wxRegex\&}{ r}, \param{int}{ startpos = 0}}
142
143 \membersection{wxString::GetData}\label{wxstringGetData}
144
145 \func{char*}{GetData}{\param{void}{}}
146
147 wxWindows compatibility conversion.
148
149 \membersection{wxString::GSub}\label{wxstringGSub}
150 \func{int}{GSub}{\param{const wxString\&}{ pat}, \param{const wxString\&}{ repl}}\\
151 \func{int}{GSub}{\param{const wxSubString\&}{ pat}, \param{const wxString\&}{ repl}}\\
152 \func{int}{GSub}{\param{const char*}{ pat}, \param{const wxString\&}{ repl}}\\
153 \func{int}{GSub}{\param{const char*}{ pat}, \param{const char*}{ repl}}\\
154 \func{int}{GSub}{\param{const wxRegex\&}{ pat}, \param{const wxString\&}{ repl}}
155
156 Global substitution: substitute all occurrences of {\it pat} with {\it repl},
157 returning the number of matches.
158
159 \membersection{wxString::Index}\label{wxstringIndex}
160
161 \func{int}{Index}{\param{char}{ c}, \param{int}{ startpos = 0}} \param{ const}{}\\
162 \func{int}{Index}{\param{const wxString\&}{ y}, \param{int}{ startpos = 0}} \param{ const}{}\\
163 \func{int}{Index}{\param{const wxString\&}{ y}, \param{int}{ startpos}, \param{CaseCompare}{ cmp}} \param{ const}{}\\
164 \func{int}{Index}{\param{const wxSubString\&}{ y}, \param{int}{ startpos = 0}} \param{ const}{}\\
165 \func{int}{Index}{\param{const char*}{ t}, \param{int}{ startpos = 0}} \param{ const}{}\\
166 \func{int}{Index}{\param{const char*}{ t}, \param{int}{ startpos}, \param{CaseCompare}{ cmp}} \param{ const}{}\\
167 \func{int}{Index}{\param{const wxRegex\&}{ r}, \param{int}{ startpos = 0}} \param{ const}{}
168
169 Return the position of target in string, or -1 for failure.
170
171 \membersection{wxString::Insert}\label{wxstringInsert}
172
173 \func{wxString\&}{Insert}{\param{int}{ pos}, \param{const char*}{ s}}\\
174 \func{wxString\&}{Insert}{\param{int}{ pos}, \param{const wxString\&}{ s}}
175
176 Insertion.
177
178 \membersection{wxString::IsAscii}\label{wxstringIsAscii}
179
180 \func{int}{IsAscii}{\param{void}{}} \param{ const}{}
181
182 Classification (should be capital, because of ctype.h macros).
183
184 \membersection{wxString::IsDefined}\label{wxstringIsDefined}
185
186 \func{int}{IsDefined}{\param{void}{}} \param{ const}{}
187
188 Classification (should be capital, because of ctype.h macros).
189
190 \membersection{wxString::IsNull}\label{wxstringIsNull}
191
192 \func{int}{IsNull}{\param{void}{}} \param{ const}{}
193
194 Classification (should be capital, because of ctype.h macros).
195
196 \membersection{wxString::IsNumber}\label{wxstringIsNumber}
197
198 \func{int}{IsNumber}{\param{void}{}} \param{ const}{}
199
200 Classification (should be capital, because of ctype.h macros).
201
202 \membersection{wxString::IsWord}\label{wxstringIsWord}
203
204 \func{int}{IsWord}{\param{void}{}} \param{ const}{}
205
206 Classification (should be capital, because of ctype.h macros).
207
208 \membersection{wxString::Last}\label{wxstringLast}
209
210 \func{int}{Last}{\param{char}{ c}} \param{ const}{}\\
211 \func{int}{Last}{\param{const char*}{ cs}} \param{ const}{}\\
212 \func{int}{Last}{\param{const wxString\&}{ cs}} \param{ const}{}
213
214 First or last occurrence of item.
215
216 \membersection{wxString::Lastchar}\label{wxstringLastchar}
217
218 \func{char}{Lastchar}{\param{void}{}} \param{ const}{}
219
220 Element extraction.
221
222 \membersection{wxString::Length}\label{wxstringLength}
223
224 \func{unsigned int}{Length}{\param{void}{}} \param{ const}{}
225
226 \membersection{wxString::LowerCase}\label{wxstringLowerCase}
227
228 \func{void}{LowerCase}{\param{void}{}}
229
230 \membersection{wxString::Matches}\label{wxstringMatches}
231
232 \func{bool}{Matches}{\param{char}{ c}, \param{int}{ pos = 0}} \param{ const}{}\\
233 \func{bool}{Matches}{\param{const wxString\&}{ y}, \param{int}{ pos = 0}} \param{ const}{}\\
234 \func{bool}{Matches}{\param{const wxSubString\&}{ y}, \param{int}{ pos = 0}} \param{ const}{}\\
235 \func{bool}{Matches}{\param{const char*}{ t}, \param{int}{ pos = 0}} \param{ const}{}\\
236 \func{bool}{Matches}{\param{const wxRegex\&}{ r}, \param{int}{ pos = 0}} \param{ const}{}
237
238 Return 1 if target appears at position {\it pos} in wxString; else 0.
239
240 \membersection{wxString::OK}\label{wxstringOK}
241
242 \func{int}{OK}{\param{void}{}} \param{ const}{}
243
244 \membersection{wxString::Prepend}\label{wxstringPrepend}
245
246 \func{wxString\&}{Prepend}{\param{const wxString\&}{ y}}\\
247 \func{wxString\&}{Prepend}{\param{const wxSubString\&}{ y}}\\
248 \func{wxString\&}{Prepend}{\param{const char*}{ t}}\\
249 \func{wxString\&}{Prepend}{\param{char}{ c}}
250
251 Prepend.
252
253 \func{wxString\&}{Prepend}{\param{char}{ c}, \param{int}{ rep=1}}
254
255 Prepend {\it c}, {\it rep} times.
256
257 \membersection{wxString::Readline}\label{wxstringReadline}
258
259 \func{friend int}{Readline}{\param{istream\&}{ s}, \param{wxString\&}{ x},
260 \param{char}{ terminator = '$\backslash$n'},
261 \param{int}{ discard\_terminator = 1}}\\
262 \func{friend int}{Readline}{\param{FILE *}{ f}, \param{wxString\&}{ x},
263 \param{char}{ terminator = '$\backslash$n'},
264 \param{int}{ discard\_terminator = 1}}
265
266 \membersection{wxString::Remove}\label{wxstringRemove}
267
268 \func{wxString\&}{RemoveLast}{\param{void}{}}\\
269 \func{wxString\&}{Remove}{\param{int}{ pos}}\\
270 \func{wxString\&}{Remove}{\param{int}{ pos}, \param{int}{ len}}
271
272 Remove {\it pos} to end of string.
273
274 \membersection{wxString::Replace}\label{wxstringReplace}
275
276 \func{wxString\&}{Replace}{\param{int}{ pos}, \param{int}{ n}, \param{const char*}{ s}}\\
277 \func{wxString\&}{Replace}{\param{int}{ pos}, \param{int}{ n}, \param{const wxString\&}{ s}}
278
279 \membersection{wxString::Replicate}\label{wxstringReplicate}
280
281 \func{friend wxString}{Replicate}{\param{char}{ c}, \param{int}{ n}}\\
282 \func{friend wxString}{Replicate}{\param{const wxString\&}{ y}, \param{int}{ n}}
283
284 Replication.
285
286 \membersection{wxString::Reverse}\label{wxstringReverse}
287
288 \func{void}{Reverse}{\param{void}{}}\\
289 \func{friend wxString}{Reverse}{\param{wxString\&}{ x}}
290
291 \membersection{wxString::sprintf}\label{wxstringsprintf}
292 \func{void}{sprintf}{\param{const wxString\& }{ fmt}}
293
294 Formatted assignment. We do not use the 'sprintf' constructor anymore,
295 because with that constructor, every initialisation with a string would
296 go through sprintf and this is not desirable, because sprintf
297 interprets some characters. With the above function we can write:
298
299 \begin{verbatim}
300 wxString msg; msg.sprintf("Processing item %d\n", count);
301 \end{verbatim}
302
303 \membersection{wxString::Strip}\label{wxstringStrip}
304
305 \begin{verbatim}
306 enumStripType {leading = 0x1, trailing = 0x2, both = 0x3};
307 \end{verbatim}
308
309 \func{wxSubString}{Strip}{\param{StripType}{ s = trailing}, \param{char}{ c = ' '}}
310
311 Strip characterss at the front and/or end.
312 StripType is defined for bitwise ORing.
313
314 \membersection{wxString::SubString}\label{wxstringSubString}
315
316 \func{wxString}{SubString}{\param{int}{ from}, \param{int}{ to}}
317
318 Edward Zimmermann's additions.
319
320 \membersection{wxString::Through}\label{wxstringThrough}
321
322 \func{wxSubString}{Through}{\param{int}{ pos}}\\
323 \func{wxSubString}{Through}{\param{const wxString\&}{ x}, \param{int}{ startpos = 0}}\\
324 \func{wxSubString}{Through}{\param{const wxSubString\&}{ x}, \param{int}{ startpos = 0}}\\
325 \func{wxSubString}{Through}{\param{const char*}{ t}, \param{int}{ startpos = 0}}\\
326 \func{wxSubString}{Through}{\param{char}{ c}, \param{int}{ startpos = 0}}\\
327 \func{wxSubString}{Through}{\param{const wxRegex\&}{ r}, \param{int}{ startpos = 0}}
328
329 \membersection{wxString::Upcase}\label{wxstringUpcase}
330
331 \func{void}{Upcase}{\param{void}{}}\\
332 \func{friend wxString}{Upcase}{\param{wxString\&}{ x}}
333
334 \membersection{wxString::UpperCase}\label{wxstringUpperCase}
335
336 \func{void}{UpperCase}{\param{void}{}}\\
337
338 \membersection{wxString::operator $=$}\label{wxstringoperatorassign}
339
340 \func{wxString\&}{operator $=$}{\param{const wxString\&}{ y}}\\
341 \func{wxString\&}{operator $=$}{\param{const char*}{ y}}\\
342 \func{wxString\&}{operator $=$}{\param{char}{ c}}\\
343 \func{wxString\&}{operator $=$}{\param{const wxSubString\&}{ y}}
344
345 Assignment.
346
347 \membersection{wxString::operator $+=$}\label{wxstringPlusEqual}
348
349 \func{wxString\&}{operator $+=$}{\param{const wxString\&}{ y}}\\
350 \func{wxString\&}{operator $+=$}{\param{const wxSubString\&}{ y}}\\
351 \func{wxString\&}{operator $+=$}{\param{const char*}{ t}}\\
352 \func{wxString\&}{operator $+=$}{\param{char}{ c}}
353
354 Concatenation.
355
356 \membersection{wxString::operator []}\label{wxstringoperatorbracket}
357
358 \func{char\&}{operator []}{\param{int}{ i}}
359
360 Element extraction.
361
362 \membersection{wxString::operator ()}\label{wxstringoperatorparenth}
363
364 \func{char\&}{operator ()}{\param{int}{ i}}
365
366 \membersection{wxString::operator \cinsert}\label{wxstringoperatorout}
367 \func{friend ostream\&}{operator \cinsert}{\param{ostream\&}{ s}, \param{const wxString\&}{ x}}\\
368 \func{friend ostream\&}{operator \cinsert}{\param{ostream\&}{ s}, \param{const wxSubString\&}{ x}}
369
370 \membersection{wxString::operator \cextract}\label{wxstringoperatorin}
371 \func{friend istream\&}{operator \cextract}{\param{istream\&}{ s}, \param{wxString\&}{ x}}
372
373 \membersection{wxString::operator const char*}\label{wxstringoperatorconstcharpt}
374 \constfunc{}{operator const char*}{\param{void}{}}
375
376 Conversion.
377
378 \membersection{wxCHARARG}\label{wxstringwxCHARARG}
379
380 \begin{verbatim}
381 #define wxCHARARG(s) ((const wxString\& )(s).Chars())
382 \end{verbatim}
383
384 Here is a very, very, very ugly macro, but it makes things more
385 transparent in cases, where a library function requires a
386 (const wxString\& ) argument. This is especially the case in wxWindows,
387 where all char-arguments are (const wxString\& ) and not (const char* ).
388 This macro should only be used in such cases and NOT to
389 modify the internal data.
390 The conventional way would be 'function((char*)string.Chars())'.
391 With the wxCHARARG macro, this can be achieved by 'function(wxCHARARG(string))'.
392 This makes it clearer that the usage should be confined
393 to arguments.
394
395 \membersection{CommonPrefix}\label{wxstringCommonPrefix}
396
397 \func{friend wxString}{CommonPrefix}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y},\\
398 \param{int}{ startpos = 0}}\\
399
400 \membersection{CommonSuffix}\label{wxstringCommonSuffix}
401
402 \func{friend wxString}{CommonSuffix}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y},\\
403 \param{int}{ startpos = -1}}
404
405 \membersection{Compare}\label{wxstringCompare}
406
407 \func{int}{Compare}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
408 \func{int}{Compare}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
409 \func{int}{Compare}{\param{const wxString\&}{ x}, \param{const char*}{ y}}\\
410 \func{int}{Compare}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
411 \func{int}{Compare}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
412 \func{int}{Compare}{\param{const wxSubString\&}{ x}, \param{const char*}{ y}}
413
414 Case dependent comparison. Returns 0 if the match succeeded.
415
416 \membersection{FCompare}\label{wxstringFCompare}
417
418 \func{int}{FCompare}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}
419
420 Case independent comparison. Returns 0 if the match succeeded.
421
422 \membersection{Comparison operators}\label{wxstringComparison}
423
424 \func{int}{operator $==$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
425 \func{int}{operator $!=$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
426 \func{int}{operator $>$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
427 \func{int}{operator $>=$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
428 \func{int}{operator $<$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
429 \func{int}{operator $<=$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
430 \func{int}{operator $==$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
431 \func{int}{operator $!=$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
432 \func{int}{operator $>$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
433 \func{int}{operator $>=$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
434 \func{int}{operator $<$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
435 \func{int}{operator $<=$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
436 \func{int}{operator $==$}{\param{const wxString\&}{ x}, \param{const char*}{ t}}\\
437 \func{int}{operator $!=$}{\param{const wxString\&}{ x}, \param{const char*}{ t}}\\
438 \func{int}{operator $>$}{\param{const wxString\&}{ x}, \param{const char*}{ t}}\\
439 \func{int}{operator $>=$}{\param{const wxString\&}{ x}, \param{const char*}{ t}}\\
440 \func{int}{operator $<$}{\param{const wxString\&}{ x}, \param{const char*}{ t}}\\
441 \func{int}{operator $<=$}{\param{const wxString\&}{ x}, \param{const char*}{ t}}\\
442 \func{int}{operator $==$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
443 \func{int}{operator $!=$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
444 \func{int}{operator $>$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
445 \func{int}{operator $>=$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
446 \func{int}{operator $<$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
447 \func{int}{operator $<=$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
448 \func{int}{operator $==$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
449 \func{int}{operator $!=$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
450 \func{int}{operator $>$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
451 \func{int}{operator $>=$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
452 \func{int}{operator $<$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
453 \func{int}{operator $<=$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
454 \func{int}{operator $==$}{\param{const wxSubString\&}{ x}, \param{const char*}{ t}}\\
455 \func{int}{operator $!=$}{\param{const wxSubString\&}{ x}, \param{const char*}{ t}}\\
456 \func{int}{operator $>$}{\param{const wxSubString\&}{ x}, \param{const char*}{ t}}\\
457 \func{int}{operator $>=$}{\param{const wxSubString\&}{ x}, \param{const char*}{ t}}\\
458 \func{int}{operator $<$}{\param{const wxSubString\&}{ x}, \param{const char*}{ t}}\\
459 \func{int}{operator $<=$}{\param{const wxSubString\&}{ x}, \param{const char*}{ t}}
460
461 \membersection{operator $+$}\label{wxstringoperatorplus}
462
463 \func{wxString}{operator $+$}{\param{const wxString\&}{ x}, \param{const wxString\&}{ y}}\\
464 \func{wxString}{operator $+$}{\param{const wxString\&}{ x}, \param{const wxSubString\&}{ y}}\\
465 \func{wxString}{operator $+$}{\param{const wxString\&}{ x}, \param{const char*}{ y}}\\
466 \func{wxString}{operator $+$}{\param{const wxString\&}{ x}, \param{char}{ y}}\\
467 \func{wxString}{operator $+$}{\param{const wxSubString\&}{ x}, \param{const wxString\&}{ y}}\\
468 \func{wxString}{operator $+$}{\param{const wxSubString\&}{ x}, \param{const wxSubString\&}{ y}}\\
469 \func{wxString}{operator $+$}{\param{const wxSubString\&}{ x}, \param{const char*}{ y}}\\
470 \func{wxString}{operator $+$}{\param{const wxSubString\&}{ x}, \param{char}{ y}}\\
471 \func{wxString}{operator $+$}{\param{const char*}{ x}, \param{const wxString\&}{ y}}\\
472 \func{wxString}{operator $+$}{\param{const char*}{ x}, \param{const wxSubString\&}{ y}}
473
474 \membersection{Join}\label{wxstringJoin}
475
476 \func{friend wxString}{Join}{\param{wxString}{ src[]}, \param{int}{ n}, \param{const wxString\&}{ sep}}
477
478 \membersection{Split}\label{wxstringSplit}
479
480 \func{friend int}{Split}{\param{const wxString\&}{ x}, \param{wxString}{ res[]}, \param{int}{ maxn},\\
481 \param{const wxString\&}{ sep}}\\
482 \func{friend int}{Split}{\param{const wxString\&}{ x}, \param{wxString}{ res[]}, \param{int}{ maxn},\\
483 \param{const wxRegex\&}{ sep}}\\
484
485 Split string into array res at separators; return number of elements
486
487
488