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

Method error

lib/pattern.cpp:176–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void Pattern::error(regex_error_type code, size_t pos) const
177{
178 regex_error err(code, rex_, pos);
179 if (opt_.w)
180 std::cerr << err.what();
181 if (code == regex_error::exceeds_length || code == regex_error::exceeds_limits || opt_.r)
182 throw err;
183}
184
185void Pattern::init(const char *options, const char *pred)
186{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected