Vidalia  0.3.1
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

◆ IP_REGEXP

#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.

◆ MATCH_ALL

#define MATCH_ALL   "*"

Match all IP addresses.

Definition at line 24 of file IpValidator.cpp.