mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Expr/Val: Add support for in set[pattern]
This commit is contained in:
parent
e39f280e3d
commit
c113b9b297
8 changed files with 135 additions and 7 deletions
|
@ -871,6 +871,11 @@ public:
|
|||
// Causes an internal error if called for any other kind of table.
|
||||
VectorValPtr LookupPattern(const StringValPtr& s);
|
||||
|
||||
// For a table[pattern] or set[pattern], returns True if any of the
|
||||
// patterns in the index matches the given string, else False.
|
||||
// Causes an internal error if called for any other kind of table.
|
||||
bool MatchPattern(const StringValPtr& s);
|
||||
|
||||
// For a table[pattern], fill stats with information about
|
||||
// the DFA's state for introspection.
|
||||
void GetPatternMatcherStats(detail::DFA_State_Cache_Stats* stats) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue