]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strlist.tex
moved wxJoystick, wxWave and wxTaskBarIcon to wxAdv
[wxWidgets.git] / docs / latex / wx / strlist.tex
CommitLineData
a660d684
KB
1\section{\class{wxStringList}}\label{wxstringlist}
2
9c9aeada
VZ
3{\bf NB:} This class is obsolete, please don't use it any longer. You can use
4either \helpref{wxArrayString}{wxarraystring} or a \helpref{type safe}{wxlist}
5list class instead.
6
8a2c6ef8
JS
7A string list is a list which is assumed to contain strings.
8Memory is allocated when strings are added to
a660d684
KB
9the list, and deallocated by the destructor or by the {\bf Delete}\rtfsp
10member.
11
12\wxheading{Derived from}
13
14\helpref{wxList}{wxlist}\\
15\helpref{wxObject}{wxobject}
16
954b8ae6
JS
17\wxheading{Include files}
18
19<wx/list.h>
20
a660d684
KB
21\wxheading{See also}
22
23\helpref{wxString}{wxstring}, \helpref{wxList}{wxlist}
24
25\latexignore{\rtfignore{\wxheading{Members}}}
26
27\membersection{wxStringList::wxStringList}
28
29\func{}{wxStringList}{\void}
30
31Constructor.
32
33\func{void}{wxStringList}{\param{char* }{first}, ...}
34
35Constructor, taking NULL-terminated string argument list. wxStringList
36allocates memory for the strings.
37
38\membersection{wxStringList::\destruct{wxStringList}}
39
40\func{}{\destruct{wxStringList}}{\void}
41
42Deletes string list, deallocating strings.
43
44\membersection{wxStringList::Add}
45
46\func{wxNode *}{Add}{\param{const wxString\& }{s}}
47
48Adds string to list, allocating memory.
49
7f555861
JS
50\membersection{wxStringList::Clear}
51
52\func{void}{Clear}{\void}
53
54Clears all strings from the list.
55
a660d684
KB
56\membersection{wxStringList::Delete}
57
58\func{void}{Delete}{\param{const wxString\& }{s}}
59
60Searches for string and deletes from list, deallocating memory.
61
62\membersection{wxStringList::ListToArray}
63
cc81d32f 64\func{char*}{ListToArray}{\param{bool}{ new\_copies = false}}
a660d684
KB
65
66Converts the list to an array of strings, only allocating new memory if
cc81d32f 67\rtfsp{\bf new\_copies} is true.
a660d684
KB
68
69\membersection{wxStringList::Member}
70
71\func{bool}{Member}{\param{const wxString\& }{s}}
72
cc81d32f 73Returns true if {\bf s} is a member of the list (tested using {\bf strcmp}).
a660d684
KB
74
75\membersection{wxStringList::Sort}
76
77\func{void}{Sort}{\void}
78
79Sorts the strings in ascending alphabetical order. Note that all nodes
80(but not strings) get deallocated and new ones allocated.
81
82