Helper function used by ValidateRegex() to format error messages.
| 819 | |
| 820 | // Helper function used by ValidateRegex() to format error messages. |
| 821 | static std::string FormatRegexSyntaxError(const char* regex, int index) { |
| 822 | return (Message() << "Syntax error at index " << index |
| 823 | << " in simple regular expression \"" << regex << "\": ").GetString(); |
| 824 | } |
| 825 | |
| 826 | // Generates non-fatal failures and returns false if regex is invalid; |
| 827 | // otherwise returns true. |
no test coverage detected