MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / FindAllRegexMatch

Method FindAllRegexMatch

src/Regex.cpp:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64FindAllRegexMatch::FindAllRegexMatch(const std::regex& regexImpl, const std::string& expression) {
65 std::sregex_token_iterator i(
66 expression.begin(), expression.end(), regexImpl, 1, std::regex_constants::match_continuous
67 );
68 const std::sregex_token_iterator end;
69 for (; i != end; ++i) {
70 RegexSubmatch s = {*i, -1};
71 submatches.push_back(s);
72 }
73 regexMatched = !submatches.empty();
74}
75
76}
77}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected