9#ifndef SQUID_SRC_BASE_REGEXPATTERN_H
10#define SQUID_SRC_BASE_REGEXPATTERN_H
12#include "mem/forward.h"
40 bool match(
const char *str)
const {
return regexec(&
regex,str,0,
nullptr,0)==0;}
std::ostream & operator<<(std::ostream &os, const RegexPattern &rp)
bool match(const char *str) const
bool caseSensitive() const
whether the regex differentiates letter case
SBuf pattern
a regular expression in the text form, suitable for regcomp(3)
const int flags
bitmask of REG_* flags for regcomp(3)
void print(std::ostream &os, const RegexPattern *previous=nullptr) const
RegexPattern(RegexPattern &&)=delete
bool isDot() const
whether this is an "any single character" regex (".")
regex_t regex
a "compiled pattern buffer" filled by regcomp(3) for regexec(3)
MEMPROXY_CLASS(RegexPattern)
size_type length() const
Returns the number of bytes stored in SBuf.