mirror of
https://github.com/openappsec/openappsec.git
synced 2026-01-17 16:00:26 +03:00
sync code
This commit is contained in:
@@ -54,10 +54,16 @@ public:
|
||||
SingleRegex(const std::string &pattern, bool &error, const std::string ®exName, bool bNoRegex=false,
|
||||
const std::string ®exMatchName="", const std::string ®exMatchValue="");
|
||||
~SingleRegex();
|
||||
bool hasMatch(const std::string &s) const;
|
||||
bool hasMatch(const std::string &s, size_t start = 0, size_t end = SIZE_MAX) const;
|
||||
size_t findAllMatches(const std::string &s, std::vector<RegexMatch> &matches,
|
||||
size_t max_matches = std::string::npos) const;
|
||||
size_t findMatchRanges(const std::string &s, std::vector<RegexMatchRange> &matchRanges) const;
|
||||
size_t findMatchRanges(
|
||||
const std::string &s,
|
||||
std::vector<RegexMatchRange> &matchRanges,
|
||||
size_t maxMatches = 0,
|
||||
size_t start = 0,
|
||||
size_t end = SIZE_MAX
|
||||
) const;
|
||||
const std::string &getName() const;
|
||||
private:
|
||||
pcre2_code *m_re;
|
||||
|
||||
Reference in New Issue
Block a user