| 89 | } |
| 90 | |
| 91 | boolean |
| 92 | regex_match(const char *s, struct nhregex *re) |
| 93 | { |
| 94 | int result; |
| 95 | |
| 96 | if (!re || !s) |
| 97 | return FALSE; |
| 98 | |
| 99 | if ((result = regexec(&re->re, s, 0, (genericptr_t) 0, 0))) { |
| 100 | if (result != REG_NOMATCH) |
| 101 | re->err = result; |
| 102 | return FALSE; |
| 103 | } |
| 104 | return TRUE; |
| 105 | } |
| 106 | |
| 107 | void |
| 108 | regex_free(struct nhregex *re) |
nothing calls this directly
no outgoing calls
no test coverage detected