Lines Matching refs:pmatch
218 regmatch_t pmatch[2];
221 err = regexec(pattern, buf, 2, pmatch, REG_NOTBOL);
222 if (err != 0 || pmatch[1].rm_so == -1)
225 memcpy(buf + pmatch[1].rm_so,
226 buf + pmatch[1].rm_eo, len - pmatch[1].rm_eo);
228 return len - (pmatch[1].rm_eo - pmatch[1].rm_so);
234 regmatch_t pmatch[2];
236 err = regexec(pattern, buf, 2, pmatch, REG_NOTBOL);
237 if (err != 0 || pmatch[1].rm_so == -1) {
242 val_len = pmatch[1].rm_eo - pmatch[1].rm_so;
244 memcpy(pattern_str, buf + pmatch[1].rm_so, val_len);