Helper function used by ValidateRegex() to format error messages.
| 8458 | |
| 8459 | // Helper function used by ValidateRegex() to format error messages. |
| 8460 | std::string FormatRegexSyntaxError(const char* regex, int index) { |
| 8461 | return (Message() << "Syntax error at index " << index |
| 8462 | << " in simple regular expression \"" << regex << "\": ").GetString(); |
| 8463 | } |
| 8464 | |
| 8465 | // Generates non-fatal failures and returns false if regex is invalid; |
| 8466 | // otherwise returns true. |
no test coverage detected