MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / PartialMatch

Method PartialMatch

rtpose_wrapper/src/gtest/gtest-all.cpp:7938–7943  ·  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

7936// Returns true iff regular expression re matches a substring of str
7937// (including str itself).
7938bool RE::PartialMatch(const char* str, const RE& re) {
7939 if (!re.is_valid_) return false;
7940
7941 regmatch_t match;
7942 return regexec(&re.partial_regex_, str, 1, &match, 0) == 0;
7943}
7944
7945// Initializes an RE from its string representation.
7946void RE::Init(const char* regex) {

Callers

nothing calls this directly

Calls 1

MatchRegexAnywhereFunction · 0.85

Tested by

no test coverage detected