MediaWiki  master
IP.php
Go to the documentation of this file.
1 <?php
21 use Wikimedia\IPUtils;
22 
27 define( 'RE_IP_BYTE', IPUtils::RE_IP_BYTE );
31 define( 'RE_IP_ADD', IPUtils::RE_IP_ADD );
36 define( 'RE_IP_PREFIX', IPUtils::RE_IP_PREFIX );
40 define( 'RE_IP_RANGE', IPUtils::RE_IP_RANGE );
46 define( 'RE_IPV6_WORD', IPUtils::RE_IPV6_WORD );
50 define( 'RE_IPV6_PREFIX', IPUtils::RE_IPV6_PREFIX );
54 define( 'RE_IPV6_ADD', IPUtils::RE_IPV6_ADD );
59 define( 'RE_IPV6_RANGE', IPUtils::RE_IPV6_RANGE );
64 define( 'RE_IPV6_GAP', IPUtils::RE_IPV6_GAP );
68 define( 'RE_IPV6_V4_PREFIX', IPUtils::RE_IPV6_V4_PREFIX );
73 define( 'IP_ADDRESS_STRING', IPUtils::RE_IP_ADDRESS_STRING );
74 
80 class IP extends IPUtils {
81  // Direct wrapper.
82 }
RE_IPV6_V4_PREFIX
const RE_IPV6_V4_PREFIX
Definition: IP.php:68
RE_IPV6_RANGE
const RE_IPV6_RANGE
An IPv6 range is an IP address and a prefix (d1 to d128)
Definition: IP.php:59
RE_IPV6_PREFIX
const RE_IPV6_PREFIX
Definition: IP.php:50
RE_IPV6_ADD
const RE_IPV6_ADD
Definition: IP.php:54
RE_IPV6_GAP
const RE_IPV6_GAP
For IPv6 canonicalization (NOT for strict validation; these are quite lax!)
Definition: IP.php:64
IP
Pre-librarized class name for IPUtils.
Definition: IP.php:80
RE_IP_PREFIX
const RE_IP_PREFIX
An IPv4 range is an IP address and a prefix (d1 to d32)
Definition: IP.php:36
RE_IPV6_WORD
const RE_IPV6_WORD
An IPv6 address is made up of 8 words (each x0000 to xFFFF).
Definition: IP.php:46
RE_IP_RANGE
const RE_IP_RANGE
Definition: IP.php:40
RE_IP_BYTE
const RE_IP_BYTE
An IPv4 address is made of 4 bytes from x00 to xFF which is d0 to d255.
Definition: IP.php:27
RE_IP_ADD
const RE_IP_ADD
Definition: IP.php:31