+ return true;
+}
+
+#if WXWIN_COMPATIBILITY_2_4
+
+inline void wxCopyStringListToArrayString(wxArrayString& to, const wxStringList& from)
+{
+ to.Clear();
+
+ for ( wxStringList::compatibility_iterator pNode = from.GetFirst();
+ pNode;
+ pNode = pNode->GetNext() )
+ {
+ to.Add(pNode->GetData());
+ }
+}
+
+inline void wxCopyArrayStringToStringList(wxStringList& to, const wxArrayString& from)
+{
+ to.Clear();
+
+ for(size_t i = 0; i < from.GetCount(); ++i)
+ to.Add(from[i]);
+}
+
+wxStringList& wxTextValidator::GetIncludeList()
+{
+ wxCopyArrayStringToStringList(m_includeList, m_includes);
+ return m_includeList;
+}
+
+wxStringList& wxTextValidator::GetExcludeList()
+{
+ wxCopyArrayStringToStringList(m_excludeList, m_excludes);
+ return m_excludeList;