RegexData.cc
Go to the documentation of this file.
98 debugs(28, DBG_IMPORTANT, cfg_filename << " line " << config_lineno << ": " << config_input_line);
99 debugs(28, DBG_IMPORTANT, "WARNING: regular expression '" << orig << "' has only wildcards and matches all strings. Using '.*' instead.");
103 debugs(28, DBG_IMPORTANT, cfg_filename << " line " << config_lineno << ": " << config_input_line);
104 debugs(28, DBG_IMPORTANT, "WARNING: regular expression '" << orig << "' has unnecessary wildcard(s). Using '" << t << "' instead.");
132compileOptimisedREs(std::list<RegexPattern> &curlist, const SBufList &sl, const int flagsAtLineStart)
197 debugs(28, (opt_parse_cfg_only?DBG_IMPORTANT:2), cfg_filename << " line " << config_lineno << ": " << config_input_line);
198 debugs(28, (opt_parse_cfg_only?DBG_IMPORTANT:2), "WARNING: there are more than 100 regular expressions. " <<
204compileUnoptimisedREs(std::list<RegexPattern> &curlist, const SBufList &sl, const int flagsAtLineStart)
246 debugs(28, DBG_IMPORTANT, "WARNING: Failed to optimize a set of regular expressions; will use them as-is instead;" <<
247 Debug::Extra << "configuration: " << cfg_filename << " line " << config_lineno << ": " << config_input_line <<
SBuf & JoinContainerIntoSBuf(SBuf &dest, const ContainerIterator &begin, const ContainerIterator &end, const SBuf &separator, const SBuf &prefix=SBuf(), const SBuf &suffix=SBuf())
Definition: Algorithms.h:68
static void compileOptimisedREs(std::list< RegexPattern > &curlist, const SBufList &sl, const int flagsAtLineStart)
Definition: RegexData.cc:132
static void compileUnoptimisedREs(std::list< RegexPattern > &curlist, const SBufList &sl, const int flagsAtLineStart)
Definition: RegexData.cc:204
static void compileREs(std::list< RegexPattern > &curlist, const SBufList &RE, int flags)
Definition: RegexData.cc:117
static void compileRE(std::list< RegexPattern > &curlist, const SBuf &RE, int flags)
Definition: RegexData.cc:111
static const char * removeUnnecessaryWildcards(char *t)
Definition: RegexData.cc:80
std::ostream & CurrentException(std::ostream &os)
prints active (i.e., thrown but not yet handled) exception
Definition: TextException.cc:88
const Acl::Options & lineOptions() override
supported ACL "line" options (e.g., "-i")
Definition: RegexData.cc:36
static Acl::BooleanOptionValue CaseInsensitive_
whether parse() is called in a case insensitive context
Definition: RegexData.h:31
Definition: RegexPattern.h:24
void print(std::ostream &os, const RegexPattern *previous=nullptr) const
Definition: RegexPattern.cc:42
Definition: Stream.h:21
int opt_parse_cfg_only