-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;
-}
-
-void wxTextValidator::SetIncludeList(const wxStringList& list)
-{
- wxCopyStringListToArrayString(m_includes, list);
-}
-
-void wxTextValidator::SetExcludeList(const wxStringList& list)
-{
- wxCopyStringListToArrayString(m_excludes, list);
-}
-
-bool wxTextValidator::IsInCharIncludeList(const wxString& val)
-{
- return IsInCharIncludes(val);
-}
-
-bool wxTextValidator::IsNotInCharExcludeList(const wxString& val)
-{
- return IsNotInCharExcludes(val);