Add DebugLog message for bad pattern in rx operator

This commit is contained in:
Martin Vierula
2022-04-21 11:16:01 -07:00
parent ced56c5b08
commit 1aa7616c18
5 changed files with 54 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ class Regex {
Regex(const Regex&) = delete;
Regex& operator=(const Regex&) = delete;
bool hasError() const {
return (m_pc == NULL);
}
std::list<SMatch> searchAll(const std::string& s) const;
bool searchOneMatch(const std::string& s, std::vector<SMatchCapture>& captures) const;
bool searchGlobal(const std::string& s, std::vector<SMatchCapture>& captures) const;