Helper function used by ValidateRegex() to format error messages.
| 9289 | |
| 9290 | // Helper function used by ValidateRegex() to format error messages. |
| 9291 | std::string FormatRegexSyntaxError(const char* regex, int index) { |
| 9292 | return (Message() << "Syntax error at index " << index |
| 9293 | << " in simple regular expression \"" << regex << "\": ").GetString(); |
| 9294 | } |
| 9295 | |
| 9296 | // Generates non-fatal failures and returns false if regex is invalid; |
| 9297 | // otherwise returns true. |
no test coverage detected