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

Method FullMatch

rtpose_wrapper/src/gtest/gtest-all.cpp:7929–7934  ·  view source on GitHub ↗

Returns true iff regular expression re matches the entire str.

Source from the content-addressed store, hash-verified

7927
7928// Returns true iff regular expression re matches the entire str.
7929bool RE::FullMatch(const char* str, const RE& re) {
7930 if (!re.is_valid_) return false;
7931
7932 regmatch_t match;
7933 return regexec(&re.full_regex_, str, 1, &match, 0) == 0;
7934}
7935
7936// Returns true iff regular expression re matches a substring of str
7937// (including str itself).

Callers

nothing calls this directly

Calls 1

MatchRegexAnywhereFunction · 0.85

Tested by

no test coverage detected