| 41 | namespace reflex { |
| 42 | |
| 43 | std::string regex_error::regex_error_message_code(regex_error_type code, const char *pattern, size_t pos) |
| 44 | { |
| 45 | static const char *messages[] = { |
| 46 | "mismatched ( )", |
| 47 | "mismatched { }", |
| 48 | "mismatched [ ]", |
| 49 | "mismatched quotation", |
| 50 | "empty (sub)expression", |
| 51 | "empty character class", |
| 52 | "invalid character class", |
| 53 | "invalid character class range", |
| 54 | "invalid escape", |
| 55 | "invalid anchor or boundary", |
| 56 | "invalid repeat", |
| 57 | "invalid quantifier", |
| 58 | "invalid modifier", |
| 59 | "invalid collating element", |
| 60 | "invalid backreference", |
| 61 | "invalid syntax", |
| 62 | "exceeds length limit", |
| 63 | "exceeds complexity limits", |
| 64 | "undefined name", |
| 65 | "cannot save tables", |
| 66 | "cannot load tables", |
| 67 | }; |
| 68 | return regex_error_message(messages[code], pattern, pos); |
| 69 | } |
| 70 | |
| 71 | std::string regex_error::regex_error_message(const char *message, const char *pattern, size_t pos) |
| 72 | { |
nothing calls this directly
no outgoing calls
no test coverage detected