| 67 | } // namespace |
| 68 | |
| 69 | bool Regex::isValid(std::string &Error) const { |
| 70 | if (!error) |
| 71 | return true; |
| 72 | |
| 73 | RegexErrorToString(error, preg, Error); |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | /// getNumMatches - In a valid regex, return the number of parenthesized |
| 78 | /// matches it contains. |
no test coverage detected