MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / FullMatch

Method FullMatch

test/common/gtest/gtest.cpp:9194–9199  ·  view source on GitHub ↗

Returns true iff regular expression re matches the entire str.

Source from the content-addressed store, hash-verified

9192
9193// Returns true iff regular expression re matches the entire str.
9194bool RE::FullMatch(const char* str, const RE& re) {
9195 if (!re.is_valid_) return false;
9196
9197 regmatch_t match;
9198 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
9199}
9200
9201// Returns true iff regular expression re matches a substring of str
9202// (including str itself).

Callers

nothing calls this directly

Calls 1

MatchRegexAnywhereFunction · 0.85

Tested by

no test coverage detected