MCPcopy Create free account
hub / github.com/OpenAssetIO/OpenAssetIO / Match

Method Match

src/openassetio-core/src/utils/Regex.cpp:141–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141Regex::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
149std::string_view Regex::Match::group(const std::string_view subject,
150 const std::size_t groupNum) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected