- long m_validatorStyle;
- wxString * m_stringValue;
- wxStringList m_includeList;
- wxStringList m_excludeList;
+
+ // returns true if all characters of the given string are present in m_includes
+ bool IsInCharIncludes(const wxString& val) const;
+
+ // returns true if all characters of the given string are NOT present in m_excludes
+ bool IsNotInCharExcludes(const wxString& val) const;
+
+ // returns true if the contents of 'val' are valid for the current validation style
+ bool IsValid(const wxString& val, wxString* errormsg) const;
+
+protected:
+ wxTextValidatorStyle m_validatorStyle;
+ wxString * m_stringValue;
+ wxArrayString m_includes;
+ wxArrayString m_excludes;
+
+private:
+ DECLARE_NO_ASSIGN_CLASS(wxTextValidator)
+ DECLARE_DYNAMIC_CLASS(wxTextValidator)
+ DECLARE_EVENT_TABLE()