1 \section{\class{wxStringList
}}\label{wxstringlist
}
3 {\bf NB:
} This class is obsolete, please don't use it any longer. You can use
4 either
\helpref{wxArrayString
}{wxarraystring
} or a
\helpref{type safe
}{wxlist
}
7 A string list is a list which is assumed to contain strings.
8 Memory is allocated when strings are added to
9 the list, and deallocated by the destructor or by the
{\bf Delete
}\rtfsp
12 \wxheading{Derived from
}
14 \helpref{wxList
}{wxlist
}\\
15 \helpref{wxObject
}{wxobject
}
17 \wxheading{Include files
}
23 \helpref{wxString
}{wxstring
},
\helpref{wxList
}{wxlist
}
25 \latexignore{\rtfignore{\wxheading{Members
}}}
27 \membersection{wxStringList::wxStringList
}
29 \func{}{wxStringList
}{\void}
33 \func{void
}{wxStringList
}{\param{char*
}{first
}, ...
}
35 Constructor, taking NULL-terminated string argument list. wxStringList
36 allocates memory for the strings.
38 \membersection{wxStringList::
\destruct{wxStringList
}}
40 \func{}{\destruct{wxStringList
}}{\void}
42 Deletes string list, deallocating strings.
44 \membersection{wxStringList::Add
}
46 \func{wxNode *
}{Add
}{\param{const wxString\&
}{s
}}
48 Adds string to list, allocating memory.
50 \membersection{wxStringList::Clear
}
52 \func{void
}{Clear
}{\void}
54 Clears all strings from the list.
56 \membersection{wxStringList::Delete
}
58 \func{void
}{Delete
}{\param{const wxString\&
}{s
}}
60 Searches for string and deletes from list, deallocating memory.
62 \membersection{wxStringList::ListToArray
}
64 \func{char*
}{ListToArray
}{\param{bool
}{ new
\_copies = FALSE
}}
66 Converts the list to an array of strings, only allocating new memory if
67 \rtfsp{\bf new
\_copies} is TRUE.
69 \membersection{wxStringList::Member
}
71 \func{bool
}{Member
}{\param{const wxString\&
}{s
}}
73 Returns TRUE if
{\bf s
} is a member of the list (tested using
{\bf strcmp
}).
75 \membersection{wxStringList::Sort
}
77 \func{void
}{Sort
}{\void}
79 Sorts the strings in ascending alphabetical order. Note that all nodes
80 (but not strings) get deallocated and new ones allocated.