#include "stdinc.h"#include "server.h"#include <regex.h>Go to the source code of this file.
Functions | |
| int | match_regx (char *str, char *pattern) |
| int | match_wild (const char *pattern, const char *str, int docase) |
| int | match_cidr (unsigned char addr[16], unsigned char mask[16], unsigned char bits) |
| int match_cidr | ( | unsigned char | addr[16], | |
| unsigned char | mask[16], | |||
| unsigned char | bits | |||
| ) |
Test whether an address matches the most significant bits of a mask.
| [in] | addr | Address to test. |
| [in] | mask | Address to test against. |
| [in] | bits | Number of bits to test. |
Given to us by jobe.
| int match_regx | ( | char * | str, | |
| char * | pattern | |||
| ) |
Definition at line 33 of file match.c.
Referenced by VerifyConf().
| int match_wild | ( | const char * | pattern, | |
| const char * | str, | |||
| int | docase | |||
| ) |
do_match_wild: Attempt to match a string to a pattern which might contain '*' or '?' wildcards. Return 1 if the string matches the pattern, 0 if not.
| pattern | To be matched | |
| str | String in which the pattern is to be matched | |
| docase | Case In/Senstive |
match_wild borrowed from Anope1.7.21
Definition at line 65 of file match.c.
References match_wild().
Referenced by find_access(), and match_wild().
1.6.3