| 10408 | // Implements RE. Currently only needed for death tests. |
| 10409 | |
| 10410 | RE::~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. |
| 10423 | bool RE::FullMatch(const char* str, const RE& re) { |
nothing calls this directly
no outgoing calls
no test coverage detected