| 139 | } |
| 140 | |
| 141 | Regex::Match::Match(const pcre2_code_8* code) |
| 142 | : data_{pcre2_match_data_create_from_pattern(code, nullptr)} { |
| 143 | if (!data_) { |
| 144 | throw errors::InputValidationException{ |
| 145 | fmt::format("Failed to construct regex match data buffer")}; |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | std::string_view Regex::Match::group(const std::string_view subject, |
| 150 | const std::size_t groupNum) const { |
nothing calls this directly
no outgoing calls
no test coverage detected