Home | History | Annotate | Download | only in tests

Lines Matching defs:regex

2 #include <regex.h>
42 regex_t regex;
46 err_code = regcomp(&regex, regex_str, REG_EXTENDED);
48 regerror(err_code, &regex, err_buf, REGEX_ERR_BUF_SIZE);
49 fprintf(stderr, "Failed to compile regex: %s\n", err_buf);
53 err_code = regexec(&regex, search_str, num_matches, matches, 0);
60 regerror(err_code, &regex, err_buf, REGEX_ERR_BUF_SIZE);
61 fprintf(stderr, "Failed to match regex: %s\n", err_buf);
99 /* Execute the regex */
101 fprintf(stderr, "Failed to execute regex for src register.\n");
225 /* Execute the regex */
227 fprintf(stderr, "Failed to execute regex for dst register.\n");
327 /* Execute the regex */