casbin/util/built_in_functions.cpp
ReturnType IPMatch(Scope scope) {
    std::string ip1 = GetString(scope, 0);
    std::string ip2 = GetString(scope, 1);

    PushBooleanValue(scope, IPMatch(ip1, ip2));
    return RETURN_RESULT;
}
// IPMatch determines whether IP address ip1 matches the pattern of IP address ip2, ip2 can be an IP address or a CIDR pattern.
// For example, "192.168.2.123" matches "192.168.2.0/24"
IPMatch determines whether IP address ip1 matches the pattern of IP address ip2, ip2 can be an IP address or a CIDR pattern.
IPMatch determines whether IP address ip1 matches the pattern of IP address ip2 ip2 can be an IP address or a CIDR pattern .
ReturnType IPMatch(Scope scope) {
    std::string ip1 = GetString(scope, 0);
    std::string ip2 = GetString(scope, 1);
    PushBooleanValue(scope, IPMatch(ip1, ip2));
    return RETURN_RESULT;
}
ReturnType IPMatch ( Scope scope ) { std :: string ip1 = GetString ( scope , 0 ) ; std :: string ip2 = GetString ( scope , 1 ) ; PushBooleanValue ( scope , IPMatch ( ip1 , ip2 ) ) ; return RETURN_RESULT ; }
IPMatch determines whether IP address ip1 matches the pattern of IP address ip2, ip2 can be an IP address or a CIDR pattern.
IPMatch determines whether IP address ip1 matches the pattern of IP address ip2 ip2 can be an IP address or a CIDR pattern .