#pragma once #include "pch.h" #include "vase/shard.h" struct RegexGroup { uint32_t start; uint32_t end; bool matched; }; struct RegexMatch { uint32_t start; uint32_t end; std::vector groups{}; }; const std::vector regex_search( Shard *root, std::string_view pattern_str, uint32_t start_offset, uint32_t end_offset, std::string_view options ); void print_regex(const std::vector &matches);