Lines Matching defs:s_to

206     size_t s_from, s_to;
231 s_to = strlen(subs);
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,
244 memcpy(ctx->buf+offs, subs, s_to);
247 memcpy(ctx->buf + offs, subs, s_to);
248 memmove(ctx->buf+offs+s_to, ctx->buf+offs+s_from,
251 offs += s_to;
256 s_to = strlen(m->to);
258 found = strstr(ctx->buf+match+s_to, m->from.c)) {
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,
272 memcpy(ctx->buf+match, m->to, s_to);
275 memcpy(ctx->buf+match, m->to, s_to);
276 memmove(ctx->buf+match+s_to, ctx->buf+match+s_from,
384 size_t s_to, s_from, match;
510 s_to = strlen(subs);
512 if (s_to > s_from) {
513 preserve(ctx, s_to - s_from);
514 memmove(ctx->buf+offs+s_to,
517 memcpy(ctx->buf+offs, subs, s_to);
520 memcpy(ctx->buf + offs, subs, s_to);
521 memmove(ctx->buf+offs+s_to,
530 s_to = strlen(m->to);
536 if (s_to > s_from) {
537 preserve(ctx, s_to - s_from);
538 memmove(ctx->buf+s_to, ctx->buf+s_from,
540 memcpy(ctx->buf, m->to, s_to);
543 memcpy(ctx->buf, m->to, s_to);
544 memmove(ctx->buf+s_to, ctx->buf+s_from,
578 s_to = strlen(subs);
581 if (s_to > s_from) {
582 preserve(ctx, s_to - s_from);
583 memmove(ctx->buf+offs+s_to,
586 memcpy(ctx->buf+offs, subs, s_to);
589 memcpy(ctx->buf + offs, subs, s_to);
590 memmove(ctx->buf+offs+s_to,
594 offs += s_to;
604 s_to = strlen(m->to);
613 found = strstr(ctx->buf+match+s_to,
621 if (s_to > s_from) {
622 preserve(ctx, s_to - s_from);
623 memmove(ctx->buf+match+s_to,
626 memcpy(ctx->buf+match, m->to, s_to);
629 memcpy(ctx->buf+match, m->to, s_to);
630 memmove(ctx->buf+match+s_to,