ipvalidator.cpp File Reference

#include "ipvalidator.h"

Go to the source code of this file.

Defines

#define IP_REGEXP
#define MATCH_ALL   "*"

Define Documentation

#define IP_REGEXP
Value:
"\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"\
                  "\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"\
                  "\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"\
                  "\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b"

Regular expression to validate that input is a valid IP address.

Definition at line 20 of file ipvalidator.cpp.

#define MATCH_ALL   "*"

Match all IP addresses.

Definition at line 25 of file ipvalidator.cpp.

Referenced by PortValidator::validate(), and IPValidator::validate().


Generated on 2 Sep 2009 for Vidalia by  doxygen 1.6.1