| 66 | } |
| 67 | |
| 68 | boolean |
| 69 | regex_match(const char *s, struct nhregex *re) |
| 70 | { |
| 71 | if (!re->re) |
| 72 | return false; |
| 73 | try { |
| 74 | return regex_search(s, *re->re, std::regex_constants::match_any); |
| 75 | } catch (const std::regex_error& err) { |
| 76 | return false; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void |
| 81 | regex_free(struct nhregex *re) |
no outgoing calls
no test coverage detected