MCPcopy Create free account
hub / github.com/Genivia/RE-flex / regex_error_message_code

Method regex_error_message_code

lib/error.cpp:43–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41namespace reflex {
42
43std::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
71std::string regex_error::regex_error_message(const char *message, const char *pattern, size_t pos)
72{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected