Skip to main content

Module subset

Module subset 

Source
Expand description

ISSUBSET / ISSUPERSET for IPv4/IPv6 addresses and CIDR ranges.

Functions§

is_subset
Returns true if value (an IP address or CIDR range) is contained within range (the ISSUBSET operator). IPv4/IPv6 only; mixed families and unparseable inputs never match.
is_superset
Returns true if value contains range (the ISSUPERSET operator) — the inverse of is_subset.