mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
functions for indexing slices and strings
This commit is contained in:
parent
8f2637decb
commit
b792feccab
2 changed files with 63 additions and 48 deletions
|
@ -941,6 +941,10 @@ protected:
|
|||
bool is_slice;
|
||||
};
|
||||
|
||||
extern VectorValPtr index_slice(VectorVal* vect, const ListVal* lv);
|
||||
extern VectorValPtr index_slice(VectorVal* vect, int first, int last);
|
||||
extern StringValPtr index_string(const String* s, const ListVal* lv);
|
||||
|
||||
class IndexExprWhen final : public IndexExpr {
|
||||
public:
|
||||
static inline std::vector<ValPtr> results = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue