MCPcopy Create free account
hub / github.com/awslabs/aws-lambda-cpp / FullMatch

Method FullMatch

tests/gtest/gtest-all.cc:10423–10428  ·  view source on GitHub ↗

Returns true iff regular expression re matches the entire str.

Source from the content-addressed store, hash-verified

10421
10422// Returns true iff regular expression re matches the entire str.
10423bool RE::FullMatch(const char* str, const RE& re) {
10424 if (!re.is_valid_) return false;
10425
10426 regmatch_t match;
10427 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
10428}
10429
10430// Returns true iff regular expression re matches a substring of str
10431// (including str itself).

Callers

nothing calls this directly

Calls 1

MatchRegexAnywhereFunction · 0.85

Tested by

no test coverage detected