Returns true iff regular expression re matches the entire str.
| 10421 | |
| 10422 | // Returns true iff regular expression re matches the entire str. |
| 10423 | bool RE::FullMatch(const char* str, const RE& re) { |
| 10424 | if (!re.is_valid_) return false; |
| 10425 | |
| 10426 | regmatch_t match; |
| 10427 | return regexec(&re.full_regex_, str, 1, &match, 0) == 0; |
| 10428 | } |
| 10429 | |
| 10430 | // Returns true iff regular expression re matches a substring of str |
| 10431 | // (including str itself). |
nothing calls this directly
no test coverage detected