Returns true iff regular expression re matches the entire str.
| 7927 | |
| 7928 | // Returns true iff regular expression re matches the entire str. |
| 7929 | bool 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). |
nothing calls this directly
no test coverage detected