Vidalia  0.2.21
Macros
IpValidator.cpp File Reference
#include "IpValidator.h"

Go to the source code of this file.

Macros

#define IP_REGEXP
 
#define MATCH_ALL   "*"
 

Macro Definition 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 19 of file IpValidator.cpp.

#define MATCH_ALL   "*"

Match all IP addresses.

Definition at line 24 of file IpValidator.cpp.

Referenced by IpValidator::validate().