Returns true iff regular expression re matches the entire str.
| 9192 | |
| 9193 | // Returns true iff regular expression re matches the entire str. |
| 9194 | bool RE::FullMatch(const char* str, const RE& re) { |
| 9195 | if (!re.is_valid_) return false; |
| 9196 | |
| 9197 | regmatch_t match; |
| 9198 | return regexec(&re.full_regex_, str, 1, &match, 0) == 0; |
| 9199 | } |
| 9200 | |
| 9201 | // Returns true iff regular expression re matches a substring of str |
| 9202 | // (including str itself). |
nothing calls this directly
no test coverage detected