Lines Matching refs:matches
399 regmatch_t matches[3];
400 if (regexec(&dbd_freetds_find_arg, query, 3, matches, 0) != 0) {
410 int len = matches[1].rm_eo - matches[1].rm_so - 2;
415 ret = recurse_args(pool, n+1, query+matches[0].rm_eo,
416 stmt, offs+matches[0].rm_eo);
418 memmove(stmt->fmt + offs + matches[1].rm_so,
419 stmt->fmt + offs + matches[0].rm_eo-1,
420 strlen(stmt->fmt+offs+matches[0].rm_eo)+2);
423 if (matches[1].rm_so == -1) {
427 strncpy(arg, query+matches[1].rm_so+1,
428 matches[1].rm_eo - matches[1].rm_so - 2);
429 arg[matches[1].rm_eo - matches[1].rm_so - 2] = '\0';
441 for (i=matches[2].rm_so; i<matches[2].rm_eo; ++i) {