Helper function used by ValidateRegex() to format error messages.
| 8024 | |
| 8025 | // Helper function used by ValidateRegex() to format error messages. |
| 8026 | String FormatRegexSyntaxError(const char* regex, int index) { |
| 8027 | return (Message() << "Syntax error at index " << index |
| 8028 | << " in simple regular expression \"" << regex << "\": ").GetString(); |
| 8029 | } |
| 8030 | |
| 8031 | // Generates non-fatal failures and returns false if regex is invalid; |
| 8032 | // otherwise returns true. |
no test coverage detected