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

Method ~RE

tests/gtest/gtest-all.cc:10410–10420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10408// Implements RE. Currently only needed for death tests.
10409
10410RE::~RE() {
10411 if (is_valid_) {
10412 // regfree'ing an invalid regex might crash because the content
10413 // of the regex is undefined. Since the regex's are essentially
10414 // the same, one cannot be valid (or invalid) without the other
10415 // being so too.
10416 regfree(&partial_regex_);
10417 regfree(&full_regex_);
10418 }
10419 free(const_cast<char*>(pattern_));
10420}
10421
10422// Returns true iff regular expression re matches the entire str.
10423bool RE::FullMatch(const char* str, const RE& re) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected