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

Method PartialMatch

test/common/gtest/gtest.cpp:9203–9208  ·  view source on GitHub ↗

Returns true iff regular expression re matches a substring of str (including str itself).

Source from the content-addressed store, hash-verified

9201// Returns true iff regular expression re matches a substring of str
9202// (including str itself).
9203bool RE::PartialMatch(const char* str, const RE& re) {
9204 if (!re.is_valid_) return false;
9205
9206 regmatch_t match;
9207 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
9208}
9209
9210// Initializes an RE from its string representation.
9211void RE::Init(const char* regex) {

Callers

nothing calls this directly

Calls 1

MatchRegexAnywhereFunction · 0.85

Tested by

no test coverage detected