+static bool wxIsAlpha(const wxString& val)
+{
+ int i;
+ for ( i = 0; i < (int)val.length(); i++)
+ {
+ if (!wxIsalpha(val[i]))
+ return false;
+ }
+ return true;
+}
+
+static bool wxIsAlphaNumeric(const wxString& val)
+{
+ int i;
+ for ( i = 0; i < (int)val.length(); i++)
+ {
+ if (!wxIsalnum(val[i]))
+ return false;
+ }
+ return true;
+}
+
+static bool wxIsNumeric(const wxString& val)
+{
+ int i;
+ for ( i = 0; i < (int)val.length(); i++)
+ {
+ // Allow for "," (French) as well as "." -- in future we should
+ // use wxSystemSettings or other to do better localisation
+ if ((!wxIsdigit(val[i])) && (val[i] != wxT('.')) && (val[i] != wxT(',')) && (val[i] != wxT('e')) &&
+ (val[i] != wxT('E')) && (val[i] != wxT('+')) && (val[i] != wxT('-')))
+ return false;
+ }
+ return true;
+}
+
+
+// ----------------------------------------------------------------------------
+// wxTextValidator
+// ----------------------------------------------------------------------------