-/* input_validators.C
- * A collection of input filtering and validating functions for use in
- * XForms dialogs. Mainly meant for filtering input boxes although may
- * be extended to include other generally useful xforms-specific tools.
+/**
+ * \file input_validators.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Allan Rae
+ *
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
+#include "input_validators.h"
-#include "lyx_forms.h"
#include "support/lstrings.h"
-#include "input_validators.h"
-using namespace lyx::support;
+#include "lyx_forms.h"
+
+namespace support = lyx::support;
+
#if defined(__cplusplus)
extern "C"
{
if (c == 0 /* final test before handing contents to app */
|| strchr("0123456789+-", c)) {
- if (isStrInt(fl_get_input(ob)))
+ if (support::isStrInt(fl_get_input(ob)))
return FL_VALID;
}
return FL_INVALID|FL_RINGBELL;
{
if (c == 0 /* final test before handing contents to app */
|| strchr("0123456789.+-", c)) {
- if (isStrDbl(fl_get_input(ob)))
+ if (support::isStrDbl(fl_get_input(ob)))
return FL_VALID;
}
return FL_INVALID|FL_RINGBELL;
{
if (c == 0 /* final test before handing contents to app */
|| strchr("0123456789.", c)) {
- if (isStrDbl(fl_get_input(ob)))
+ if (support::isStrDbl(fl_get_input(ob)))
return FL_VALID;
}
return FL_INVALID|FL_RINGBELL;