Lines Matching refs:s_from

206     size_t s_from, s_to;
228 s_from = pmatch[0].rm_eo - match;
236 ctx->buf + offs, s_from);
240 if (s_to > s_from) {
241 preserve(ctx, s_to - s_from);
242 memmove(ctx->buf+offs+s_to, ctx->buf+offs+s_from,
243 len + 1 - s_from - offs);
248 memmove(ctx->buf+offs+s_to, ctx->buf+offs+s_from,
249 len + 1 - s_from - offs);
255 s_from = strlen(m->from.c);
263 if ((m->flags & M_ATEND) && (match < (len - s_from)))
268 if (s_to > s_from) {
269 preserve(ctx, s_to - s_from);
270 memmove(ctx->buf+match+s_to, ctx->buf+match+s_from,
271 len + 1 - s_from - match);
276 memmove(ctx->buf+match+s_to, ctx->buf+match+s_from,
277 len + 1 - s_from - match);
384 size_t s_to, s_from, match;
498 s_from = pmatch[0].rm_eo - match;
504 ctx->buf + offs, s_from);
512 if (s_to > s_from) {
513 preserve(ctx, s_to - s_from);
515 ctx->buf+offs+s_from,
516 len + 1 - s_from - offs);
522 ctx->buf+offs+s_from,
523 len + 1 - s_from - offs);
527 s_from = strlen(m->from.c);
528 if (!strncasecmp(ctx->buf, m->from.c, s_from)) {
536 if (s_to > s_from) {
537 preserve(ctx, s_to - s_from);
538 memmove(ctx->buf+s_to, ctx->buf+s_from,
539 len + 1 - s_from);
544 memmove(ctx->buf+s_to, ctx->buf+s_from,
545 len + 1 - s_from);
566 s_from = pmatch[0].rm_eo - match;
572 ctx->buf + offs, s_from);
581 if (s_to > s_from) {
582 preserve(ctx, s_to - s_from);
584 ctx->buf+offs+s_from,
585 len + 1 - s_from - offs);
591 ctx->buf+offs+s_from,
592 len + 1 - s_from - offs);
603 s_from = strlen(m->from.c);
606 if ((s_from < strlen(found))
608 found = strstr(ctx->buf+match+s_from,
621 if (s_to > s_from) {
622 preserve(ctx, s_to - s_from);
624 ctx->buf+match+s_from,
625 len + 1 - s_from - match);
631 ctx->buf+match+s_from,
632 len + 1 - s_from - match);